# Google Flights Scraper (`xtracto/google-flights-scraper`) Actor

Search Google Flights for real fares: prices, airlines, stops, departure/arrival times, flight duration, layovers, aircraft and CO2 estimates. One-way or round-trip, single route or batch. No account or API key.

- **URL**: https://apify.com/xtracto/google-flights-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Lead generation, Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Flights Scraper

Search Google Flights and get structured fare data — prices, airlines, stops, departure and arrival times, total flight duration, layovers, aircraft type, and CO2 estimates — for any route and date. One-way or round-trip, a single route or a whole batch, in one run.

### Why use this actor

- No account, no login, no API key required
- Real fares straight from Google Flights, in the currency you choose
- Full itinerary detail: every leg's airports, times, duration, and aircraft
- Layover airports and layover durations for connecting flights
- CO2 emission estimate per itinerary (and the typical figure for the route)
- One-way and round-trip searches, plus batch mode for many routes at once
- Stable JSON output ready for pipelines, spreadsheets, or databases

### How it works

1. You give the actor a route and date — an origin airport, a destination airport, and a departure date (add a return date for a round trip). Or paste a list of routes to search many at once.
2. Pick your options: cabin class, maximum stops, number of passengers, and currency.
3. The actor searches Google Flights and returns every matching itinerary with its price, airlines, stops, times, duration, layovers, and aircraft.
4. Results stream into your dataset, ready to download as JSON, CSV, or Excel.

You do not manage any browsers, logins, or scrapers — just describe the trip and read the results.

> Note: for round-trip searches, the price is the total round-trip fare and the itinerary shown is the outbound journey (this is exactly how Google Flights presents the first step of a round-trip search).

### Input

