Discover/Ceair API
live

Ceair APIm.ceair.com

Search China Eastern flights, check real-time status, find cheapest travel dates, and look up city/airport codes via the m.ceair.com API.

This API takes change requests — .
Endpoint health
verified 1d ago
get_cities
1/1 passing latest checkself-healing
Endpoints
4
Updated
1mo ago

What is the Ceair API?

This API exposes 4 endpoints covering China Eastern Airlines flight data: search available flights with pricing and cabin details, retrieve real-time flight status including weather conditions at both airports, look up valid city and airport codes, and scan a configurable date window to surface the cheapest flight per day. The find_cheapest_day endpoint is especially useful for flexible-date travel planning across domestic and international routes.

This call costs2 credits / call— charged only on success
Try it
Arrival city code (e.g., BJS for Beijing, HGH for Hangzhou). Use get_cities to find valid codes.
Departure city code (e.g., SHA for Shanghai, CKG for Chongqing). Use get_cities to find valid codes.
Departure date in YYYY-MM-DD format (must be a future date)
Number of adult passengers
Trip type: OW (one-way) or RT (round-trip)
api.parse.bot/scraper/43fdabd8-4ad8-451f-94fa-d37591a26ef9/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/43fdabd8-4ad8-451f-94fa-d37591a26ef9/search_flights' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "arr_city": "BJS",
  "dep_city": "SHA",
  "dep_date": "2026-09-01",
  "adult_num": "1",
  "trip_type": "OW"
}'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace m-ceair-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: China Eastern Airlines SDK — search flights, find cheapest day, check status."""
from parse_apis.China_Eastern_Airlines_API import ChinaEastern, TripType, FlightNotFound

client = ChinaEastern()

# Search one-way flights from Shanghai to Beijing
for offer in client.flight_offers.search(dep_city="SHA", arr_city="BJS", dep_date="2026-08-01", trip_type=TripType.OW, limit=3):
    print(offer.flight_no, offer.departure_time, offer.arrival_time, offer.lowest_price)

# Find the cheapest day to fly in a date window
for day in client.day_prices.search(dep_city="SHA", arr_city="BJS", center_date="2026-08-01", days_before=3, days_after=3, limit=3):
    print(day.date, day.flight_no, day.lowest_price, day.cabin_class)

# Look up real-time flight status
try:
    status = client.flight_statuses.get(flight_no="5137", date="2026-08-01")
    print(status.flight_no, status.status, status.scheduled_departure, status.aircraft_type)
except FlightNotFound as exc:
    print(f"Flight not found: {exc.flight_no}")

# Browse available cities
city = client.cities.list(limit=1).first()
if city:
    print(city.code, city.city_name, city.country_name, city.region)

print("exercised: flight_offers.search / day_prices.search / flight_statuses.get / cities.list")
All endpoints · 4 totalmissing one? ·

Search for available flights between departure and arrival cities on a specific date. Returns a flat list of flight offers with pricing, cabin classes, schedules, and aircraft details. Uses city codes (e.g., SHA for Shanghai, BJS for Beijing). Use get_cities to look up valid city codes. Results include the lowest available price per flight across all cabin classes.

Input
ParamTypeDescription
arr_cityrequiredstringArrival city code (e.g., BJS for Beijing, HGH for Hangzhou). Use get_cities to find valid codes.
dep_cityrequiredstringDeparture city code (e.g., SHA for Shanghai, CKG for Chongqing). Use get_cities to find valid codes.
dep_daterequiredstringDeparture date in YYYY-MM-DD format (must be a future date)
adult_numintegerNumber of adult passengers
trip_typestringTrip type: OW (one-way) or RT (round-trip)
Response
{
  "type": "object",
  "fields": {
    "flights": "array of flight offer objects with flight number, airline, origin/destination, schedule, duration, plane type, terminals, and lowest price",
    "resultMsg": "string with result message",
    "resultCode": "string indicating success (S200) or error code"
  },
  "sample": {
    "data": {
      "flights": [
        {
          "origin": "SHA",
          "duration": 135,
          "flightNo": "5099",
          "planeType": "919",
          "cabinClass": "经济舱",
          "originName": "虹桥国际机场",
          "airlineCode": "MU",
          "airlineName": "东方航空",
          "arrTerminal": "T2",
          "arrivalTime": "09:15",
          "depTerminal": "T2",
          "destination": "PEK",
          "lowestPrice": 500,
          "departureDate": "2026-06-20",
          "departureTime": "07:00",
          "destinationName": "首都国际机场"
        }
      ],
      "resultMsg": "请求成功。",
      "resultCode": "S200"
    },
    "status": "success"
  }
}

About the Ceair API

Flight Search and Pricing

The search_flights endpoint accepts a departure city code (dep_city), arrival city code (arr_city), and a dep_date in YYYY-MM-DD format, plus optional adult_num and trip_type (OW or RT). It returns an array of flight offer objects containing flight number, airline, origin and destination, scheduled times, total duration, aircraft type, terminal assignments, and the lowest available price per cabin class. City codes follow China Eastern conventions — for example, SHA for Shanghai and BJS for Beijing — and should be validated with get_cities before use.

