Leaderboard by region
const url = 'https://api.wink.travel/api/analytics/leaderboard/list';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wink.travel/api/analytics/leaderboard/list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullReturn a paged sales leaderboard scoped to a geographic level such as continent, country or city.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Leaderboard filter criteria including geographic scope (continent, country or city), pagination and sort settings
Request parameters for retrieving a paginated booking leaderboard, filtered by currency and geographic grouping.
object
Which page to access in the record set
Example
0Number of result set to retrieve
Example
20Display leaderboard values in this currency
Example
USDThe type of leaderboard to display
Example
GLOBALCan be continent, country.geoNameId or city.geoNameId
Example
654321Example
{ "page": 0, "size": 20, "currencyCode": "USD", "type": "GLOBAL", "groupingIdentifier": "654321"}Responses
Section titled “ Responses ”Paginated leaderboard entries for the requested region. Pagination metadata (total, page, size) is in the Page wrapper.
A single entry on the booking leaderboard, representing a managing entity’s booking performance including volume and revenue metrics.
object
Unique identifier of the managing entity (owner) on the leaderboard.
Display name of the managing entity.
Continent of the managing entity.
Country of the managing entity.
GeoName ID for the country.
City of the managing entity.
GeoName ID for the city.
Total number of bookings for this entity.
Total revenue from bookings in the display currency.
Average booking value in the display currency.
Currency code for the monetary amounts.
Example
{ "ownerIdentifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51", "ownerName": "The Siam Residences", "continent": "Asia", "country": "Thailand", "countryGeoNameId": "1605651", "city": "Bangkok", "cityGeoNameId": "1609350", "bookings": 42, "totalPriceAmount": 63000, "averageBookingAmount": 1500, "currencyCode": "THB"}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable