Demand time series for the top-N source markets
Ranks source markets feeding the destination by within-window growth, then returns each top-N market’s series. Requires destination. Optional origin_country (a Country:<code> selector, allowed only with level=city) narrows the ranking to that country’s origin cities.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/market/trend
- Auth
- API key in header X-API-Key
- or HTTP bearer
Query parameters
Destination selector <Level>:<Code>. Required for this endpoint.
Start of the departure window (YYYY-MM-DD). Supply together with departure_date_to; omit both (recommended) for no departure-date filter — each bucket then counts searches for all departure dates. A window anchored at the query date counts only long-advance-purchase searches in old buckets and near-departure searches in recent ones, ramping the curve artificially.
End of the departure window (YYYY-MM-DD). Supply together with departure_date_from; omit both for no departure-date filter.
Number of buckets N, in the chosen granularity unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12). The series spans the last N complete buckets, excluding the in-progress one (day: last N days ending yesterday; week: last N full Monday-Sunday weeks; month: last N full calendar months).
Bucket size for the returned series: week (default), day, or month.
Ranked output granularity: country (default) or city. Applies to destination/market (not audience).
Maximum number of series (top-N keys). Default 10, max 50.
Origin country selector Country:<code> (e.g. Country:US). Optional and allowed ONLY together with level=city: it scopes the ranked origin markets to a single country so that country’s cities are ranked. Must be a country — a City selector is rejected.
Response
Top-N market time series
Example response
{
"granularity": "week",
"from": "2026-06-19",
"to": "2026-06-25",
"series": [
{
"label": "FR",
"origin": "Country:US",
"destination": "Country:FR",
"series": [
{
"date": "2026-06-20",
"value": 1234
}
],
"summary": {
"total": 34567,
"avg_per_day": 1191,
"growth_pct": 12.3,
"peak_date": "2026-06-14",
"peak_value": 1890
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.