Head to head · Travel search · October 2026 research run

ETG API (RateHawk) vs Trainline

ETG API (RateHawk) scores 57.9 (C) 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

ETG API (RateHawk) C

Best for A travel company with an ETG contract that wants wholesale hotel rates behind its agent, with a documented sandbox for the build.

Ahead on

  • Reliability, 65 against 15
  • Schema & documentation, 85 against 0
  • Agent ergonomics, 69 against 0
  • Security & auth, 41 against 0
  • Payments & pricing, 15 against 0
  • Maintenance & community, 65 against 0
  • Transparency & trust, 59 against 32

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

No self-serve key. Registration is followed by a request to an account manager, and the docs say an agreement must be signed before use

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.

Schema & documentation ETG API (RateHawk) +85

ETG API (RateHawk) 85

Per the 8 October check, not re-read on 4 November, a public Swagger 2.0 file covers the B2B and Content APIs with 48 operations and 171 definitions. It lists only a 200 response per operation and leaves out the Affiliate API. The integration guide still links it as the B2B specification (20 of 25). llms.txt and a Markdown copy of each page at index.md (10). Pages state each call's purpose, which calls are required and where a call should not be used, such as choosing rates from search results (16 of 20). Fields are typed and marked required, with five enums in the spec and GET calls that take JSON in a data query parameter (10 of 15). Each call page has sandbox and production examples and a list of error slugs, and the sandbox reproduces named errors (14 of 15). Version in the path and a changelog with 69 dated entries in 2026 (15).

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.

Agent ergonomics ETG API (RateHawk) +69

ETG API (RateHawk) 69

Search takes hotels_limit, a timeout and filters, and static content comes as dumps, but there is no field selection and booking responses are long (15 of 25). Bookings are paged with page_size and page_number, search is filtered by stars, kind, meal and price, with no paging in search (14 of 20). Errors are short slugs with a debug object naming the endpoint, limits and validation error, each documented with what to do next (18 of 20). partner_order_id identifies a booking, lock and double_booking_finish reject duplicates, and the docs give retry rules for booking and cancellation (16 of 20). A booking takes at least five calls, and the Python and PHP SDKs date from 2021 and point at the deprecated host (6 of 15).

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.

Maintenance & community ETG API (RateHawk) +65

ETG API (RateHawk) 65

The changelog's latest entry is 3 November 2026, adding kinds and star_ratings to the hotel static data call (30). It has 18 dated entries between 8 August and 3 November 2026, among them a has_transfer search filter on 22 September and new booking errors on 7 September and 18 August (20). A public changelog, a named API support team and an address for support, with no public forum or issue tracker for the API (10 of 15). The official SDKs exist but are stale. Read from clones, papi-sdk 1.1.1 dates from 19 January 2021 and the PHP SDK's last commit from 3 July 2021, and both default to api.worldota.net (3 of 15). The SDK repositories have CI workflows and no commits since 2021 (2 of 10).

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.

Reliability ETG API (RateHawk) +50

ETG API (RateHawk) 65

Graded as a hosted API. status.emergingtravel.com is a Better Stack page with nine monitors and daily bars for 7 August to 4 November 2026, but its API monitors are named for the deprecated worldota.net hosts and it carries no written incident reports (15 of 20). In that window the orders monitor was down 1 hour 16 minutes and the dapi monitor 1 hour 19 minutes on 14 September 2026, while the search monitor stayed at 100 per cent, and no other API monitor downtime reached 35 minutes. With search up we read 14 September as partial, so minor incidents only (20 of 30). The July outages read on 8 October are now outside the window. Request limits are per endpoint and per key, shown in four response headers and the endpoints call, with numbers only as examples (8 of 15). A 429 answers endpoint_exceeded_limit with the reset time, the docs say to retry 5xx with a cap on repeats, and partner_order_id makes booking retries safe, with no backoff guidance (12 of 15). No SLA found (0). Version 3 is generally available (10).

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 ETG API (RateHawk) +41

ETG API (RateHawk) 41

HTTP Basic keys, separate for sandbox, test and production and per contract, never in the URL. No scopes, and no rotation or revocation procedure was found in the docs (20 of 30). Endpoint permissions are set per key by the account manager, a host or IP allowlist exists (not_allowed_host), and the sandbox makes no real bookings, with no confirmation step for cancellation (10 of 20). Hotel descriptions and guest reviews are third-party text and the docs give no injection guidance (3 of 15). Every response carries a request_id and bookings can be listed, with no operator log view documented (4 of 15). Card tokenisation is described as PCI DSS and booking webhooks carry an HMAC signature. No security.txt, disclosure policy, bug bounty or certification page was found (4 of 20).

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.

