Planning a trip involves a lot of small questions. How much is the flight? Which hotel is cheap and well reviewed? What is the weather like? How many rupees is 100 euros? Is next Monday a public holiday there?
Every one of those answers can come from a travel API. If you want to build a travel app, a price tracker, a trip planner or a booking site, you will use several of them together.
This guide walks you through the best travel APIs in 2026, in plain English. For each one you will see who can use it, what it costs, and what it is good at, so you can pick the right set without wasting weeks. We also explain how a booking actually flows through these APIs, and we tested four free reference APIs ourselves on 5 November 2026.
What is a travel API (and why use one)?#
An API is a way for one program to ask another program for information. If that is new to you, read our beginner guide, What Is a REST API?, first. It takes about ten minutes.
A travel API is simply an API that returns travel data. Instead of collecting every airline fare and hotel room yourself, which is impossible for a small team, you ask a provider who already has it.
You would use travel APIs to:
- Show live flight prices and cheap dates.
- Show hotels with prices, photos and reviews.
- Build a price tracker that alerts users when a fare drops.
- Make a trip planner that adds weather, currency and local holidays.
- Power a booking site, once you have the right partner access.
The big picture: the five layers of a travel app#
Most travel apps are made from five layers. Think of it like building a house, one layer on top of another.
| Layer | What it answers | Example question |
|---|---|---|
| 1. Flights | Which flights and at what price? | "Delhi to Dubai next month" |
| 2. Hotels | Which hotels and at what price? | "Hotels in Lisbon for 5 nights" |
| 3. Places and maps | Where is it, what is nearby? | "Coordinates of Goa", "distance A to B" |
| 4. Context | Weather, money, holidays, country facts | "Will it rain? What is the currency?" |
| 5. Reference data | Airports, airlines, codes | "What is airport code DXB?" |
Layers 1 and 2 are the hardest to get and usually cost the most. Layers 3 to 5 are easy and often free. We will go through them in order.
The four calls behind every travel booking#
Whichever supplier you pick, a booking follows the same short sequence. The names change from provider to provider, but the steps do not.
| Step | What your app does | What comes back |
|---|---|---|
| 1. Search | Sends the route or city, the dates and the number of travellers | A list of options with prices |
| 2. Price check | Asks the supplier to confirm the option the user picked is still available at that price | A confirmed price, or a changed one |
| 3. Book | Sends the traveller details and payment for the confirmed option | A booking reference |
| 4. Ticket or confirm | Issues the ticket or confirmation, and later handles changes and cancellations | Ticket numbers or a confirmation |
Duffel shows this clearly in its own getting-started guide. You create an offer request to search, pick one of the returned offers, then create an order with the passenger details. Booking.com's Demand API and Expedia's Rapid API follow the same idea for hotels, and both also cover cars and other travel services.
Two things catch beginners. Prices can change between step 1 and step 3, so always re-check before charging a customer. And search calls are far more numerous than bookings, which matters for cost, as you will see below.
Types of travel API provider#
"Travel API" is a wide term. The provider type decides who can get access and how much it costs.
| Type | Examples | What it gives you | Typical access |
|---|---|---|---|
| GDS (global distribution system) | Amadeus, Sabre, Travelport | Flights, hotels and cars from many suppliers in one network | Business agreement, often with accreditation |
| Airline direct (NDC) | Airlines, via aggregators | Richer airline offers and extras such as bags and seats | Through an aggregator, or a direct airline deal |
| Flight aggregator | Duffel, Travelfusion | Many airlines behind one API | Self-serve or contract, depending on provider |
| Hotel wholesaler (bedbank) | Hotelbeds | Rooms at agency rates | Test keys, then a contract |
| Hotel and travel demand APIs | Booking.com, Expedia, Agoda | Their own inventory, for partners to resell | Approved partners only |
| Hosted data APIs | Flight and hotel data on RapidAPI | Search results as clean JSON | Anyone, with a free plan |
| Reference APIs | Weather, currency, airports, holidays | Everything around the trip | Anyone, often free |
NDC stands for New Distribution Capability. IATA, the airline industry body, describes it as a data exchange format based on offers and orders that lets airlines distribute relevant offers whichever channel the customer uses.
If you are a small team, you will almost always start in the last two rows and move up as you get customers.
Travel APIs at a glance#
| API | Layer | Who can use it | Cost to start | Best for |
|---|---|---|---|---|
| Hosted flight APIs (Skyscanner and Google Flights data on RapidAPI) | Flights | Anyone | Free plans | Prototypes, price trackers |
| Duffel | Flights | Anyone, self-serve | Pay as you go, no upfront cost | Booking flights |
| Hosted hotel API (Booking.com data on RapidAPI) | Hotels | Anyone | Free plan | Hotel search, price tracking |
| Booking.com, Expedia, Agoda | Hotels | Approved partners | Partner terms | Established travel businesses |
| Hotelbeds | Hotels | Test keys, then contract | 50 test requests a day | B2B agencies |
| Google Maps Platform | Places and maps | Anyone with billing set up | Pay per use, free monthly allowance | Maps and place search |
| Weather API (APIHiver) | Context | Anyone | Free plan | Forecasts for any city |
| Currency Exchange Rates API (APIHiver) | Context | Anyone | Free plan | Price conversion |
| Public Holidays API (APIHiver) | Context | Anyone | Free plan | Trip timing |
| Airport and Airline Lookup (APIHiver) | Reference | Anyone | Free plan | Airport and airline details |
| Geocoding and Geo Tools (APIHiver) | Places | Anyone | Free plan | City to coordinates, distance, time zone |
| Countries Info (APIHiver) | Context | Anyone | Free plan | Capital, currency, language, calling code |
Prices and limits change, so always check the provider's own pricing page before you build.
Layer 1: Flight APIs#
Skyscanner and Google Flights data (hosted APIs)#
Neither Skyscanner nor Google Flights offers an open API to new developers. The practical route is a hosted API on RapidAPI that returns the same kind of flight search results as clean JSON: fares, airlines, times and price calendars.
- Who can use it: anyone, self-serve.
- Cost: free plans with monthly limits, then paid tiers.
- Good for: prototypes, price trackers, comparison tools.
- Watch out for: these are third-party services, not official, so there is no guaranteed uptime, and you normally send users to the airline or a booking site to buy.
We have full step-by-step guides with code:
- Skyscanner API: Free Key, Endpoints & Code Examples
- Google Flights API: Get Live Data
- PNR Status API: Check a Flight PNR in Code
Duffel#
Duffel is a modern flight API built for developers. Sign-up is self-serve, and it publishes its pricing openly: pay as you go, with a fee per confirmed order plus a percentage of the order value, and no upfront cost or contract. That makes it one of the few ways to actually sell flights without a long sales process.
- Who can use it: anyone, self-serve.
- Cost: pay as you go. Check Duffel's pricing page for current rates.
- Good for: apps that need to book and ticket flights.
Amadeus Self-Service (closed)#
Amadeus used to be the standard answer, with a free monthly quota. It closed its Self-Service developer portal on 17 July 2026, and only the Enterprise product through a sales contract remains. Plenty of older articles still recommend it, so be careful. We list what to use instead in our Amadeus API alternatives guide.
If you only need live aircraft positions, not fares or bookings, some free APIs need no key at all. We tested three side by side in Free Flight Data API: No-Key Options Tested, including which ones allow commercial use.
Layer 2: Hotel APIs#
Hotels are harder than flights, because the biggest suppliers keep their APIs for approved partners. You have two realistic paths.
Path A: start fast with a hosted hotel API#
A hosted Booking.com data API on RapidAPI gives you hotel search, live prices, photos and guest reviews, with a free plan. It is the quickest way to prove an idea.
Here is the full walkthrough: Booking.com API: How to Get a Free API Key.
Path B: apply for official partner access#
When your app has real traffic, apply to the official programmes:
- Booking.com Demand API for Affiliate Partners.
- Expedia Group Rapid API, which needs certification and has no free tier.
- Agoda Demand API, with sandbox access after a contract.
- Hotelbeds APItude, a B2B supplier with test keys limited to 50 requests a day.
We compare all of them side by side, including who qualifies, in Hotel API & Hotel Booking API: 6 Options Compared.
Layer 3: Maps and places#
Your users will want to know where a hotel is, how far it is from the airport and what is nearby.
Google Maps Platform#
Google's APIs cover geocoding (address to coordinates), Places search and directions. It is pay per use with a free monthly usage allowance, and you need to set up billing. It is the most complete option, but keep an eye on costs as you grow, because Google's pricing has changed in the past.
Geocoding and Geo Tools API (APIHiver)#
For simple needs, our Geocoding and Geo Tools API turns a city name into coordinates, does the reverse, measures the distance between two places and finds the time zone. These four tasks cover a lot of travel features.
| Endpoint | What it does |
|---|---|
GET /v1/geocode | City name to coordinates |
GET /v1/reverse | Coordinates to a place name |
GET /v1/distance | Distance between two points |
GET /v1/timezone | Time zone of any place |
Layer 4: Context that makes a trip app feel smart#
This is the layer most beginners skip, and it is where a basic app becomes a useful one.
Weather#
Nobody books a beach holiday for the rainy season on purpose. The Weather API returns current weather, 9-day and hourly forecasts, and sunrise, sunset and moon phase for any city or coordinates worldwide. Endpoint pages: current weather, daily forecast, hourly forecast and sunrise, sunset and moon phase.
Currency#
Prices make sense only in your user's own money. The Currency Exchange Rates API gives daily rates for 30 currencies from the European Central Bank, plus conversion, history and percentage change.
Here is a hotel price converted to rupees in one call:
curl "https://currency-exchange-rates.p.apihiver.com/v1/convert?amount=420&from=USD&to=INR" \
-H "X-API-Key: YOUR_API_KEY"Public holidays#
Hotels cost more and flights sell out around holidays. The Public Holidays API covers 150+ countries, including Indian states, and can tell you whether a date is a holiday, which holiday is next and how many working days fall in a range.
Country facts#
The Countries Info API returns capital, population, currency, calling code, languages and neighbouring countries. Perfect for a "before you go" panel.
Layer 5: Reference data#
Airport and Airline Lookup#
Flight APIs love to return codes like DXB, DEL or BOM. Your users want names and locations. The Airport and Airline Lookup API turns an IATA or ICAO code into the airport or airline: its name, country, location and more, and lets you search by name.
| Endpoint | What it does |
|---|---|
GET /v1/airports/{code} | One airport by code |
GET /v1/airports | Search airports |
GET /v1/airlines/{code} | One airline by code |
GET /v1/airlines | Search airlines |
Putting it together: a trip planner in 6 calls#
Here is how the layers work together in a simple trip planner. A user types "Delhi to Dubai, 10 to 15 December".
- Airport lookup: turn "Delhi" and "Dubai" into airport codes and details.
- Flight API: get fares for those dates.
- Hotel API: get hotels in Dubai for the same dates.
- Weather API: show the forecast for the dates.
- Currency API: convert flight and hotel prices into the user's currency.
- Holidays API: warn if there is a public holiday in Dubai during the trip.
Six small calls, one useful screen. Each layer is easy, and together they feel like a real product.
What we tested: four free reference APIs#
Tutorials love to recommend free APIs for layers 4 and 5, so we checked four of them on 5 November 2026. We called each one 10 times from India with curl, half a second apart, and recorded the status and the response time. We used no API key, and the calls are plain GET requests anyone can repeat.
| API | What we asked for | Status | Median time | Result |
|---|---|---|---|---|
| Open-Meteo | 7-day forecast for Dubai | 200 on all 10 | 523 ms | Works |
| Frankfurter | 1 USD in INR | 200 on all 10 | 48 ms | Works (it returned 94.64) |
| Nager.Date | Public holidays for the US, 2026 | 200 on all 10 | 339 ms | Works |
| Nager.Date | Public holidays for the UAE, 2026 | 204 (empty) on all 10 | 327 ms | No data |
| REST Countries v3.1 | Facts for the UAE | 200, but see below | 673 ms | Deprecated |
What we can and cannot conclude:
- Speed is fine for all four. Every median was under 700 ms, and Frankfurter was the quickest at 48 ms. For a trip page you would cache most of this anyway.
- Coverage is the real risk. A holiday API with no data for your users' destination fails silently.
- Check the body, not just the status. Always test that the response contains what you expect.
- This was one location and one afternoon. Times will differ from your server, and we did not test limits, uptime or licences.
If you need holidays for countries a free API leaves out, our Public Holidays API covers 150+ countries including Indian states. We did not run it in this test, so we make no speed claim for it.
What travel APIs cost#
Prices differ by layer, so here is what each provider says on its own pricing page. Rates change, so confirm before you build.
| Provider | What it charges (from its own page) |
|---|---|
| Duffel (flights) | $3.00 per confirmed order, 1% of order value for managed content, $2.00 per paid ancillary, and $0.005 per search beyond a 1,500 searches per booking allowance. A 2% fee applies if currency conversion is needed. |
| Google Maps Platform | Pay as you go, with 10,000 free calls a month per SKU in the Essentials category. |
| Hotelbeds | 50 test requests a day, then a contract. |
| Booking.com, Expedia, Agoda | Set by partner agreement. |
| Hosted data APIs on RapidAPI | Free plans with monthly limits, then paid tiers. |
Duffel's search allowance is the number to watch. Its own example: with 10 orders in a month you get 15,000 searches free, and if you made 25,000 searches you would pay (25,000 minus 15,000) times $0.005, which is $50. A price tracker that searches all day and rarely books is the kind of app that hits this limit, so cache results.
How an integration goes live#
Connecting to a bigger supplier is a process, not a single sign-up. This is the usual order, based on how the providers above describe their own onboarding.
- Get credentials. Self-serve providers give you a key in minutes. Others need an application or a contract first.
- Connect to the sandbox. Use test keys and fake data until the basic calls work.
- Map the content. Suppliers describe the same hotel or airport differently, so you match their codes and names to yours.
- Add your markup and rules. Decide your margin, currencies and who is allowed to book what.
- Run test bookings. Book and cancel in the sandbox, including failures such as a price change.
- Move to production keys. Some suppliers review your integration before switching them on.
Which travel APIs a business connects first#
| If you are a... | Start with | Add later |
|---|---|---|
| Price tracker or trip planner | Hosted flight and hotel data, plus reference APIs | A booking provider |
| Online travel agency | An aggregator like Duffel, then a hotel wholesaler | A GDS |
| Tour operator | Hotel wholesaler and maps | Activities and transfers |
| Corporate travel tool | A GDS or aggregator for policy-checked fares | Expense and calendar tools |
How to choose: a simple checklist#
Answer these in order:
- Do you need to sell tickets or rooms, or only show them? Showing is easy. Selling needs partner access or a provider like Duffel.
- Is this a prototype or a business? Prototype: use free plans. Business: plan for partner agreements.
- How many requests will you make? Prices tracked many times a day add up. Cache results.
- Do you need official data? If yes, apply to the official programmes. If not, hosted APIs are fine to start.
- Which currency and region do your users live in? Pick APIs that support them.
Common mistakes when building with travel APIs#
- Trusting an old tutorial. The Amadeus Self-Service portal is closed, and older posts still mention it.
- Not caching. Airport details, country facts and city coordinates barely change. Save them once.
- Showing stale prices. Flight and hotel prices change by the minute. Show the time you fetched them and send people to the provider to confirm.
- Leaking your API key. Call the API from your server, never from public browser code.
- Ignoring the terms. Read each provider's terms, especially for hosted data APIs and commercial use.
- Building everything at once. Start with search and one or two context APIs. Add more when users ask.
What can you build?#
- Flight price tracker: check fares daily and email users when they drop.
- Hotel finder: search by city and dates, sorted by review score.
- Trip cost estimator: flights plus hotels plus currency conversion.
- Travel blog tools: live prices and weather on destination pages.
- Corporate travel dashboard: policy-checked options for employees.
- "Best time to visit" guide: weather plus public holidays for each month.
What we did not test#
- We did not make any flight or hotel booking calls. The cost and process notes come from each provider's own public pages, which we read on 5 November 2026.
- We timed four free APIs from one location. We did not test uptime, rate limits or licences.
- We did not call APIHiver's own weather, currency, airport or holiday APIs in this round of timing.
- Hotelbeds and Travelport's developer sites would not load for us, so the Hotelbeds test-key limit comes from earlier research and not from a fresh check.
Where to start today#
If you have an afternoon, do this:
- Create a free APIHiver account and subscribe to the free plans of the Weather, Currency and Airport APIs.
- Make your first call to each. They all work the same way, with a URL and an
X-API-Keyheader. - Add a flight or hotel API from the guides above.
- Combine them on one page, and you have a working travel prototype.