curl --request POST \
--url https://api.gojinko.com/v1/price_monitoring \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"origin": "PAR",
"destination": "NYC",
"departure_date": "<string>",
"return_date": "<string>",
"direct_only": true,
"max_stops": 1,
"departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"origin_radius_km": 100,
"destination_radius_km": 100,
"connection_time_min_minutes": 60,
"connection_time_max_minutes": 240,
"max_total": 1,
"include_carriers": [
"<string>"
],
"exclude_carriers": [
"<string>"
],
"currency": "<string>",
"locale": "<string>",
"intent": {
"user_intent": "find a cheap flight to Tokyo"
}
}
'import requests
url = "https://api.gojinko.com/v1/price_monitoring"
payload = {
"origin": "PAR",
"destination": "NYC",
"departure_date": "<string>",
"return_date": "<string>",
"direct_only": True,
"max_stops": 1,
"departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"origin_radius_km": 100,
"destination_radius_km": 100,
"connection_time_min_minutes": 60,
"connection_time_max_minutes": 240,
"max_total": 1,
"include_carriers": ["<string>"],
"exclude_carriers": ["<string>"],
"currency": "<string>",
"locale": "<string>",
"intent": { "user_intent": "find a cheap flight to Tokyo" }
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
origin: 'PAR',
destination: 'NYC',
departure_date: '<string>',
return_date: '<string>',
direct_only: true,
max_stops: 1,
departure_time_range: {earliest: '08:00', latest: '12:00'},
arrival_time_range: {earliest: '08:00', latest: '12:00'},
return_departure_time_range: {earliest: '08:00', latest: '12:00'},
return_arrival_time_range: {earliest: '08:00', latest: '12:00'},
origin_radius_km: 100,
destination_radius_km: 100,
connection_time_min_minutes: 60,
connection_time_max_minutes: 240,
max_total: 1,
include_carriers: ['<string>'],
exclude_carriers: ['<string>'],
currency: '<string>',
locale: '<string>',
intent: {user_intent: 'find a cheap flight to Tokyo'}
})
};
fetch('https://api.gojinko.com/v1/price_monitoring', 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.gojinko.com/v1/price_monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'origin' => 'PAR',
'destination' => 'NYC',
'departure_date' => '<string>',
'return_date' => '<string>',
'direct_only' => true,
'max_stops' => 1,
'departure_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'arrival_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'return_departure_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'return_arrival_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'origin_radius_km' => 100,
'destination_radius_km' => 100,
'connection_time_min_minutes' => 60,
'connection_time_max_minutes' => 240,
'max_total' => 1,
'include_carriers' => [
'<string>'
],
'exclude_carriers' => [
'<string>'
],
'currency' => '<string>',
'locale' => '<string>',
'intent' => [
'user_intent' => 'find a cheap flight to Tokyo'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/price_monitoring"
payload := strings.NewReader("{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gojinko.com/v1/price_monitoring")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/price_monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}"
response = http.request(request)
puts response.read_body{
"priced_for": "one_adult",
"status": "ok",
"monitored_at": "2026-06-01T12:34:56Z",
"flight": {
"offer_token": "oft_7c2e9a1b4d",
"total_price": {
"amount": 123,
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"outbound_carrier": {
"code": "DL",
"name": "Delta Air Lines",
"flight_number": "263"
},
"inbound_carrier": {
"code": "DL",
"name": "Delta Air Lines",
"flight_number": "263"
},
"outbound_stops": 0,
"inbound_stops": 1,
"outbound_duration_minutes": 470,
"inbound_duration_minutes": 520,
"outbound_departure_local": "2026-07-15T10:15:00-04:00",
"outbound_arrival_local": "2026-07-15T13:05:00-07:00",
"inbound_departure_local": "2026-07-22T17:40:00-07:00",
"inbound_arrival_local": "2026-07-23T07:25:00-04:00",
"cabin_class": "economy",
"fare_brand": "Main"
},
"request_echo": null
}{
"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/authentication/api-keys"
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient balance — this call costs $0.0150 and your organization has $0.0000 available. Top up at https://dashboard.gojinko.com/developers/billing/topup",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_TIMEOUT",
"message": "The request timed out before a result was available. Retry the request.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}price-monitoring
Monitor price for a specific origin, destination, and dates pair
curl --request POST \
--url https://api.gojinko.com/v1/price_monitoring \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"origin": "PAR",
"destination": "NYC",
"departure_date": "<string>",
"return_date": "<string>",
"direct_only": true,
"max_stops": 1,
"departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"origin_radius_km": 100,
"destination_radius_km": 100,
"connection_time_min_minutes": 60,
"connection_time_max_minutes": 240,
"max_total": 1,
"include_carriers": [
"<string>"
],
"exclude_carriers": [
"<string>"
],
"currency": "<string>",
"locale": "<string>",
"intent": {
"user_intent": "find a cheap flight to Tokyo"
}
}
'import requests
url = "https://api.gojinko.com/v1/price_monitoring"
payload = {
"origin": "PAR",
"destination": "NYC",
"departure_date": "<string>",
"return_date": "<string>",
"direct_only": True,
"max_stops": 1,
"departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_departure_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"return_arrival_time_range": {
"earliest": "08:00",
"latest": "12:00"
},
"origin_radius_km": 100,
"destination_radius_km": 100,
"connection_time_min_minutes": 60,
"connection_time_max_minutes": 240,
"max_total": 1,
"include_carriers": ["<string>"],
"exclude_carriers": ["<string>"],
"currency": "<string>",
"locale": "<string>",
"intent": { "user_intent": "find a cheap flight to Tokyo" }
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
origin: 'PAR',
destination: 'NYC',
departure_date: '<string>',
return_date: '<string>',
direct_only: true,
max_stops: 1,
departure_time_range: {earliest: '08:00', latest: '12:00'},
arrival_time_range: {earliest: '08:00', latest: '12:00'},
return_departure_time_range: {earliest: '08:00', latest: '12:00'},
return_arrival_time_range: {earliest: '08:00', latest: '12:00'},
origin_radius_km: 100,
destination_radius_km: 100,
connection_time_min_minutes: 60,
connection_time_max_minutes: 240,
max_total: 1,
include_carriers: ['<string>'],
exclude_carriers: ['<string>'],
currency: '<string>',
locale: '<string>',
intent: {user_intent: 'find a cheap flight to Tokyo'}
})
};
fetch('https://api.gojinko.com/v1/price_monitoring', 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.gojinko.com/v1/price_monitoring",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'origin' => 'PAR',
'destination' => 'NYC',
'departure_date' => '<string>',
'return_date' => '<string>',
'direct_only' => true,
'max_stops' => 1,
'departure_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'arrival_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'return_departure_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'return_arrival_time_range' => [
'earliest' => '08:00',
'latest' => '12:00'
],
'origin_radius_km' => 100,
'destination_radius_km' => 100,
'connection_time_min_minutes' => 60,
'connection_time_max_minutes' => 240,
'max_total' => 1,
'include_carriers' => [
'<string>'
],
'exclude_carriers' => [
'<string>'
],
'currency' => '<string>',
'locale' => '<string>',
'intent' => [
'user_intent' => 'find a cheap flight to Tokyo'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/price_monitoring"
payload := strings.NewReader("{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gojinko.com/v1/price_monitoring")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/price_monitoring")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"origin\": \"PAR\",\n \"destination\": \"NYC\",\n \"departure_date\": \"<string>\",\n \"return_date\": \"<string>\",\n \"direct_only\": true,\n \"max_stops\": 1,\n \"departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_departure_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"return_arrival_time_range\": {\n \"earliest\": \"08:00\",\n \"latest\": \"12:00\"\n },\n \"origin_radius_km\": 100,\n \"destination_radius_km\": 100,\n \"connection_time_min_minutes\": 60,\n \"connection_time_max_minutes\": 240,\n \"max_total\": 1,\n \"include_carriers\": [\n \"<string>\"\n ],\n \"exclude_carriers\": [\n \"<string>\"\n ],\n \"currency\": \"<string>\",\n \"locale\": \"<string>\",\n \"intent\": {\n \"user_intent\": \"find a cheap flight to Tokyo\"\n }\n}"
response = http.request(request)
puts response.read_body{
"priced_for": "one_adult",
"status": "ok",
"monitored_at": "2026-06-01T12:34:56Z",
"flight": {
"offer_token": "oft_7c2e9a1b4d",
"total_price": {
"amount": 123,
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"outbound_carrier": {
"code": "DL",
"name": "Delta Air Lines",
"flight_number": "263"
},
"inbound_carrier": {
"code": "DL",
"name": "Delta Air Lines",
"flight_number": "263"
},
"outbound_stops": 0,
"inbound_stops": 1,
"outbound_duration_minutes": 470,
"inbound_duration_minutes": 520,
"outbound_departure_local": "2026-07-15T10:15:00-04:00",
"outbound_arrival_local": "2026-07-15T13:05:00-07:00",
"inbound_departure_local": "2026-07-22T17:40:00-07:00",
"inbound_arrival_local": "2026-07-23T07:25:00-04:00",
"cabin_class": "economy",
"fare_brand": "Main"
},
"request_echo": null
}{
"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/authentication/api-keys"
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient balance — this call costs $0.0150 and your organization has $0.0000 available. Top up at https://dashboard.gojinko.com/developers/billing/topup",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_TIMEOUT",
"message": "The request timed out before a result was available. Retry the request.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}status is "ok", read the cheapest cached fare from flight.total_price and pass flight.offer_token to flight_search for live pricing before booking. When status is "stale", no cached itinerary matches the request filters, so the response has no flight, fare or offer token. This does not mean there are no flights: retry later, or use flight_search with the requested route and dates for a live quote.
value is an integer — divide by
10 ** decimal_places to display it. { "value": 15977, "decimal_places": 2 }
is $159.77, not $15,977. See Money & prices.Body
How to read the code: city searches every airport of the city, airport only that one airport. Omit it and the platform applies one rule: a code that names a multi-airport city is searched as the city; every other code is searched as the airport. Untyped NYC, LON or PAR is the city; untyped JFK, LHR or CDG is the airport; and untyped LAX, MIA or LAS — codes a city shares with its main airport — is the CITY, so results can land at any airport of that city. If the user named the airport, send airport; if they named the city, omit the field.
city, airport How to read the code: city searches every airport of the city, airport only that one airport. Omit it and the platform applies one rule: a code that names a multi-airport city is searched as the city; every other code is searched as the airport. Untyped NYC, LON or PAR is the city; untyped JFK, LHR or CDG is the airport; and untyped LAX, MIA or LAS — codes a city shares with its main airport — is the CITY, so results can land at any airport of that city. If the user named the airport, send airport; if they named the city, omit the field.
city, airport Shortest acceptable layover, in minutes, applied to every connection of every leg; a non-stop leg passes. Must not exceed connection_time_max_minutes. An itinerary whose connection times cannot be read is dropped. With either bound set, flight is the cheapest cached itinerary whose connections fit, and status is stale when none of the cheapest cached itineraries fits.
x >= 060
Response
Cheapest cached itinerary, or stale on a cache miss
