# Chains & coverage

The 11 chains and 5 OTAs, what each returns, and the chain ids to put in a request.

## Chain ids

`chain` in every request is one of these ids. `GET /v1/chains` returns the same list with live capability flags and credit weights.

| id            | Source                                                      | Program                      | Member | Points                        | Native calendar                         | Credits/shop |
| ------------- | ----------------------------------------------------------- | ---------------------------- | ------ | ----------------------------- | --------------------------------------- | ------------ |
| `marriott`    | [Marriott](https://directrate.dev/chains/marriott)          | Marriott Bonvoy              | ✓      | ✓                             | ✓                                       | 1            |
| `hilton`      | [Hilton](https://directrate.dev/chains/hilton)              | Hilton Honors                | ✓      | ✓                             | ✓                                       | 1            |
| `hyatt`       | [Hyatt](https://directrate.dev/chains/hyatt)                | World of Hyatt               | ✓      | ✓                             | ✓ (availability + points only, no cash) | 1            |
| `ihg`         | [IHG](https://directrate.dev/chains/ihg)                    | IHG One Rewards              | ✓      | ✓                             | ✓                                       | 1            |
| `choice`      | [Choice](https://directrate.dev/chains/choice)              | Choice Privileges            | ✓      | ✓                             | ✓                                       | 1            |
| `radisson`    | [Radisson](https://directrate.dev/chains/radisson)          | Radisson Rewards             | ✓      | ✓                             | ✓                                       | 3            |
| `iprefer`     | [I Prefer](https://directrate.dev/chains/iprefer)           | I Prefer (Preferred Hotels)  | ✓      | ✓                             | ✓                                       | 1            |
| `wyndham`     | [Wyndham](https://directrate.dev/chains/wyndham)            | Wyndham Rewards              | ✓      | – (login-gated at the source) | ✓                                       | 6            |
| `melia`       | [Meliá](https://directrate.dev/chains/melia)                | Meliá Rewards                | ✓      | – (login-gated at the source) | ✓ (availability only)                   | 1            |
| `bestwestern` | [Best Western](https://directrate.dev/chains/bestwestern)   | Best Western Rewards         | ✓      | ✓                             | ✓                                       | 5            |
| `premierinn`  | [Premier Inn](https://directrate.dev/chains/premierinn)     | —                            | n/a    | n/a                           | ✓                                       | 1            |
| `booking`     | [Booking.com](https://directrate.dev/chains/booking) (OTA)  | Genius, reported apart       | ✓      | –                             | –                                       | 1            |
| `expedia`     | [Expedia](https://directrate.dev/chains/expedia) (OTA)      | Member Price, reported apart | ✓      | –                             | –                                       | 1            |
| `hotelscom`   | [Hotels.com](https://directrate.dev/chains/hotelscom) (OTA) | Member Price, reported apart | ✓      | –                             | –                                       | 1            |
| `ctrip`       | [Trip.com](https://directrate.dev/chains/ctrip) (OTA)       | —                            | –      | –                             | –                                       | 1            |
| `agoda`       | [Agoda](https://directrate.dev/chains/agoda) (OTA)          | Member deal, reported apart  | ✓      | –                             | –                                       | 1            |

A dotted mark carries a caveat: hover or tap it. In short, points are login-gated at the source on Meliá and Wyndham (the field comes back empty rather than estimated); Hyatt’s native calendar carries availability and points but no cash, Meliá’s availability only, so `/calendar` shops the open nights on those two. Premier Inn is cash-only. Wyndham names rooms and rate plans by **code only** (`room_code` / `rate_code`, names empty) — that is how its booking system answers an anonymous shop; codes are stable per property.

## Hotel codes

Every rate endpoint takes the chain’s own property code — Marriott `CHIRL`, Hyatt `CHIZP`, IHG `CHIMM`, Hilton `CHITDHX`, Choice `IL263`. They are not guessable, so `GET /v1/hotels?chain=…&q=…` exists to produce them: a city, an address or a landmark in, the chain’s hotels around that point out, nearest first, with name, brand, address and coordinates where the chain’s own search publishes them (Marriott’s returns codes and distances only).

An OTA’s code is its own hotel id, and the same endpoint returns it for a hotel’s name: `GET /v1/hotels?chain=booking&q=The%20Drake%20Chicago` answers with Booking.com’s id for that hotel (`41638`). The name is matched on Google Hotels and the id is read from the hotel’s offer on that OTA, so it works for any hotel listed there, a chain’s or an independent. Only `q` is used on an OTA. A place instead of a name returns the first five hotels listed for it, not every hotel the OTA has there, and the answer’s `note` says so. One credit when an id comes back (the cache-hit rate when the hotel was already looked up, on this OTA or another); nothing when the hotel is not listed on that OTA. The offers Google Hotels shows for a hotel change from one read to the next, so a hotel that came back without an id can come back with one an hour later; the `note` says when that may be the case. These lookups run one at a time, so a busy moment answers `429` with a `Retry-After`. The `id` a `/parity` channel row returns is the same id.

## Tax basis

`price_per_night` is in each chain’s **native** basis and `tax_included` says which: true for Hyatt, IHG, Meliá, Premier Inn and Radisson; false for Hilton, Marriott, Choice, Best Western, I Prefer and Wyndham. `price_per_night_after_tax` is the comparable figure, derived per chain from fields verified against live payloads and null only where the source carries no tax data — never estimated. Compare across chains, and against the OTAs, on the `*_after_tax` fields.

## The OTAs as sources

`booking`, `expedia`, `hotelscom`, `ctrip` and `agoda` take the same `/shop`, `/calendar` and `/compset` calls as a chain, with the OTA’s hotel id as the code and the OTA’s own tax-inclusive price. They carry no points; `GET /v1/hotels` on an OTA looks a hotel up by name (above). `POST /ota/{source}/shop` is the same call with `raw: true` available for the upstream bodies.

## Freshness

Live at request time, or a cache a few minutes old — `source` and `cache_age_sec` are on every response; `max_age` in the request bounds the staleness you accept (0 = live). The [status page](https://directrate.dev/status) shows measured uptime and latency per source.

---

This page for people: https://directrate.dev/docs/chains-and-coverage
