Skip to main content
GET
/
v1
/
destination
Rank the top destinations by travel demand
curl --request GET \
  --url https://api.example.com/v1/destination \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.example.com/v1/destination"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.example.com/v1/destination', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/destination",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.example.com/v1/destination"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.example.com/v1/destination")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/destination")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "rows": [
    {
      "rank": 1,
      "destination": "City:PAR",
      "share": 0.182
    }
  ]
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Malformed JSON in request body.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
{
"error": {
"code": "AUTH_REQUIRED",
"message": "Invalid or expired API key.",
"doc_url": "https://docs.gojinko.com/api-reference/authentication"
}
}
{
"error": {
"code": "BAD_REQUEST",
"message": "origins: origins is required; trip_type: trip_type is required",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit or quota exceeded.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
{
"error": {
"code": "UPSTREAM_ERROR",
"message": "Upstream travel provider returned an error. Please retry.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
Ranks destinations by their current share of travel demand as a point in time snapshot. The optional destination_country selector (Country:<code>, allowed only when level=city) narrows the ranking to the cities of that country.

Authorizations

X-API-Key
string
header
required

Query Parameters

origin
string

Where travelers depart from. Accepts a city or a country as <Level>:<Code> (for example City:NYC or Country:US), or global for all origins.

Example:

"Country:US"

departure_date_from
string

Start of the departure window, written as YYYY-MM-DD. Provide it together with departure_date_to, or omit both to include all departure dates.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-07-01"

departure_date_to
string

End of the departure window, written as YYYY-MM-DD. Provide it together with departure_date_from, or omit both to include all departure dates.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-07-31"

traveler_type
enum<string>
Available options:
Solo,
Couple,
Group,
Family
Example:

"Couple"

trip_type
enum<string>
Available options:
One-Way,
Round-Trip
Example:

"Round-Trip"

trip_duration_min
integer | null

Minimum trip length, in nights between departure and return. Applies to round trips only.

Required range: x >= 0
Example:

5

trip_duration_max
integer | null

Maximum trip length in nights. Must be greater than or equal to trip_duration_min.

Required range: x >= 0
Example:

9

search_window_min
integer | null

The search window is how many days before the departure date a search was made. Sets the lower bound: keeps only demand from searches made at least this many days before departure.

Required range: x >= 0
Example:

7

search_window_max
integer | null

The search window is how many days before the departure date a search was made. Sets the upper bound: keeps only demand from searches made at most this many days before departure. Must be greater than or equal to search_window_min.

Required range: x >= 0
Example:

30

snapshot_window_days
integer

Number of recent days of search activity combined into the demand figure (minimum 2, default 7, maximum 90). A single day covers just the current day, whose data is still incomplete. Up to 90 days of history are available.

Required range: 2 <= x <= 90
Example:

30

limit
integer
default:20

Maximum number of result rows to return. Default 20, maximum 200.

Required range: 1 <= x <= 200
Example:

20

level
enum<string>

Granularity of the ranked results: country (the default) or city. Applies to destination and market results, not audience.

Available options:
country,
city
Example:

"city"

destination_country
string

Restricts the ranked destinations to the cities of a single country, given as Country:<code> (for example Country:FR). Optional, and allowed only when level=city. Must be a country; a city selector is rejected.

Example:

"Country:FR"

Response

Destination demand ranking

rows
object[]
required