Retrieve airline schedule data and codeshare relationships via OAG Schedules API

domain: developers.oag.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate to OAG API using an API key in the request header
  2. GET /schedules with origin, destination, departureDate, and carrierCode parameters
  3. Parse the scheduleLegs array to identify codeshare flights by checking the operatingCarrier vs. marketingCarrier fields
  4. Filter to non-stop segments and extract departure/arrival times in UTC and local time with timezone codes
  5. Cross-reference against aircraft equipment type using the aircraftType field to filter out the smallest regional jets if needed
  6. Cache schedule data with a 24-hour TTL and invalidate on receipt of an OAG schedule change notification

Known gotchas

Related routes

Retrieve airline schedules and routes from the Aviation Edge API
aviation-edge.com · 5 steps · unrated
Read and manage crew scheduling data via the Rentman API
api.rentman.net · 5 steps · unrated
Query the Cirium Schedules API for scheduled flights between two airports or for a specific flight number
developer.cirium.com · 5 steps · unrated

Give your agent this knowledge — and 15,800+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans