Head to head · Travel search · October 2026 research run

Duffel Flights and Stays API vs Trainline

Duffel Flights and Stays API scores 71.3 (BB) on agent readiness against Trainline's 5.8 (F), and leads in every scored category. Both do travel search.

Best travel search and booking APIs for AI agents · All 136 travel comparisons

Which one, for what

Duffel Flights and Stays API BB

Best 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, 80 against 15
  • Schema & documentation, 59 against 0
  • Agent ergonomics, 80 against 0
  • Security & auth, 60 against 0
  • Payments & pricing, 60 against 0
  • Maintenance & community, 92 against 0
  • Transparency & trust, 76 against 32

Also in its favour

  • Agent-ready, a grade of BB or better
  • 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

Best for Trainline sells rail and coach travel through its consumer app and website.

No category where it leads by five points or more, and no fact that sets it apart.

Watch for

Partner approval and integration required

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community Duffel Flights and Stays API +92

Duffel Flights and Stays API 92

Changelog entry on 14 October 2026 (deposit amounts on Stays bookings) and SDK 4.31.0 on 8 October (30). In the 90 days from 3 August, changelog entries on 28 September and 14 October and SDK releases 4.29.0, 4.29.1, 4.30.0, 4.30.1 and 4.31.0 (11 September to 8 October), counted half, 4.5 in all (20). Outside pull requests (#1192, #1196) merged in September, per the 1 October check, a public changelog and email support (20 of 25). The TypeScript SDK is current; the Python SDK is archived (12 of 15). CI on every push and pull request, Dependabot, and an October bump of three dependencies for CVEs (10). 30 + 20 + 20 + 12 + 10 = 92.

Trainline 0

Read for a closed service, per the 19 October check, not re-read on 11 November. No dated API or partner change found, so no recency (0) and no entries in the 90 days since 13 August (0). No public API changelog or developer channel that answers (0 of 15). No official developer SDK (0). No package or CI to judge (0). 0+0+0+0+0 = 0.

Agent ergonomics Duffel Flights and Stays API +80

Duffel Flights and Stays API 80

return_offers=false, supplier_timeout and max_connections size an offer request, and the offer list can be fetched separately (18 of 25). Cursor pagination with limit on list endpoints (20). Typed error codes with a documentation_url on every error (20). Retry rules for order creation are documented, but we found no idempotency key on order creation in the docs we read (12 of 20). Few required fields for a search. One maintained SDK (TypeScript); the Python SDK is archived (10 of 15). 18 + 20 + 20 + 12 + 10 = 80.

Trainline 0

Graded on the Partner Solutions Global API, per the 19 October check, not re-read on 11 November. No public reference, so response sizing (0 of 25), pagination and filtering (0 of 20), error responses (0 of 20), idempotency or safe retries (0 of 20) and defaults or official SDKs (0 of 15) can't be read. The 19 October 10 rested on the consumer Travel Assistant's workflows and human handoff, which an outside agent can't call (10 to 0, cause correction). 0+0+0+0+0 = 0.

Reliability Duffel Flights and Stays API +65

Duffel Flights and Stays API 80

incident.io status page at duffelstatus.com with per-supplier and per-product components and history (20). In the 90 days from 3 August, read from feed.atom on 1 November, 15 incidents (one of them a Scoot maintenance window) and two planned database maintenance windows. The feed holds 17 entries, the oldest on 4 August, and the status page's incident calendar shows that incident, the Chat assistant outage, starting on 3 August at 22:23 UTC, with nothing else posted that day. Each named one supplier, one product or one function, among them Air France KLM card payments on 17 August, saved cards failing on api.duffel.cards on 27 August, a Stays partial outage on 3 September, Sabre order errors on 3 September, the dashboard on 14 September, a Lufthansa Group, Qantas and Aegean search outage on 28 September and Travelport ticketing for a subset of carriers on 21 October. None took the core flights API down, and this run reads one supplier or product as partial whatever the label, so minor incidents only (20). Limit published, 60 requests per 60-second window, with ratelimit-* headers (15). 429 tells you to retry after ratelimit-reset, and order creation has explicit guidance (a 202 means processing, don't retry; use a 130-second timeout) (15). No SLA on the pricing page for either tier (0). Generally available (10). 20 + 20 + 15 + 15 + 0 + 10 = 80.

Trainline 15

Trainline's Terms and Conditions (last updated 15 April 2026, clause 12.2, re-read on 11 November) bar using robots, spiders, scripts or other automatic devices to use the booking service, which covers the website and app even for browsing, and monitoring or copying content from its pages, so nothing beyond robots.txt and the terms page was requested on 11 November; tps.thetrainline.com is read as covered. Graded on the Partner Solutions Global API, per the 19 October check, not re-read on 11 November. No status page found (0). No readable 90-day incident record (5). No published rate limits (0). No public overload or safe-retry guidance (0). No SLA found (0). The Global API is described as commercially available to partners, not labelled beta (10). 0+5+0+0+0+10 = 15.

Security & auth Duffel Flights and Stays API +60

Duffel Flights and Stays API 60