Real-Time Flight Status

The get_flight_status endpoint takes a flight_no (digits only, without carrier prefix), a date, and an optional carrier code such as MU for China Eastern. The response includes the aocFlightList array, where each entry carries scheduled and actual departure and arrival times, terminal details, aircraft type, current status codes (UNFLY, DEPT, ARR), and weather conditions at both the origin and destination airports. Coverage focuses on China Eastern (MU) operated flights.

City and Airport Reference

The get_cities endpoint requires no inputs and returns a full list of city objects, each with a city code, name, country, region classification, hot status flag, and an array of associated airports. This is the authoritative lookup for valid codes to pass into search_flights or find_cheapest_day. Results are organized into domestic and international categories.

Cheapest-Day Window Search

The find_cheapest_day endpoint centers a date window on center_date and extends it by days_before and days_after. It returns one cheapest_flights entry per day in the window — each with date, flightNo, departureTime, arrivalTime, and lowestPrice — sorted ascending by price so the lowest-cost date appears first. The response also echoes back dep_city, arr_city, center_date, days_before, and days_after so callers can confirm the window that was searched.

Reliability & maintenanceVerified

The Ceair API is a managed, monitored endpoint for m.ceair.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when m.ceair.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official m.ceair.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display live China Eastern flight status, weather, and terminal info on a travel dashboard
  • Build a fare calendar that shows the cheapest available flight price for each day in a date range
  • Autocomplete city and airport code inputs using the full get_cities reference list
  • Compare one-way vs. round-trip pricing for a given route by calling search_flights with different trip_type values
  • Alert travelers when a flight transitions from UNFLY to DEPT or ARR status
  • Aggregate route pricing data across multiple city pairs for a flight deal newsletter
  • Pre-fill booking flows with accurate flight schedule and aircraft type data from search_flights
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does China Eastern Airlines offer an official developer API?+
China Eastern does not publish a documented public developer API on ceair.com. The m.ceair.com API on Parse is a structured interface for accessing the same flight, status, and city data available on China Eastern's mobile site.
What status codes does `get_flight_status` return, and what do they mean?+
The aocFlightList entries include a status field that uses codes such as UNFLY (flight has not yet departed), DEPT (departed), and ARR (arrived). Each entry also includes actual and scheduled times, so you can calculate delay durations independently.
Does `find_cheapest_day` return all flights for each day or just one?+
It returns exactly one flight object per day in the window — the one with the lowest price found for that date. The results are sorted ascending by lowestPrice, so the cheapest day across the entire window is always first. If you need all available flights for a specific date, use search_flights with that date directly.
Does this API cover airlines other than China Eastern?+
The get_flight_status endpoint focuses on China Eastern (MU) flights, and search_flights returns inventory from China Eastern routes. Codeshare or interline flights from other carriers are not currently covered. You can fork this API on Parse and revise it to add endpoints targeting other airline sources.
Can I retrieve seat maps or baggage allowance details through these endpoints?+
Not currently. The API covers flight availability, pricing, schedules, aircraft type, and real-time status. Seat map and baggage allowance data are not exposed in the current response shapes. You can fork this API on Parse and revise it to add the missing endpoint if those fields become available.
Page content last updated . Spec covers 4 endpoints from m.ceair.com.
Related APIs in TravelSee all →
united.com API
Search United Airlines flights, check real-time flight status, and view detailed seat maps to plan your perfect trip. Compare fare options and use airport autocomplete to quickly find your departure and arrival cities.
us.trip.com API
Search for flights across Trip.com and view a low-price calendar to find the cheapest travel dates for your destination. Compare flight options and prices to book your next trip at the best rates available.
emirates.com API
emirates.com API
aa.com API
Search for real-time American Airlines flight information including departure/arrival times, gates, terminals, and aircraft details, plus look up airports and countries to plan your travel. Get live flight status updates and discover available amenities for your journey.
aircanada.com API
Search for Air Canada flights between any two airports and compare pricing across all fare families, from Basic to Business class, along with complete schedule and segment details. Find the perfect flight option with transparent pricing and full flight information to make your booking decision.
alaskaair.com API
Search for Alaska Airlines award flight availability and pricing in miles, including taxes, fees, and seat details across airports and cities. Look up airport and city codes to find the perfect mileage redemption for your next trip.
makemytrip.com API
Search for airports and compare the cheapest flight fares between any two cities across multiple dates with MakeMyTrip's fare calendar to find your best deal. Quickly identify the most affordable travel options and plan your trip with real-time pricing information.
skywings.co.uk API
Search for flights across Skywings.co.uk by specifying your route, travel dates, cabin class, and trip type to instantly access available options with detailed pricing, flight segments, and baggage allowances. Find and compare multiple flight choices tailored to your travel needs in seconds.