Google Flights Search Flights
curl --request POST \
--url https://api.aisa.one/apis/v1/google-flights/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "<string>",
"date": "2023-12-25",
"destination": "<string>",
"origin": "<string>",
"type": "OW",
"returnDate": "2023-12-25"
}
'import requests
url = "https://api.aisa.one/apis/v1/google-flights/search"
payload = {
"country": "<string>",
"date": "2023-12-25",
"destination": "<string>",
"origin": "<string>",
"type": "OW",
"returnDate": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: '<string>',
date: '2023-12-25',
destination: '<string>',
origin: '<string>',
type: 'OW',
returnDate: '2023-12-25'
})
};
fetch('https://api.aisa.one/apis/v1/google-flights/search', 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.aisa.one/apis/v1/google-flights/search",
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([
'country' => '<string>',
'date' => '2023-12-25',
'destination' => '<string>',
'origin' => '<string>',
'type' => 'OW',
'returnDate' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/google-flights/search"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/google-flights/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/google-flights/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}Google Flights
Google Flights Search Flights
Google Flights Search Flights
POST
https://api.aisa.one
/
apis
/
v1
/
google-flights
/
search
Google Flights Search Flights
curl --request POST \
--url https://api.aisa.one/apis/v1/google-flights/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "<string>",
"date": "2023-12-25",
"destination": "<string>",
"origin": "<string>",
"type": "OW",
"returnDate": "2023-12-25"
}
'import requests
url = "https://api.aisa.one/apis/v1/google-flights/search"
payload = {
"country": "<string>",
"date": "2023-12-25",
"destination": "<string>",
"origin": "<string>",
"type": "OW",
"returnDate": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: '<string>',
date: '2023-12-25',
destination: '<string>',
origin: '<string>',
type: 'OW',
returnDate: '2023-12-25'
})
};
fetch('https://api.aisa.one/apis/v1/google-flights/search', 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.aisa.one/apis/v1/google-flights/search",
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([
'country' => '<string>',
'date' => '2023-12-25',
'destination' => '<string>',
'origin' => '<string>',
'type' => 'OW',
'returnDate' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/google-flights/search"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/google-flights/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/google-flights/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"destination\": \"<string>\",\n \"origin\": \"<string>\",\n \"type\": \"OW\",\n \"returnDate\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.
Request contract
- Method and path: POST /apis/v1/google-flights/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/google-flights/search
{
"operationId": "post_google_flights_apis_v1_google_flights_search",
"method": "POST",
"path": "/apis/v1/google-flights/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"additionalProperties": false,
"properties": {
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string"
},
"date": {
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"type": "string"
},
"destination": {
"pattern": "^[A-Za-z]{3}$",
"type": "string"
},
"origin": {
"pattern": "^[A-Za-z]{3}$",
"type": "string"
},
"returnDate": {
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"type": "string"
},
"type": {
"const": "OW",
"type": "string"
}
},
"required": [
"origin",
"destination",
"type",
"date",
"country"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"country": {
"maxLength": 2,
"minLength": 2,
"type": "string"
},
"date": {
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"type": "string"
},
"destination": {
"pattern": "^[A-Za-z]{3}$",
"type": "string"
},
"origin": {
"pattern": "^[A-Za-z]{3}$",
"type": "string"
},
"returnDate": {
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"type": "string"
},
"type": {
"const": "RT",
"type": "string"
}
},
"required": [
"origin",
"destination",
"type",
"date",
"returnDate",
"country"
],
"type": "object"
}
]
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Observed response structure
The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.- HTTP status / last observed: 200 / 2026-11-18
{
"additionalProperties": true,
"properties": {
"data": {
"additionalProperties": true,
"type": "object"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. A price estimate is not currently available. Your account price may differ; use a request quote where supported.Response time
- Typically returns within 10 seconds.
Authorizations
Body
application/json
- Option 1
- Option 2