Get live flight pricing — search by route, or re-price a known offer
Two modes: search — provide origin + destination + departure_date to price a route; or price-check — provide only offer_token to re-price a specific offer from a discovery endpoint. Exactly one mode per request.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/flight_search
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"origin": "JFK",
"destination": "CDG",
"departure_date": "2026-09-01",
"return_date": "2026-09-08",
"trip_type": "roundtrip",
"cabin_class": "economy",
"adults": 1,
"max_stops": 1,
"checked_bag_included": true,
"currency": "USD"
}Response
Priced offers. Every filter that narrows the results (cabin, stops, price, carriers, times, connections, fare conditions, aircraft) is applied exactly as sent: no returned offer breaks one. Options that widen a search (alternate or nearby airports) are searched where available. A search that completes and matches nothing is also a 200: offers is empty, result is no_matches and the body carries a recovery instruction. A search that could not be completed answers an error (UPSTREAM_REJECTED, UPSTREAM_ERROR, UPSTREAM_UNAVAILABLE or UPSTREAM_TIMEOUT) rather than an empty list. Offers that were found are returned even when part of the search could not be completed.
Example response
{
"offers": [
{
"offer_id": "offer__3a9f1b27",
"origin": {
"code": "NYC",
"name": "New York"
},
"destination": {
"code": "LAX",
"name": "Los Angeles"
},
"total_duration_minutes": 385,
"outbound": {
"origin": "JFK",
"destination": "LAX",
"departure_datetime": "2026-07-15T08:30:00-04:00",
"arrival_datetime": "2026-07-15T11:55:00-07:00",
"duration_minutes": 385,
"airline": "AA",
"airline_name": "American Airlines",
"stop_infos": [
{
"airport_code": "DFW",
"duration_minutes": 95
}
],
"segments": [
{
"airline": "AA",
"airline_name": "American Airlines",
"flight_number": "460",
"aircraft": "32Q",
"departure_airport": "JFK",
"departure_city": "NYC",
"departure_time": "2026-09-23T11:55:00-04:00",
"arrival_airport": "DFW",
"arrival_city": "DFW",
"arrival_time": "2026-09-23T15:10:00-05:00",
"duration_minutes": 255,
"layover_minutes": 95,
"operating_carrier": "MQ"
}
]
},
"inbound": {
"origin": "JFK",
"destination": "LAX",
"departure_datetime": "2026-07-15T08:30:00-04:00",
"arrival_datetime": "2026-07-15T11:55:00-07:00",
"duration_minutes": 385,
"airline": "AA",
"airline_name": "American Airlines",
"stop_infos": [
{
"airport_code": "DFW",
"duration_minutes": 95
}
],
"segments": [
{
"airline": "AA",
"airline_name": "American Airlines",
"flight_number": "460",
"aircraft": "32Q",
"departure_airport": "JFK",
"departure_city": "NYC",
"departure_time": "2026-09-23T11:55:00-04:00",
"arrival_airport": "DFW",
"arrival_city": "DFW",
"arrival_time": "2026-09-23T15:10:00-05:00",
"duration_minutes": 255,
"layover_minutes": 95,
"operating_carrier": "MQ"
}
]
},
"additional_legs": [],
"fares": [
{
"trip_item_token": "offer__3a9f1b27:0-1-0",
"searched_at": "2026-09-23T15:43:40Z",
"expires_at": "2026-09-23T16:58:40Z",
"cabin_class": "economy",
"brand_name": "Main Cabin",
"total_price": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"price_per_person": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"included_baggage": {
"pieces": 1,
"weight": 23,
"weight_unit": "KG",
"dimensions": "158 cm linear",
"description": "1 bag, 23KG each"
},
"carry_on_baggage": {
"pieces": 1,
"weight": 23,
"weight_unit": "KG",
"dimensions": "158 cm linear",
"description": "1 bag, 23KG each"
},
"is_changeable": true,
"refund_policy": "Refundable with fee",
"change_policy": "Changes allowed with fee",
"checked_bag_included": true
}
]
}
],
"exact_match_found": true,
"instruction": "Search completed successfully, but no offers satisfied every filter sent: the filter combination is too restrictive for this route and dates. Ask the user which filter to relax before searching again."
}Changes
No recorded changes to this operation across all 1 revision of this API.