Show Leaderboard by Region
POST
/api/analytics/leaderboard/list
const url = 'https://api.wink.travel/api/analytics/leaderboard/list';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"page":0,"size":100,"currencyCode":"USD","type":"GLOBAL","groupingIdentifier":""}'};
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 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "page": 0, "size": 100, "currencyCode": "USD", "type": "GLOBAL", "groupingIdentifier": "" }'Show leaderboard based on location type such as continent.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
page
required
Which page to access in the record set
integer format: int32
Example
0 size
required
Number of result set to retrieve
integer format: int32
Example
20 currencyCode
required
Display leaderboard values in this currency
string
Example
USD type
required
The type of leaderboard to display
string
Example
GLOBAL groupingIdentifier
Can be continent, country.geoNameId or city.geoNameId
string
Example
654321Responses
Section titled “ Responses ”OK
Media type application/json
object
totalPages
integer format: int32
totalElements
integer format: int64
size
integer format: int32
content
Array<object>
object
ownerIdentifier
string
ownerName
string
continent
string
country
string
countryGeoNameId
string
city
string
cityGeoNameId
string
bookings
integer format: int64
totalPriceAmount
number
averageBookingAmount
number
currencyCode
string
number
integer format: int32
numberOfElements
integer format: int32
sort
object
empty
boolean
unsorted
boolean
sorted
boolean
first
boolean
last
boolean
pageable
object
offset
integer format: int64
sort
object
empty
boolean
unsorted
boolean
sorted
boolean
pageSize
integer format: int32
paged
boolean
pageNumber
integer format: int32
unpaged
boolean
empty
boolean
Example generated
{ "totalPages": 1, "totalElements": 1, "size": 1, "content": [ { "ownerIdentifier": "example", "ownerName": "example", "continent": "example", "country": "example", "countryGeoNameId": "example", "city": "example", "cityGeoNameId": "example", "bookings": 1, "totalPriceAmount": 1, "averageBookingAmount": 1, "currencyCode": "example" } ], "number": 1, "numberOfElements": 1, "sort": { "empty": true, "unsorted": true, "sorted": true }, "first": true, "last": true, "pageable": { "offset": 1, "sort": { "empty": true, "unsorted": true, "sorted": true }, "pageSize": 1, "paged": true, "pageNumber": 1, "unpaged": true }, "empty": true}Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}