# Google Flights Search ## Overview | Property | Value | |----------|-------| | **Status** | private | | **Method** | `GET` | | **Endpoint** | `/v2/google/flights-search` | | **Base URL** | `https://api.autom.dev` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/google-flights-search | ## Description Extract detailed flight data from Google Flights for travel, market analysis, and more with our efficient API. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.autom.dev/register ## Example Request ```bash curl --location --request GET 'https://api.autom.dev/v2/google/flights-search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Example ```json { "flights": [ { "links": [ { "url": "https://www.example.com/booking/link", "type": "booking" } ], "price": { "amount": 320, "currency": "USD" }, "airline": "Delta Air Lines", "arrival": { "city": "Los Angeles", "time": "2024-05-02T11:45:00", "airport": "Los Angeles International Airport" }, "duration": "6h 15m", "departure": { "city": "New York", "time": "2024-05-02T08:30:00", "airport": "John F. Kennedy International Airport" } }, { "links": [ { "url": "https://www.example.com/booking/link", "type": "booking" } ], "price": { "amount": 305, "currency": "USD" }, "airline": "American Airlines", "arrival": { "city": "Los Angeles", "time": "2024-05-02T13:15:00", "airport": "Los Angeles International Airport" }, "duration": "6h 15m", "departure": { "city": "New York", "time": "2024-05-02T10:00:00", "airport": "John F. Kennedy International Airport" } }, { "links": [ { "url": "https://www.example.com/booking/link", "type": "booking" } ], "price": { "amount": 310, "currency": "USD" }, "airline": "JetBlue Airways", "arrival": { "city": "Los Angeles", "time": "2024-05-02T12:30:00", "airport": "Los Angeles International Airport" }, "duration": "6h 15m", "departure": { "city": "New York", "time": "2024-05-02T09:15:00", "airport": "John F. Kennedy International Airport" } } ] } ``` ## Documentation ## Overview Extract detailed flight data from Google Flights for travel, market analysis, and more with our efficient API. ## Quickstart ``` GET https://api.piloterr.com/v2/google/flights-search?query=example ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Search query or target identifier | ## Main use cases - Integrate Google Flights Search data into enrichment, analytics, and monitoring pipelines - Automate large-scale extraction from Google without maintaining scrapers - Power internal dashboards and workflow automations with live Google data