curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"origin":"JFK","destination":"LAX","departure":"2026-06-15","return":"2026-06-22","trip_type":"round_trip","adults":1,"children":0,"infants_in_seat":0,"infants_on_lap":0,"cabin":"economy"}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_mhng7wen1rw0a3gvpf¬ify=false&include_errors=true&type=discover_new&discover_by=input_filters"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_mhng7wen1rw0a3gvpf",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "input_filters",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"origin": "JFK",
"destination": "LAX",
"departure": "2026-06-15",
"return": "2026-06-22",
"trip_type": "round_trip",
"adults": 1,
"children": 0,
"infants_in_seat": 0,
"infants_on_lap": 0,
"cabin": "economy",
},
],
"limit_per_input": 10,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_mhng7wen1rw0a3gvpf",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "input_filters",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
origin: "JFK",
destination: "LAX",
departure: "2026-06-15",
return: "2026-06-22",
trip_type: "round_trip",
adults: 1,
children: 0,
infants_in_seat: 0,
infants_on_lap: 0,
cabin: "economy",
},
],
limit_per_input: 10,
}),
});
console.log(await response.text());
[
{
"origin": "JFK",
"destination": "LAX",
"departure_date": "2026-06-15",
"return_date": "2026-06-22",
"cabin": "economy",
"flights": [
{
"airline": "Delta",
"flight_number": "DL 1234",
"duration_minutes": 390,
"stops": 0,
"price": "328.00",
"currency": "USD"
}
]
}
]
Google
Discover Google Flights by Input Filters
Use the Bright Data Scraper API to discover Google Flights listings by input filters. POST /datasets/v3/scrape returns flight records as JSON.
POST
/
datasets
/
v3
/
scrape
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"origin":"JFK","destination":"LAX","departure":"2026-06-15","return":"2026-06-22","trip_type":"round_trip","adults":1,"children":0,"infants_in_seat":0,"infants_on_lap":0,"cabin":"economy"}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_mhng7wen1rw0a3gvpf¬ify=false&include_errors=true&type=discover_new&discover_by=input_filters"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_mhng7wen1rw0a3gvpf",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "input_filters",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"origin": "JFK",
"destination": "LAX",
"departure": "2026-06-15",
"return": "2026-06-22",
"trip_type": "round_trip",
"adults": 1,
"children": 0,
"infants_in_seat": 0,
"infants_on_lap": 0,
"cabin": "economy",
},
],
"limit_per_input": 10,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_mhng7wen1rw0a3gvpf",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "input_filters",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
origin: "JFK",
destination: "LAX",
departure: "2026-06-15",
return: "2026-06-22",
trip_type: "round_trip",
adults: 1,
children: 0,
infants_in_seat: 0,
infants_on_lap: 0,
cabin: "economy",
},
],
limit_per_input: 10,
}),
});
console.log(await response.text());
[
{
"origin": "JFK",
"destination": "LAX",
"departure_date": "2026-06-15",
"return_date": "2026-06-22",
"cabin": "economy",
"flights": [
{
"airline": "Delta",
"flight_number": "DL 1234",
"duration_minutes": 390,
"stops": 0,
"price": "328.00",
"currency": "USD"
}
]
}
]
Query Parameters
string
default:"gd_mhng7wen1rw0a3gvpf"
required
The dataset ID used for this request.
Must be set to
gd_mhng7wen1rw0a3gvpf to discover Google Flights by input filters.string
default:"discover_new"
required
Must be set to
discover_new.string
default:"input_filters"
required
Must be set to
input_filters.boolean
default:false
Whether to send notifications when the request is completed.
boolean
default:true
Whether to include errors in the response.
Request Body
object[]
required
An array of input objects.
Show properties
Show properties
string
required
Origin airport IATA code (e.g.,
JFK).string
required
Destination airport IATA code (e.g.,
LAX).string
required
Departure date in
YYYY-MM-DD format.string
Return date in
YYYY-MM-DD format. Omit for one-way trips.string
required
One of:
one_way, round_trip, multi_city.number
required
Number of adult passengers.
number
Number of child passengers.
number
Number of infants in their own seat.
number
Number of infants on lap.
string
Cabin class. One of:
economy, premium_economy, business, first.Example
{
"input": [
{
"origin": "JFK",
"destination": "LAX",
"departure": "2026-06-15",
"return": "2026-06-22",
"trip_type": "round_trip",
"adults": 1,
"children": 0,
"infants_in_seat": 0,
"infants_on_lap": 0,
"cabin": "economy"
}
]
}
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"origin":"JFK","destination":"LAX","departure":"2026-06-15","return":"2026-06-22","trip_type":"round_trip","adults":1,"children":0,"infants_in_seat":0,"infants_on_lap":0,"cabin":"economy"}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_mhng7wen1rw0a3gvpf¬ify=false&include_errors=true&type=discover_new&discover_by=input_filters"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_mhng7wen1rw0a3gvpf",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "input_filters",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"origin": "JFK",
"destination": "LAX",
"departure": "2026-06-15",
"return": "2026-06-22",
"trip_type": "round_trip",
"adults": 1,
"children": 0,
"infants_in_seat": 0,
"infants_on_lap": 0,
"cabin": "economy",
},
],
"limit_per_input": 10,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_mhng7wen1rw0a3gvpf",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "input_filters",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
origin: "JFK",
destination: "LAX",
departure: "2026-06-15",
return: "2026-06-22",
trip_type: "round_trip",
adults: 1,
children: 0,
infants_in_seat: 0,
infants_on_lap: 0,
cabin: "economy",
},
],
limit_per_input: 10,
}),
});
console.log(await response.text());
[
{
"origin": "JFK",
"destination": "LAX",
"departure_date": "2026-06-15",
"return_date": "2026-06-22",
"cabin": "economy",
"flights": [
{
"airline": "Delta",
"flight_number": "DL 1234",
"duration_minutes": 390,
"stops": 0,
"price": "328.00",
"currency": "USD"
}
]
}
]
Was this page helpful?