image

Flight search is a live SteadyAPI product, and the public how-tos never walk through it. Hotel search is already drafted. This guide covers the flight side: turn a city or airport name into a location code, then pull offers, times, and prices.

👉 To access these endpoints, you must obtain an API key: https://steadyapi.com/register


Authentication

Every call uses a Bearer token from your SteadyAPI dashboard.

Documentation:
https://docs.steadyapi.com/#authenticating-requests

headers = {
  'Authorization': 'Bearer YOUR_API_KEY'
}

1. Resolve an airport

Search accepts locations in CODE.TYPE form, such as CVG.AIRPORT. Autocomplete returns that id for you.

Endpoint: GET /v1/booking/flights/autocomplete

Documentation:
https://docs.steadyapi.com/#bookingcom-GETapi-v1-booking-flights-autocomplete

Parameters

  • search — required search term (example: cvg)
  • language — optional language code (default en)

Python

import requests

url = "https://api.steadyapi.com/v1/booking/flights/autocomplete"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"search": "cvg", "language": "en"}

response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
matches = response.json().get("body", [])

place = matches[0]
print(place["name"], place["code"], place["id"], place["city"])

Response fields

Each item in body includes:

  • id — location id to pass as from or to (code plus type, such as CVG.AIRPORT)
  • type — location type, such as AIRPORT
  • name — airport or place name
  • code — airport code
  • city, region, and country

2. Search flight offers

Pass the autocomplete ids as from and to. Departure must be today or later. A round trip also needs return.

Endpoint: GET /v1/booking/flights/search

Documentation:
https://docs.steadyapi.com/#bookingcom-GETapi-v1-booking-flights-search

Parameters

  • from — required origin, such as CVG.AIRPORT
  • to — required destination, such as OKC.AIRPORT
  • depart — required departure date, YYYY-MM-DD, today or later
  • type — required trip type: ROUNDTRIP, ONEWAY, or MULTICITY
  • adults — required, 1 to 9
  • return — required when type is ROUNDTRIP, on or after depart
  • cabinClass — optional: ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST (default ECONOMY)
  • children — optional comma-separated ages
  • sort — optional: BEST, PRICE, or DURATION
  • currency — optional currency code
  • language — optional language code
  • page — optional page number (default 1)
  • pageSize — optional results per page (default 10, max 100)

Python

from datetime import date, timedelta

depart = (date.today() + timedelta(days=21)).isoformat()
ret = (date.today() + timedelta(days=24)).isoformat()

search_url = "https://api.steadyapi.com/v1/booking/flights/search"
search_params = {
    "from": "CVG.AIRPORT",
    "to": "OKC.AIRPORT",
    "depart": depart,
    "return": ret,
    "type": "ROUNDTRIP",
    "adults": 1,
    "cabinClass": "ECONOMY",
    "sort": "PRICE",
}

search = requests.get(search_url, headers=headers, params=search_params)
search.raise_for_status()
payload = search.json()
offers = payload.get("body", {}).get("flightOffers", [])

for offer in offers[:5]:
    segment = offer["segments"][0]
    total = offer.get("priceBreakdown", {}).get("total", {}).get("amount")
    print(segment["departureAirport"]["code"], segment["arrivalAirport"]["code"], segment["departureTime"], total)

Response fields

meta includes total_results, total_pages, current_page, and page_size. Each item in body.flightOffers includes:

  • token — offer token for a later details call
  • segments[].departureAirport.code and segments[].arrivalAirport.code
  • segments[].departureTime and segments[].arrivalTime
  • segments[].legs[].flightInfo.flightNumber
  • segments[].legs[].flightInfo.carrierInfo.marketingCarrier
  • segments[].legs[].carriersData — airline name, code, and logo
  • priceBreakdown.total.amount, priceBreakdown.baseFare.amount, and priceBreakdown.tax.amount

Practical use

Resolve both ends with autocomplete, then page through offers with page and pageSize. Sort with PRICE when you want the cheapest fare first. Offer details are a separate call, GET /v1/booking/flights/details, using the token from search.

Documentation:
https://docs.steadyapi.com/#bookingcom-GETapi-v1-booking-flights-details

👉 Get your API key and search flights: https://steadyapi.com/register

How to Get NHL Scores Using SteadyAPI Sep 25, 2026

How to Get NHL Scores Using SteadyAPI

Learn how to fetch NHL scores with SteadyAPI. Pull a day's games, including both clubs, the venue, and the game state.

Predicting Property Value Trends: How to Use Real Estate Valuation APIs Jul 19, 2026

Predicting Property Value Trends: How to Use Real Estate Valuation APIs

Learn how to build a predictive real estate valuation pipeline using SteadyAPI. This guide shows developers how to combine historical property values, multi-provider forecasts, neighborhood market trends, housing market indicators,...

How to Fetch Local School Ratings and Neighborhood Amenities via API Jul 19, 2026

How to Fetch Local School Ratings and Neighborhood Amenities via API

Neighborhood insights are just as important as the property itself. This guide shows developers how to use the SteadyAPI Neighborhood Amenities API to fetch school ratings, walkability and transit scores,...

How to Build a Custom Real Estate Website Using a Realtor API Jun 28, 2026

How to Build a Custom Real Estate Website Using a Realtor API

A step-by-step developer's guide to building a custom real estate website. Learn how to implement address autocomplete, search filters, and property details with SteadyAPI.