Discover/Almosafer API
live

Almosafer APIalmosafer.com

Search Almosafer flights, get fare calendars, and look up airport/airline info via 3 structured endpoints returning real-time pricing and itinerary data.

Endpoint health
verified 4d ago
search_flights
get_fares_calendar
get_airport_info
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Almosafer API?

The Almosafer API provides 3 endpoints for querying flight data from almosafer.com, covering one-way and round-trip itinerary search, date-range fare calendars, and IATA code lookups. The search_flights endpoint returns per-itinerary fields including price, duration, stop count, baggage allowance, and seat availability across Economy, Business, and First cabin classes in any supported currency.

Try it
Cabin class: Economy, Business, First
Number of adult passengers
Origin airport IATA code (e.g., RUH, DXB, JFK)
Number of infant passengers (under 2)
Sort results by: price, duration, stops
Filter by airline codes, comma-separated (e.g., SV,F3,XY)
Number of child passengers (2-11 years)
Price currency code (USD, SAR, EUR, etc.)
Maximum total price filter
Maximum number of stops (0 for nonstop)
Minimum total price filter
Destination airport IATA code (e.g., JED, CAI, LHR)
Return date in YYYY-MM-DD format. Omit for one-way search
Set to 'true' to show only nonstop flights
Departure date in YYYY-MM-DD format
Set to 'true' to show only refundable fares
api.parse.bot/scraper/775b2738-2d03-4e34-a269-8c51b572e0a2/<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 GET 'https://api.parse.bot/scraper/775b2738-2d03-4e34-a269-8c51b572e0a2/search_flights?cabin=Economy&adults=1&origin=RUH&infants=0&sort_by=price&airlines=SV&children=0&currency=USD&max_price=5000&max_stops=1&min_price=0&destination=JED&return_date=2026-07-31&nonstop_only=false&departure_date=2026-07-24&refundable_only=false' \
  -H 'X-API-Key: $PARSE_API_KEY'
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 almosafer-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.

"""Almosafer Flight Search — find cheap flights, compare fares across dates, look up airports."""
from parse_apis.almosafer_flight_search_api import Almosafer, Cabin, Sort, RouteNotFound

client = Almosafer()

# Search nonstop flights from Riyadh to Jeddah, sorted by price
for flight in client.flights.search(
    origin="RUH", destination="JED", departure_date="2026-07-01",
    cabin=Cabin.ECONOMY, sort_by=Sort.PRICE, nonstop_only="true", limit=5
):
    print(flight.airline, flight.duration_minutes, flight.price.total, flight.price.currency)

# Fare calendar: cheapest price per date over a week
cheapest_fare = client.fares.calendar(
    origin="RUH", destination="DXB",
    departure_from="2026-07-01", departure_to="2026-07-07",
    limit=3
).first()
if cheapest_fare:
    print(cheapest_fare.departure_date, cheapest_fare.price, cheapest_fare.airline)

# Look up airport details by IATA codes
for airport in client.airports.lookup(codes="RUH,JED,DXB", limit=5):
    print(airport.code, airport.name, airport.city, airport.country)

# Typed error handling for a route that may not exist
try:
    for flight in client.flights.search(
        origin="RUH", destination="XYZ", departure_date="2026-07-01", limit=1
    ):
        print(flight.id)
except RouteNotFound as exc:
    print(f"Route not found: {exc.origin} -> {exc.destination}")

print("exercised: flights.search / fares.calendar / airports.lookup / RouteNotFound")
All endpoints · 3 totalmissing one? ·

Search for flights between airports with optional filtering by airline, stops, price, and more. Supports one-way and round-trip searches across all cabin classes. Returns flight itineraries sorted by the specified criteria. The upstream search is asynchronous — the scraper polls until all provider results are collected.

Input
ParamTypeDescription
cabinstringCabin class: Economy, Business, First
adultsintegerNumber of adult passengers
originrequiredstringOrigin airport IATA code (e.g., RUH, DXB, JFK)
infantsintegerNumber of infant passengers (under 2)
sort_bystringSort results by: price, duration, stops
airlinesstringFilter by airline codes, comma-separated (e.g., SV,F3,XY)
childrenintegerNumber of child passengers (2-11 years)
currencystringPrice currency code (USD, SAR, EUR, etc.)
max_pricenumberMaximum total price filter
max_stopsintegerMaximum number of stops (0 for nonstop)
min_pricenumberMinimum total price filter
destinationrequiredstringDestination airport IATA code (e.g., JED, CAI, LHR)
return_datestringReturn date in YYYY-MM-DD format. Omit for one-way search
nonstop_onlystringSet to 'true' to show only nonstop flights
departure_daterequiredstringDeparture date in YYYY-MM-DD format
refundable_onlystringSet to 'true' to show only refundable fares
Response
{
  "type": "object",
  "fields": {
    "search": "object containing search parameters summary (origin, destination, departure_date, return_date, cabin, passengers, currency, trip_type)",
    "flights": "array of flight objects with id, airline, flight_codes, price, duration_minutes, total_stops, baggage, seats_available, has_fare_families",
    "total_results": "integer count of flights returned",
    "airlines_found": "array of unique airline IATA codes in results"
  }
}

