API reference
Every operation, generated from the OpenAPI document.
Servers
| Environment | Base URL |
|---|---|
| Production | https://api.bemyplan.com |
| Sandbox | https://api.sandbox.bemyplan.com |
Send your key as a bearer token on every request: see Authentication.
The OpenAPI document, for client generators and tools: bemyplan-api.openapi.json.
Operations
Aircraft
Aircraft types.
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/aircraft | List aircraft types |
GET | /data/v1/aircraft/{aircraftId} | Get one aircraft type by id (includes inactive) |
Airlines
Airlines by IATA/ICAO code.
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/airlines | List airlines |
GET | /data/v1/airlines/{airlineId} | Get one airline by id (includes inactive) |
Airports
Airports with city, country, coordinates and IANA time zone.
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/airports | List airports |
GET | /data/v1/airports/{airportId} | Get one airport by id (includes inactive) |
Cities
Cities (IATA metropolitan codes).
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/cities | List cities |
GET | /data/v1/cities/{cityId} | Get one city by id (includes inactive) |
Countries
Countries (ISO 3166-1 alpha-2).
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/countries | List countries |
GET | /data/v1/countries/{countryId} | Get one country by ISO alpha-2 id (includes inactive) |
Places
Airport and city suggestions by name, code or position.
| Method | Path | Summary |
|---|---|---|
GET | /data/v1/places/suggestions | Suggest airports and cities by name, code or position |