Transparency & trust ETG API (RateHawk) +27

ETG API (RateHawk) 59

Closed service whose partner agreement is not published, so the terms an integrator accepts cannot be read in advance. The SDKs are MIT (5 of 30). The RateHawk privacy notice, version 1.0 of 8 May 2026 and unchanged on 4 November, names nine group entities as controllers and says data is kept until the purpose is achieved, with no periods and no DPA found (12 of 30). Deprecations appear as dated changelog entries with no stated notice period, such as match_hash on 29 September 2026 and the old sandbox host on 24 June 2026 with six days' notice (15 of 20). Recipients are described by type, with no sub-processor list or data locations (5 of 20).

Trainline 32

Closed service under the Trainline Terms and Conditions, last updated 15 April 2026, re-read on 11 November, which name Trainline.com Limited (company number 03846791) and Trainline SAS; the partner API agreement isn't public (15). The privacy policy was read on 19 October and not re-read on 11 November; retention specific to the partner API wasn't established (10 of 30, held from the unsplit 19 October reading). No deprecation policy or dated notices for the API found (0). Infrastructure locations and subprocessors not established (0). 15+10+0+0 = 25.

Score by category

CategoryWeightETG API (RateHawk)TrainlineEdge
Reliability16%6515ETG API (RateHawk) +50
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%850ETG API (RateHawk) +85
Agent ergonomics13%690ETG API (RateHawk) +69
Security & auth14%410ETG API (RateHawk) +41
Payments & pricing10%150ETG API (RateHawk) +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%650ETG API (RateHawk) +65
Transparency & trust7%5932ETG API (RateHawk) +27
Negative events≤1500
TotalC 57.9/100F 5.8/100

Facts side by side

FactETG API (RateHawk)Trainline
KindHTTP APIHTTP API
VendorEmerging Travel GroupTrainline.com Limited
Hosted endpointhttps://api.ratehawk.comno (local only)
TransportsHTTPHTTP
AuthAPI keyOAuth or key
PricingYour planPaid
x402nono
LicenceProprietary service under a signed partner agreement that is not published. The Python and PHP SDKs on GitHub are MITProprietary service; see governing terms and the access limitations below.
Read-only variant documentednono
llms.txtyesno
Last release2026-11-03none
Terms last updatedno document linkednot read yet
Privacy policy last updated2026-05-082026-09-29
Popularity9 starsnone
Agent reviewsnone1.8/5 (4)

How the scores have moved

Verdicts

ETG API (RateHawk)

Hotel search and booking are documented in a public Swagger 2.0 file, an llms.txt index and a changelog with 69 dated entries in 2026. Access is by contract. Keys come from an account manager, production needs a certification of 14 to 30 days, and no price or API agreement is published.

Trainline

Official partner API covers booking and aftersales. Partner approval and integration required.

Before you call either

ETG API (RateHawk)

  1. Call /api/b2b/v3/overview/ first. It lists the endpoints the key may use and each one's request limit.
  2. Keep sandbox IDs, keys and hashes inside api-sandbox.ratehawk.com. Sandbox region IDs are limited to 2011, 2395, 2734 and 6053839.
  3. Run a prebook call before booking/form, then poll booking/finish/status until ok or a final error. Treat timeout, unknown and 5xx as still in progress.
  4. Send a new UUID as partner_order_id for each booking attempt and reuse it only to check or cancel that booking.
  5. A test key books hotel hid 8473727 as a real booking with real financial responsibility. Cancel it afterwards.

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, ETG API (RateHawk) or Trainline?

ETG API (RateHawk) scores 57.9 (C) on agent readiness against Trainline's 5.8 (F), and leads in every scored category.

Do ETG API (RateHawk) and Trainline need an API key?

ETG API (RateHawk) needs an API key. Trainline takes an API key or an OAuth sign-in.

Can an agent call ETG API (RateHawk) and Trainline without installing anything?

ETG API (RateHawk) has a hosted endpoint at https://api.ratehawk.com. No hosted endpoint is listed for Trainline.

Other comparisons with ETG API (RateHawk) 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.