```json
{
  "origin": "LAX",
  "destination": "JFK",
  "departureDate": "2026-08-15",
  "returnDate": "",
  "routes": [
    "LAX,JFK,2026-08-15",
    "SFO,LHR,2026-09-01,2026-09-10"
  ],
  "cabinClass": "economy",
  "maxStops": "any",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "currency": "USD",
  "language": "en",
  "maxResultsPerSearch": 0,
  "maxConcurrency": 3,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
````

| Field | Type | Description |
|---|---|---|
| `origin` | string | Departure airport IATA code (e.g. `LAX`). Used when `routes` is empty. |
| `destination` | string | Arrival airport IATA code (e.g. `JFK`). Used when `routes` is empty. |
| `departureDate` | string | Outbound date, `YYYY-MM-DD`. Used when `routes` is empty. |
| `returnDate` | string | Return date, `YYYY-MM-DD`. Blank = one-way; filled = round trip. Used when `routes` is empty. |
| `routes` | array | Batch mode. Each item is `ORIGIN,DESTINATION,DEPARTURE[,RETURN]`, e.g. `SFO,LHR,2026-09-01,2026-09-10`. Overrides the single fields above. |
| `cabinClass` | string | `economy`, `premium-economy`, `business`, or `first`. Default `economy`. |
| `maxStops` | string | `any`, `nonstop`, `1`, or `2`. Default `any`. |
| `adults` | integer | Adult passengers (12+). Default 1. |
| `children` | integer | Child passengers (2-11). Default 0. |
| `infantsInSeat` | integer | Infants with their own seat. Default 0. |
| `infantsOnLap` | integer | Infants on an adult's lap. Default 0. |
| `currency` | string | 3-letter currency code for prices (e.g. `USD`, `EUR`). Default `USD`. |
| `language` | string | 2-letter language for airport / airline names (e.g. `en`). Default `en`. |
| `maxResultsPerSearch` | integer | Cap itineraries per route. `0` = all (typically 20-60). Default 0. |
| `maxConcurrency` | integer | Routes searched in parallel. Default 3. |
| `proxyConfiguration` | object | Proxy settings. Residential proxy is recommended. |

### Output

Each dataset item is one itinerary.

**One-way, nonstop — `LAX,JFK,2026-08-15` (economy):**

```json
{
  "_input": "LAX-JFK 2026-08-15",
  "_source": "S1-html",
  "_scrapedAt": "2026-07-11T04:25:03Z",
  "searchOrigin": "LAX",
  "searchDestination": "JFK",
  "searchDepartureDate": "2026-08-15",
  "searchReturnDate": null,
  "tripType": "one-way",
  "cabinClass": "economy",
  "currency": "USD",
  "passengers": 1,
  "airlineCode": "AA",
  "airlines": ["American"],
  "originCode": "LAX",
  "destinationCode": "JFK",
  "departureDate": "2026-08-15",
  "departureTime": "13:30",
  "arrivalDate": "2026-08-15",
  "arrivalTime": "22:06",
  "totalDurationMinutes": 336,
  "stops": 0,
  "price": 269,
  "carbonEmissionGrams": 558000,
  "typicalCarbonEmissionGrams": 341000,
  "legs": [
    {
      "fromCode": "LAX",
      "fromName": "Los Angeles International Airport",
      "toCode": "JFK",
      "toName": "John F. Kennedy International Airport",
      "departureDate": "2026-08-15",
      "departureTime": "13:30",
      "arrivalDate": "2026-08-15",
      "arrivalTime": "22:06",
      "durationMinutes": 336,
      "airplane": "Airbus A321 (Sharklets)"
    }
  ],
  "layovers": []
}
```

**Round-trip — `SFO,LHR,2026-09-01,2026-09-10` (economy):**

```json
{
  "_input": "SFO-LHR 2026-09-01->2026-09-10",
  "_source": "S1-html",
  "_scrapedAt": "2026-07-11T04:25:26Z",
  "searchOrigin": "SFO",
  "searchDestination": "LHR",
  "searchDepartureDate": "2026-09-01",
  "searchReturnDate": "2026-09-10",
  "tripType": "round-trip",
  "cabinClass": "economy",
  "currency": "USD",
  "passengers": 1,
  "airlineCode": "B6",
  "airlines": ["JetBlue"],
  "originCode": "SFO",
  "destinationCode": "LHR",
  "departureTime": "06:00",
  "arrivalDate": "2026-09-02",
  "arrivalTime": "06:30",
  "totalDurationMinutes": 990,
  "stops": 1,
  "price": 872,
  "carbonEmissionGrams": 985000,
  "typicalCarbonEmissionGrams": 613000,
  "legs": [
    {
      "fromCode": "SFO", "fromName": "San Francisco International Airport",
      "toCode": "BOS", "toName": "Boston Logan International Airport",
      "departureTime": "06:00", "arrivalTime": "14:41",
      "durationMinutes": 341, "airplane": "Airbus A320"
    },
    {
      "fromCode": "BOS", "fromName": "Boston Logan International Airport",
      "toCode": "LHR", "toName": "Heathrow Airport",
      "departureTime": "18:39", "arrivalTime": "06:30",
      "durationMinutes": 411, "airplane": "Airbus A321neo"
    }
  ],
  "layovers": [
    { "durationMinutes": 238, "airportCode": "BOS", "airportName": "Boston Logan International Airport", "city": "Boston" }
  ]
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The search this record came from. |
| `_source` | string | Which extraction path produced the record. |
| `_scrapedAt` | string | UTC timestamp of the fetch. |
| `searchOrigin` / `searchDestination` | string | The searched origin / destination airport code. |
| `searchDepartureDate` / `searchReturnDate` | string | The searched dates (`searchReturnDate` is `null` for one-way). |
| `tripType` | string | `one-way` or `round-trip`. |
| `cabinClass` | string | Cabin searched. |
| `currency` | string | Currency of `price`. |
| `passengers` | integer | Total passengers searched. |
| `airlineCode` | string | Primary airline code for the itinerary. |
| `airlines` | array | Airline display names operating the itinerary. |
| `originCode` / `destinationCode` | string | Itinerary start / end airport code. |
| `departureDate` / `departureTime` | string | Overall departure date and 24h time. |
| `arrivalDate` / `arrivalTime` | string | Overall arrival date and 24h time. |
| `totalDurationMinutes` | integer | Total journey time in minutes (including layovers). |
| `stops` | integer | Number of stops (0 = nonstop). |
| `price` | integer | Fare in `currency` (round-trip total for round trips). |
| `carbonEmissionGrams` | integer | Estimated CO2 for this itinerary, in grams. |
| `typicalCarbonEmissionGrams` | integer | Typical CO2 for the route, in grams. |
| `legs` | array | Per-leg detail: airports (code + name), dates, times, duration, aircraft. |
| `layovers` | array | Per-layover detail: duration (minutes), airport code, name, and city. |

When a route returns no flights or a search fails, the record instead carries `_error` and `_errorDetail` so failures are never silent.

### Notes and limits

- Prices and availability are what Google shows at scrape time and can change quickly.
- Round-trip results show outbound itineraries priced at the round-trip total.
- Multi-city trips are not supported.
- Google serves flight data only to residential-grade traffic at any volume; keep the Residential proxy enabled for reliable runs.

# Actor input Schema

## `origin` (type: `string`):

Departure airport IATA code, e.g. 'LAX', 'JFK', 'LHR'. Used when 'routes' is empty.

## `destination` (type: `string`):

Arrival airport IATA code, e.g. 'JFK', 'LHR', 'NRT'. Used when 'routes' is empty.

## `departureDate` (type: `string`):

Outbound date in YYYY-MM-DD format. Used when 'routes' is empty.

## `returnDate` (type: `string`):

Return date in YYYY-MM-DD format. Leave blank for a one-way search; fill it in for a round trip. Used when 'routes' is empty.

## `routes` (type: `array`):

Search many routes in one run. Each item is 'ORIGIN,DESTINATION,DEPARTURE\[,RETURN]', e.g. 'LAX,JFK,2026-08-15' (one-way) or 'SFO,LHR,2026-09-01,2026-09-10' (round trip). When set, this overrides the single origin/destination fields above.

## `cabinClass` (type: `string`):

Seating class to search.

## `maxStops` (type: `string`):

Filter itineraries by number of stops.

## `adults` (type: `integer`):

Number of adult passengers (age 12+).

## `children` (type: `integer`):

Number of child passengers (age 2-11).

## `infantsInSeat` (type: `integer`):

Infants occupying their own seat.

## `infantsOnLap` (type: `integer`):

Infants travelling on an adult's lap (max one per adult).

## `currency` (type: `string`):

3-letter currency code for prices, e.g. 'USD', 'EUR', 'GBP'.

## `language` (type: `string`):

2-letter language code for airport / airline names, e.g. 'en', 'de', 'es'.

## `maxResultsPerSearch` (type: `integer`):

Cap on itineraries returned per route (0 = all that Google returns, typically 20-60).

## `maxConcurrency` (type: `integer`):

Number of routes searched in parallel. Keep low to stay under Google's radar.

## `proxyConfiguration` (type: `object`):

Google requires residential IPs at any volume. Defaults to the Apify Residential group.

## Actor input object example

```json
{
  "origin": "LAX",
  "destination": "JFK",
  "departureDate": "2026-08-15",
  "routes": [
    "LAX,JFK,2026-08-15",
    "SFO,LHR,2026-09-01,2026-09-10"
  ],
  "cabinClass": "economy",
  "maxStops": "any",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "currency": "USD",
  "language": "en",
  "maxResultsPerSearch": 0,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "origin": "LAX",
    "destination": "JFK",
    "departureDate": "2026-08-15",
    "returnDate": "",
    "routes": [
        "LAX,JFK,2026-08-15",
        "SFO,LHR,2026-09-01,2026-09-10"
    ],
    "cabinClass": "economy",
    "maxStops": "any",
    "currency": "USD",
    "language": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/google-flights-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "origin": "LAX",
    "destination": "JFK",
    "departureDate": "2026-08-15",
    "returnDate": "",
    "routes": [
        "LAX,JFK,2026-08-15",
        "SFO,LHR,2026-09-01,2026-09-10",
    ],
    "cabinClass": "economy",
    "maxStops": "any",
    "currency": "USD",
    "language": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/google-flights-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "origin": "LAX",
  "destination": "JFK",
  "departureDate": "2026-08-15",
  "returnDate": "",
  "routes": [
    "LAX,JFK,2026-08-15",
    "SFO,LHR,2026-09-01,2026-09-10"
  ],
  "cabinClass": "economy",
  "maxStops": "any",
  "currency": "USD",
  "language": "en"
}' |
apify call xtracto/google-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/google-flights-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Flights Scraper",
        "description": "Search Google Flights for real fares: prices, airlines, stops, departure/arrival times, flight duration, layovers, aircraft and CO2 estimates. One-way or round-trip, single route or batch. No account or API key.",
        "version": "0.1",
        "x-build-id": "ICBtOYt8kvTkcrBsw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~google-flights-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-google-flights-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~google-flights-scraper/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-google-flights-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~google-flights-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-google-flights-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "origin": {
                        "title": "Origin airport",
                        "type": "string",
                        "description": "Departure airport IATA code, e.g. 'LAX', 'JFK', 'LHR'. Used when 'routes' is empty."
                    },
                    "destination": {
                        "title": "Destination airport",
                        "type": "string",
                        "description": "Arrival airport IATA code, e.g. 'JFK', 'LHR', 'NRT'. Used when 'routes' is empty."
                    },
                    "departureDate": {
                        "title": "Departure date",
                        "type": "string",
                        "description": "Outbound date in YYYY-MM-DD format. Used when 'routes' is empty."
                    },
                    "returnDate": {
                        "title": "Return date (optional)",
                        "type": "string",
                        "description": "Return date in YYYY-MM-DD format. Leave blank for a one-way search; fill it in for a round trip. Used when 'routes' is empty."
                    },
                    "routes": {
                        "title": "Batch routes (optional)",
                        "type": "array",
                        "description": "Search many routes in one run. Each item is 'ORIGIN,DESTINATION,DEPARTURE[,RETURN]', e.g. 'LAX,JFK,2026-08-15' (one-way) or 'SFO,LHR,2026-09-01,2026-09-10' (round trip). When set, this overrides the single origin/destination fields above.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cabinClass": {
                        "title": "Cabin class",
                        "enum": [
                            "economy",
                            "premium-economy",
                            "business",
                            "first"
                        ],
                        "type": "string",
                        "description": "Seating class to search.",
                        "default": "economy"
                    },
                    "maxStops": {
                        "title": "Max stops",
                        "enum": [
                            "any",
                            "nonstop",
                            "1",
                            "2"
                        ],
                        "type": "string",
                        "description": "Filter itineraries by number of stops.",
                        "default": "any"
                    },
                    "adults": {
                        "title": "Adults",
                        "minimum": 1,
                        "maximum": 9,
                        "type": "integer",
                        "description": "Number of adult passengers (age 12+).",
                        "default": 1
                    },
                    "children": {
                        "title": "Children",
                        "minimum": 0,
                        "maximum": 8,
                        "type": "integer",
                        "description": "Number of child passengers (age 2-11).",
                        "default": 0
                    },
                    "infantsInSeat": {
                        "title": "Infants in seat",
                        "minimum": 0,
                        "maximum": 8,
                        "type": "integer",
                        "description": "Infants occupying their own seat.",
                        "default": 0
                    },
                    "infantsOnLap": {
                        "title": "Infants on lap",
                        "minimum": 0,
                        "maximum": 8,
                        "type": "integer",
                        "description": "Infants travelling on an adult's lap (max one per adult).",
                        "default": 0
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "3-letter currency code for prices, e.g. 'USD', 'EUR', 'GBP'.",
                        "default": "USD"
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "2-letter language code for airport / airline names, e.g. 'en', 'de', 'es'.",
                        "default": "en"
                    },
                    "maxResultsPerSearch": {
                        "title": "Max results per search (0 = all)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Cap on itineraries returned per route (0 = all that Google returns, typically 20-60).",
                        "default": 0
                    },
                    "maxConcurrency": {
                        "title": "Max concurrent searches",
                        "minimum": 1,
                        "maximum": 8,
                        "type": "integer",
                        "description": "Number of routes searched in parallel. Keep low to stay under Google's radar.",
                        "default": 3
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Google requires residential IPs at any volume. Defaults to the Apify Residential group.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
