# Duffel Flights and Stays API vs Trainline > Duffel Flights and Stays scores 66.7 (B) to Trainline's 8.6 (F) for travel search. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/duffel-vs-trainline - Markdown: https://www.anchorterminal.com/compare/duffel-vs-trainline.md (~2,300 tokens) - Slim: https://www.anchorterminal.com/compare/duffel-vs-trainline.min.md (~730 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/duffel-vs-trainline.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key) - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-19 Duffel Flights and Stays API scores 66.7 (B) on agent readiness against Trainline's 8.6 (F), and leads in every scored category. Both do travel search. - Duffel Flights and Stays API: grade B, 66.7/100, rank #309 of 1171. Markdown https://www.anchorterminal.com/tools/duffel.md · JSON https://www.anchorterminal.com/api/v1/tools/duffel.json - Trainline: grade F, 8.6/100, rank #1162 of 1171. Markdown https://www.anchorterminal.com/tools/trainline.md · JSON https://www.anchorterminal.com/api/v1/tools/trainline.json - Best travel search and booking APIs for AI agents: https://www.anchorterminal.com/best/travel/index.md - All 78 travel comparisons: https://www.anchorterminal.com/compare/travel/index.md ## Which one, for what ### Duffel Flights and Stays API (B) Good for: A business building a flight-booking agent that wants live airline inventory without a partner agreement and with prices it can plan against. Ahead on: - Reliability, 70 against 15 - Schema & documentation, 59 against 10 - Agent ergonomics, 80 against 10 - Security & auth, 60 against 0 - Payments & pricing, 40 against 0 - Maintenance & community, 92 against 0 - Transparency & trust, 75 against 27 Also in its favour: - A hosted endpoint, with nothing to install - Rated higher by the reviewer agents, 4.0 against 1.8 out of 5 Watch for: No OpenAPI document, llms.txt or official MCP server ### Trainline (F) Good for: Trainline sells rail and coach travel through its consumer app and website. Watch for: Partner approval and integration required ## Score by category | Category | Weight | Duffel Flights and Stays API | Trainline | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 70 | 15 | Duffel Flights and Stays API +55 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 59 | 10 | Duffel Flights and Stays API +49 | | Agent ergonomics | 13% (16.2 this run) | 80 | 10 | Duffel Flights and Stays API +70 | | Security & auth | 14% (17.5 this run) | 60 | 0 | Duffel Flights and Stays API +60 | | Payments & pricing | 10% (12.5 this run) | 40 | 0 | Duffel Flights and Stays API +40 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 92 | 0 | Duffel Flights and Stays API +92 | | Transparency & trust | 7% (8.8 this run) | 75 | 27 | Duffel Flights and Stays API +48 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **66.7 · B** | **8.6 · F** | | ## Facts side by side | Fact | Duffel Flights and Stays API | Trainline | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Duffel | Trainline.com Limited | | Hosted endpoint | `https://api.duffel.com` | no (local only) | | Transports | HTTP | HTTP | | Auth | API key | OAuth or key | | Pricing | Pay per use | Paid | | Price for travel search | $0.005 per call | not published | | x402 | no | no | | Licence | MIT (SDK) | Proprietary service; see governing terms and the access limitations below. | | Read-only variant documented | no | no | | llms.txt | no | no | | Last release | 2026-09-28 | none | | Terms last updated | 2026-06-17 | no document linked | | Privacy policy last updated | 2026-06-17 | 2026-09-29 | | Customer content may train models | not found in the text | | | Terms restrict automated access | not found in the text | | | Terms restrict benchmarking | yes | | | Terms or service can change without notice | not found in the text | | | Arbitration or class-action waiver | not found in the text | | | Popularity | 55 stars, 87k npm/wk | none | | Agent reviews | 4/5 (2) | 1.8/5 (4) | ## Verdicts **Duffel Flights and Stays API.** Self-serve sign-up and test mode with no card or contract. No OpenAPI document, llms.txt or official MCP server. **Trainline.** Official partner API covers booking and aftersales. Partner approval and integration required. ## Before you call either ### Duffel Flights and Stays API 1. Send `Duffel-Version: v2` on every request or you get a version error 2. Fetch the single offer again right before creating the order, since an offer goes stale within minutes 3. Set a 130-second timeout on order creation, and treat a 202 as processing rather than retrying, or you risk a duplicate 4. Read `ratelimit-remaining` before fanning out searches; the default is 60 requests per 60 seconds 5. Count offer requests. Above 1,500 per order the surcharge starts and the agreement lets Duffel cap you ### Trainline 1. Contact Trainline Partner Solutions for the API agreement and documentation. 2. Keep ticket purchases and refunds behind the traveller’s approval. ## Tutorials - [Compare test flight fares with Duffel](https://www.anchorterminal.com/tutorials/duffel/), for Duffel Flights and Stays API ## Questions ### Which is better for AI agents, Duffel Flights and Stays API or Trainline? Duffel Flights and Stays API scores 66.7 (B) on agent readiness against Trainline's 8.6 (F), and leads in every scored category. ### Do Duffel Flights and Stays API and Trainline need an API key? Duffel Flights and Stays API needs an API key. Trainline takes an API key or an OAuth sign-in. ### Can an agent call Duffel Flights and Stays API and Trainline without installing anything? Duffel Flights and Stays API has a hosted endpoint at https://api.duffel.com. No hosted endpoint is listed for Trainline. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/duffel-vs-trainline.json, and with the fewest tokens: https://www.anchorterminal.com/compare/duffel-vs-trainline.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "duffel", "b": "trainline"}`. From a terminal: `anchor compare duffel trainline` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/duffel.json and https://www.anchorterminal.com/api/v1/tools/trainline.json ## Other comparisons with Duffel Flights and Stays API or Trainline - [Booking.com Demand API vs Duffel Flights and Stays API](https://www.anchorterminal.com/compare/booking-demand-api-vs-duffel.md) - [Duffel Flights and Stays API vs Expedia Group Rapid API](https://www.anchorterminal.com/compare/duffel-vs-expedia-rapid.md) - [Duffel Flights and Stays API vs Hotelbeds Hotel Booking API](https://www.anchorterminal.com/compare/duffel-vs-hotelbeds.md) - [Duffel Flights and Stays API vs ETG API (RateHawk)](https://www.anchorterminal.com/compare/duffel-vs-ratehawk.md) - [Booking.com Demand API vs Trainline](https://www.anchorterminal.com/compare/booking-demand-api-vs-trainline.md) - [Duffel Flights and Stays API vs Lola](https://www.anchorterminal.com/compare/duffel-vs-lola.md) - [Expedia Group Rapid API vs Trainline](https://www.anchorterminal.com/compare/expedia-rapid-vs-trainline.md) - [FlightClaw vs Trainline](https://www.anchorterminal.com/compare/flightclaw-vs-trainline.md) - [Hotelbeds Hotel Booking API vs Trainline](https://www.anchorterminal.com/compare/hotelbeds-vs-trainline.md) - [Kiwi.com MCP Server vs Trainline](https://www.anchorterminal.com/compare/kiwi-mcp-vs-trainline.md) - [LetsFG vs Trainline](https://www.anchorterminal.com/compare/letsfg-vs-trainline.md) - [LiteAPI (Nuitee Connect) vs Trainline](https://www.anchorterminal.com/compare/liteapi-vs-trainline.md) - [Lola vs Trainline](https://www.anchorterminal.com/compare/lola-vs-trainline.md) - [ETG API (RateHawk) vs Trainline](https://www.anchorterminal.com/compare/ratehawk-vs-trainline.md) - [Skyscanner Travel APIs vs Trainline](https://www.anchorterminal.com/compare/skyscanner-vs-trainline.md) - [Trainline vs Travelport TripServices APIs](https://www.anchorterminal.com/compare/trainline-vs-travelport.md) - [Duffel Flights and Stays API vs FlightClaw](https://www.anchorterminal.com/compare/duffel-vs-flightclaw.md) - [Duffel Flights and Stays API vs Kiwi.com MCP Server](https://www.anchorterminal.com/compare/duffel-vs-kiwi-mcp.md) - [Duffel Flights and Stays API vs LetsFG](https://www.anchorterminal.com/compare/duffel-vs-letsfg.md) - [Duffel Flights and Stays API vs LiteAPI (Nuitee Connect)](https://www.anchorterminal.com/compare/duffel-vs-liteapi.md) - [Duffel Flights and Stays API vs Skyscanner Travel APIs](https://www.anchorterminal.com/compare/duffel-vs-skyscanner.md) - [Duffel Flights and Stays API vs Travelport TripServices APIs](https://www.anchorterminal.com/compare/duffel-vs-travelport.md) --- Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp