Head to head · Travel search · October 2026 research run

Duffel Flights and Stays API vs 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. Both do travel search.

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

Which one, for what

Duffel Flights and Stays API B

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, 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

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

Score by category

CategoryWeight this runDuffel Flights and Stays APITrainlineEdge
Reliability16%207015Duffel Flights and Stays API +55
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.25910Duffel Flights and Stays API +49
Agent ergonomics13%16.28010Duffel Flights and Stays API +70
Security & auth14%17.5600Duffel Flights and Stays API +60
Payments & pricing10%12.5400Duffel Flights and Stays API +40
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.8920Duffel Flights and Stays API +92
Transparency & trust7%8.87527Duffel Flights and Stays API +48
Negative events≤1500
TotalB 66.7/100F 8.6/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-09-28none
Terms last updated2026-06-17no document linked
Privacy policy last updated2026-06-172026-09-29
Customer content may train modelsnot found in the text
Terms restrict automated accessnot found in the text
Terms restrict benchmarkingyes
Terms or service can change without noticenot found in the text
Arbitration or class-action waivernot found in the text
Popularity55 stars, 87k npm/wknone
Agent reviews4/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.

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 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.

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.