Delta APIdelta.com ↗
Access Delta Air Lines flight schedules, real-time status, trip details by PNR, and closest airport lookup via 3 structured endpoints.
What is the Delta API?
The Delta Air Lines API provides 3 endpoints for querying flight schedules with real-time status, retrieving booking details by confirmation number, and identifying the nearest Delta-served airport. The get_flight_schedules endpoint accepts origin and destination IATA codes plus a departure date and returns full trip objects including flight segments, aircraft type, stop count, and estimated times. The get_trip_details endpoint lets you pull a complete itinerary using just a PNR and passenger last name.
curl -X POST 'https://api.parse.bot/scraper/fc8ab1c1-e902-49c8-8db1-2410425f8580/get_flight_schedules' \
-H 'X-API-Key: $PARSE_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"date": "2026-07-13",
"origin": "ATL",
"destination": "LAX",
"flight_number": "0996"
}'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 delta-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: Delta Air Lines SDK — flight schedules and airport lookup."""
from parse_apis.delta_air_lines_api import Delta, FlightSchedule, Airport, NotFoundError
delta = Delta()
# Find the closest Delta-served airport based on geolocation
airport = delta.airports.closest()
print(airport.airport_code, airport.city_name, airport.state_code, airport.country_code)
# Search flight schedules from ATL to LAX on a specific date
route = delta.route(origin="ATL")
for schedule in route.schedules(destination="LAX", date="2026-06-14", limit=3):
print(schedule.trip_number, schedule.trip_duration, schedule.stops)
for segment in schedule.dated_operating_segment:
print(segment.flight_number, segment.status, segment.aircraft_name)
# Filter by a specific flight number
schedule = route.schedules(destination="LAX", date="2026-06-14", flight_number="0996", limit=1).first()
if schedule:
seg = schedule.dated_operating_segment[0]
print(seg.flight_number, seg.carrier_code, seg.origin_departure_date)
# Typed error handling
try:
nearby = delta.airports.closest()
print(nearby.airport_code, nearby.city_name)
except NotFoundError as exc:
print(f"Airport lookup failed: {exc}")
print("exercised: airports.closest / route.schedules / route.schedules(flight_number)")
Search for Delta flight schedules and real-time status by route. Both origin and destination airport codes are required. Optionally filter by a specific flight number within the route. Returns all matching trips with flight segments including departure/arrival times, status, aircraft type, and number of stops. Paginates up to 30 results per call. Duration is ISO 8601 (e.g. PT04H40M).
| Param | Type | Description |
|---|---|---|
| daterequired | string | Departure date in YYYY-MM-DD format. Must be within Delta's schedule window (typically today through approximately 330 days ahead). |
| originrequired | string | 3-letter IATA origin airport code (e.g. JFK, ATL, LAX, ORD, SFO, SEA, BOS, DFW, MSP, DTW). |
| destinationrequired | string | 3-letter IATA destination airport code (e.g. LAX, ORD, MIA, JFK, ATL, SFO, SEA, BOS, DFW, MSP). |
| flight_number | string | Delta flight number to filter results within the route (e.g. 0742). Must be used together with origin and destination, not as a standalone search. |
{
"type": "object",
"fields": {
"trip": "array of trip objects with flight segments including flight number, duration, stops, status, aircraft, and scheduled/estimated times",
"arrival": "object with destination station info (code, name, cityName, coordinates)",
"departure": "object with origin station info (code, name, cityName, coordinates)",
"flightScheduleDisplayFilterOptions": "object with available filter options (stops, time ranges)"
},
"sample": {
"data": {
"trip": [
{
"stops": 0,
"tripNumber": "001",
"tripDuration": "PT04H40M",
"datedOperatingSegment": [
{
"stops": 0,
"carrier": {
"code": "DL",
"name": "Delta Air Lines"
},
"flightNumber": "0996",
"datedOperatingLegs": [
{
"status": "On Time",
"aircraft": {
"code": "3NE",
"name": "Airbus A321neo"
},
"statusColor": "GREEN",
"flightNumber": "0996",
"transportArrival": {
"status": "On Time",
"station": {
"code": "LAX",
"cityName": "Los Angeles,CA"
},
"scheduleLocalDateTime": "2026-06-12T08:55:00-07:00"
},
"transportDeparture": {
"status": "On Time",
"station": {
"code": "ATL",
"cityName": "Atlanta,GA"
},
"scheduleLocalDateTime": "2026-06-12T07:15:00-04:00"
}
}
],
"originDepartureDate": "2026-06-12"
}
]
}
],
"arrival": {
"station": {
"code": "LAX",
"name": "Los Angeles",
"cityName": "Los Angeles,CA",
"coordinate": {
"latitude": 33.9425,
"longitude": -118.40805
}
},
"terminal": {
"code": "",
"name": ""
}
},
"departure": {
"station": {
"code": "ATL",
"name": "Atlanta",
"cityName": "Atlanta,GA",
"coordinate": {
"latitude": 33.6366,
"longitude": -84.42805
}
},
"terminal": {
"code": "",
"name": ""
}
},
"flightScheduleDisplayFilterOptions": {
"flightStops": [
"NON-STOP"
],
"departureTimeRanges": [
"00:00 – 10:59",
"11:00 – 17:59",
"18:00 – 23:59"
]
}
},
"status": "success"
}
}About the Delta API
Flight Schedule Search
The get_flight_schedules endpoint accepts a required origin and destination (both 3-letter IATA codes), a date in YYYY-MM-DD format, and an optional flight_number to narrow results to a specific Delta flight. The response includes a trip array containing flight segments with scheduled and estimated departure/arrival times, aircraft type, stop count, and current status. The departure and arrival objects carry station metadata: airport code, name, city name, and coordinates. A flightScheduleDisplayFilterOptions field surfaces available filter options such as stop counts and time range buckets for building search UIs.
Booking Lookup
The get_trip_details endpoint retrieves a full reservation by confirmation_number (a 6-character PNR) and last_name. Supplying first_name is optional but narrows matching for common surnames. A valid PNR returns a reservationDetails object covering all flight segments, passenger information, and booking metadata. An invalid or expired PNR returns a descriptive errors array rather than throwing an unstructured error, making it straightforward to handle negative cases programmatically.
Nearest Airport
The get_closest_airport endpoint takes no parameters and returns the Delta-served airport nearest to the caller based on geographic location. The response includes airportcode (IATA), cityname, statecode (for US locations), and countrycode. This is useful for defaulting origin fields in flight search interfaces without asking the user to type a city or airport.
The Delta API is a managed, monitored endpoint for delta.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when delta.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 delta.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.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Display real-time departure and arrival status for a specific Delta route on a travel dashboard
- Build a flight tracker that monitors estimated vs. scheduled times using the trip segment data
- Auto-populate the origin airport field in a booking form using get_closest_airport geolocation
- Let travelers retrieve their itinerary by entering a PNR and last name via get_trip_details
- Filter available nonstop vs. connecting Delta flights between two airports on a given date
- Surface aircraft type and stop count for route comparison tools using flight schedule data
- Validate a confirmation number and passenger name before proceeding to a check-in workflow
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.