Demand time series per traveler-type segment
Returns a series for each traveler-type segment (excluding Unknown) for the given destination. Requires destination.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/audience/trend
- Auth
- API key in header X-API-Key
- or HTTP bearer
Query parameters
Origin selector <Level>:<Code> (e.g. Country:US), or global for all origins. Required for the destination endpoints.
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.
Maximum number of series (top-N keys). Default 10, max 50.
Response
Per-segment 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.