# Get route fares

Returns the cheapest quoted fares between two places, with each quote's airports, dates, carrier and age, twelve months of cheapest-by-month prices, nearby airports and the airlines flying the route. Requires `origin` and `destination` as Skyscanner place codes.

- Platform: Skyscanner
- Request: `GET https://api.toolzerhub.com/v1/skyscanner/route`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/skyscanner/get-skyscanner-route

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `origin` | query | yes | string | Skyscanner place code to fly from, e.g. lond or sfo. City and airport codes both work. Airports may be returned as their city; requested_origin echoes what you sent. |
| `destination` | query | yes | string | Skyscanner place code to fly to, e.g. nyca or jfk. City and airport codes both work. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/skyscanner/route?origin=<origin>&destination=<destination>" \
  -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.
