# Opodo Locations API Documentation

<p><strong>Opodo Locations API Documentation</strong> Pass one or more IATA codes in repeated iatas parameters, or a keyword in query. Ids such as geoNodeId are returned unchanged and can be used as origin and destination in flight search. Prices are not part of this endpoint.</p>

- **Documentation:** [https://scrappa.co/docs/opodo-api/opodo_locations](https://scrappa.co/docs/opodo-api/opodo_locations)
- **API group:** Opodo API
- **Endpoint:** `GET https://scrappa.co/api/opodo/locations`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `iatas` | array | No | One or more three-letter IATA codes, repeated, for example iatas=BER and iatas=LHR. Required unless query is given. |
| `query` | string | No | City or airport name, 2 to 100 characters. Required unless iatas is given. |

## Example response

```json
{
    "data": {
        "mode": "iata",
        "locations": [
            {
                "city": "Berlin",
                "iata": "BER",
                "name": "Berlin Brandenburg",
                "coordinates": {
                    "latitude": 52.36,
                    "longitude": 13.5
                },
                "geo_node_id": 9654,
                "country_code": "DE",
                "geo_node_type": "CITY"
            }
        ]
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Opodo data is temporarily unavailable. Please retry. |  |
|  | The upstream response shape changed. |  |
|  | The requested location was not found. |  |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
