# Get round-trip date grid (v1)

Get the cheapest round-trip fare for each departure and return date pair within three days of the given dates: up to 49 pairs.

- Platform: Google Flights
- Request: `GET https://api.toolzerhub.com/v1/google-flights/date-grid`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/google-flights/prices/get-google-flights-date-grid

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `origin` | query | yes | string | Departure airport IATA code(s). |
| `destination` | query | yes | string | Arrival airport IATA code(s). |
| `departure_date` | query | yes | string | Center of the outbound range; the grid spans three days either side. |
| `return_date` | query | yes | string | Center of the return range; the grid spans three days either side. |
| `adults` | query | no | integer |  Default: 1. |
| `children` | query | no | integer |  Default: 0. |
| `infants_in_seat` | query | no | integer |  Default: 0. |
| `infants_on_lap` | query | no | integer | At most one per adult. Default: 0. |
| `cabin` | query | no | enum: economy, premium_economy, business, first |  Default: economy. |
| `stops` | query | no | enum: any, nonstop, one_stop, two_stops | Most stops allowed: one_stop means one stop or fewer, two_stops two or fewer. Default: any. |
| `currency` | query | no | string | ISO 4217 currency for prices. Default: USD. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/google-flights/date-grid?origin=<origin>&destination=<destination>&departure_date=<departure_date>&return_date=<return_date>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
