# Airports List

Returns a list of major airports with IATA codes, names, and locations. Free endpoint.

- **Documentation:** [https://scrappa.co/docs/google-flights-api/google_flights_airports](https://scrappa.co/docs/google-flights-api/google_flights_airports)
- **API group:** Google Flights API
- **Endpoint:** `GET https://scrappa.co/api/flights/airports`

## 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.

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/flights/airports"
```

## Example response

```json
{
    "airports": [
        {
            "code": "JFK",
            "name": "John F. Kennedy International Airport",
            "city": "New York",
            "country": "United States"
        }
    ]
}
```

## 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)