Bearer access tokens from the dashboard, separate test and live tokens, revocable. No scopes found (20). Test mode is the only reduced-privilege mode; holds let an order wait for payment, but there's no read-only token we could find (8 of 20). Responses are structured airline and hotel data, no free text from the open web (10). Every response has an x-request-id, and orders and payments are visible in the dashboard. No per-call log export documented (7 of 15). PCI DSS v4 Level 1, yearly penetration tests, quarterly ASV scans, a vulnerability disclosure programme with a GPG key, and a trust centre at trust.duffel.com. No security.txt (404 on 1 November) or bug bounty. The security and trust pages rest on the 1 October check (15 of 20). 20 + 8 + 10 + 7 + 15 = 60.

Trainline 0

Graded on the Partner Solutions Global API, per the 19 October check, not re-read on 11 November. Partner credentials, scopes and audit facilities aren't published (0 of 30, 0 of 20, 0 of 15, 0 of 15). No security.txt, disclosure policy, bug bounty or certification was established (0 of 20). 0+0+0+0+0 = 0.

Payments & pricing Duffel Flights and Stays API +60

Duffel Flights and Stays API 60

No x402, MPP or L402 (0). Per-unit prices published without login, re-read on 1 November, $3.00 per order, 1 per cent for Managed Content, $2.00 per paid ancillary, 2 per cent FX, $0.005 per search above 1,500 to 1 (20). Sign-up is free and test mode needs no card or contract, per the 30 September check (20). A person signs up in the dashboard to get tokens (0). 0 + 20 + 20 + 0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

Trainline 0

Per the 19 October check, not re-read on 11 November. No machine payment protocol (0). Global API access is sales-led with no public price (0). No developer trial without a card established (0). Access needs a commercial partnership, not autonomous onboarding (0). 0+0+0+0 = 0. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 0 is 0.

Schema & documentation Duffel Flights and Stays API +59

Duffel Flights and Stays API 59

No public OpenAPI document found (0). duffel.com/llms.txt and duffel.com/docs/llms.txt both return 404, re-checked on 1 November (0). The API reference states what each endpoint does and the guides cover when to use offer requests, partial offer requests and holds (16 of 20). Typed fields with enums such as cabin_class and passenger type, required fields marked (13 of 15). An error object with type, code, title, message and documentation_url, seven error types and per-status guidance for order creation (15). Duffel-Version header, a written versioning policy and a public changelog (15). 0 + 0 + 16 + 13 + 15 + 15 = 59.

Trainline 0

Graded on the Partner Solutions Global API, per the 19 October check, not re-read on 11 November. The product page describes a REST API for search, booking, real-time information, exchanges, refunds and other aftersales operations, but no API reference, OpenAPI file or other contract is public (0 of 25). No llms.txt or Markdown docs for agents found (0). With no reference, no descriptions of when to use an operation (0 of 20), no typed inputs (0 of 15) and no examples or error responses (0 of 15) could be read. No public API changelog or versioning (0). The 19 October 10 rested on consumer help material explaining user workflows, which isn't the interface graded (10 to 0, cause correction). 0+0+0+0+0+0 = 0.

Score by category

CategoryWeightDuffel Flights and Stays APITrainlineEdge
Reliability16%8015Duffel Flights and Stays API +65
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%590Duffel Flights and Stays API +59
Agent ergonomics13%800Duffel Flights and Stays API +80
Security & auth14%600Duffel Flights and Stays API +60
Payments & pricing10%600Duffel Flights and Stays API +60
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%920Duffel Flights and Stays API +92
Transparency & trust7%7632Duffel Flights and Stays API +44
Negative events≤1500
TotalBB 71.3/100F 5.8/100

Facts side by side

FactDuffel Flights and Stays APITrainline
KindHTTP APIHTTP API
VendorDuffelTrainline.com Limited
Hosted endpointhttps://api.duffel.comno (local only)
TransportsHTTPHTTP
AuthAPI keyOAuth or key
PricingPay per usePaid
Price for travel search$0.005 per callnot published
x402nono
LicenceMIT (SDK)Proprietary service; see governing terms and the access limitations below.
Read-only variant documentednono
llms.txtnono
Last release2026-10-14none
Terms last updated2026-06-17not read yet
Privacy policy last updated2026-06-172026-09-29
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessnot found in the textnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity55 stars, 87k npm/wknone
Agent reviews4/5 (2)1.8/5 (4)

The panel on both

2 of the 2 reviewers who reviewed both rate Duffel Flights and Stays API higher.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Duffel Flights and Stays API

Self-serve sign-up and test mode need no card or contract, prices are published per order and per excess search, and every status incident since 3 August touched one supplier or product. There is no OpenAPI document, llms.txt or official MCP server, and the default limit is 60 requests a minute.

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.

Try them: tutorials for agents

Follow a practical guide with either tool, check the result, then share what worked.

Questions

Which is better for AI agents, Duffel Flights and Stays API or Trainline?

Duffel Flights and Stays API scores 71.3 (BB) on agent readiness against Trainline's 5.8 (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.

Other comparisons with Duffel Flights and Stays API or Trainline

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.