About the Almosafer API

Flight Search

The search_flights endpoint accepts a required origin and destination as IATA codes and a departure_date, with optional filters for cabin, airlines (comma-separated IATA codes), stops, and price range. Results are returned as an array of flight objects, each containing id, airline, flight_codes, price, duration_minutes, total_stops, baggage, seats_available, and a has_fare_flexibility flag. The sort_by parameter accepts price, duration, or stops. The airlines_found array in the response lets you see which carriers are present in the result set without scanning individual records.

Fare Calendar

The get_fares_calendar endpoint returns the cheapest one-way price for each date in a specified range between an origin and destination. The range is defined by departure_from and departure_to in YYYY-MM-DD format; ranges wider than 7 days are automatically broken into multiple requests and merged. Each entry in the fares array includes departure_date, price, airline, currency, and source. A top-level cheapest object surfaces the lowest-priced fare in the range without requiring client-side iteration.

Airport and Airline Lookup

The get_airport_info endpoint resolves one or more IATA codes — airports and airlines can be mixed in a single comma-separated codes parameter. Airport objects return code, name, city, country, and country_code. Airline objects return code and name. This is useful for displaying human-readable labels when building UIs on top of the search or calendar endpoints, which return raw IATA codes throughout.

Reliability & maintenanceVerified

The Almosafer API is a managed, monitored endpoint for almosafer.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when almosafer.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 almosafer.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
4d ago
Latest check
3/3 endpoints 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
  • Build a flexible date tool that shows the cheapest flight for each day in a month using get_fares_calendar
  • Compare prices across airlines on a route by filtering search_flights with specific airlines codes
  • Display route summaries with full airport names by resolving IATA codes via get_airport_info
  • Find the shortest-duration itinerary on a route by setting sort_by=duration in search_flights
  • Monitor seat availability and prices on specific flights using seats_available from search results
  • Identify which carriers serve a given route by reading the airlines_found field from a flight search
  • Resolve a mixed list of airline and airport IATA codes to display names in a travel dashboard
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does Almosafer have an official public developer API?+
Almosafer does not publish a public developer API or developer documentation. This Parse API provides structured access to the flight search, fare calendar, and airport lookup data available on almosafer.com.
What does `search_flights` return beyond the ticket price?+
Each flight object includes duration_minutes, total_stops, flight_codes, baggage allowance details, seats_available (a count or flag), and has_fare_flexibility. The top-level response also contains airlines_found — the distinct set of airline codes that appear in the result set — and total_results for the unfiltered count.
How does the fare calendar handle wide date ranges?+
The source supports a maximum 7-day window per request. When you pass a departure_from/departure_to range wider than 7 days, the API automatically chunks the range into sequential 7-day windows, fetches each, and merges the results into a single fares array. The total_combinations field tells you how many distinct dates have fare data in the final merged response.
Does the API return hotel or car rental data from Almosafer?+
Not currently. The API covers flights only: itinerary search, date-range fare calendars, and IATA code lookups. You can fork it on Parse and revise it to add endpoints for hotel or car rental data from Almosafer.
Can I get historical fare data or price trend charts across multiple months?+
The get_fares_calendar endpoint returns current lowest fares for future dates in a given range; it does not expose historical pricing or past fare trends. You can fork this API on Parse and revise it to add a historical data endpoint if that data becomes accessible through the source.
Page content last updated . Spec covers 3 endpoints from almosafer.com.
Related APIs in TravelSee all →
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.
emirates.com API
emirates.com API
skyscanner.com API
Search for flights and compare prices across multiple booking agents, while exploring airports and cities to plan your trip. View daily and monthly price calendars to find the best deals for your travel dates.
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.
skyscanner.co.in API
Search for flights worldwide and compare prices with autocomplete suggestions for airports and destinations. View price calendars to find the cheapest travel dates and explore real-time flight availability and pricing.
virginaustralia.com API
Search Virgin Australia flights and browse fare calendars to find the best prices, while exploring available destinations and current flight specials all in one place. Get real-time flight options and pricing information to plan your next trip with ease.
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.
skiplagged.com API
Search for flights across airlines including hidden-city ticketing options, and look up airport information by name or code to find the best travel deals. Access Skiplagged's flight inventory and routing data to discover cheaper itineraries and alternative airport combinations.