# directrate > A REST API and an MCP server for live hotel prices: the public rate, the member rate and the night in points, as each of 11 hotel chains quotes them, with 5 booking sites beside them. JSON in one schema for every source. Paid per call in credits; 250 credits a month are free. The facts to start from: - The API is at https://api.directrate.dev/v1. Every call sends the header `x-api-key: `. A key is made at https://directrate.dev/dashboard/keys after signing in at https://directrate.dev/login (no card). - A rate call names a source (`chain`, one of the ids under Sources) and that source's own `hotel_code`. `GET /v1/hotels?chain=&q=` returns the codes around a place. - Each response states what it cost in the `X-Credits-Charged` header. A failed call and an unknown hotel code cost nothing, and a repeat inside the cache window costs a quarter. - directrate reads prices and availability. It makes no bookings and touches no loyalty account. It is independent, not affiliated with any hotel chain or booking site. - For a program: the OpenAPI document is https://api.directrate.dev/openapi.json and the prices are https://directrate.dev/pricing.json. Every docs page below is Markdown, and https://directrate.dev/llms-full.txt is all of them in one file. ## Docs - [Quickstart](https://directrate.dev/docs/quickstart.md): A key, one curl, and X-Credits-Charged on the response — about five minutes. - [Authentication](https://directrate.dev/docs/authentication.md): One header, x-api-key. Keys belong to an account; the account carries the plan and the quota. - [Credits & pricing](https://directrate.dev/docs/credits-and-pricing.md): What a credit is, what each endpoint charges, the six rules, and worked examples. - [Chains & coverage](https://directrate.dev/docs/chains-and-coverage.md): The 11 chains and 5 OTAs, what each returns, and the chain ids to put in a request. - [MCP server](https://directrate.dev/docs/mcp.md): The modes as tools for Claude.ai, Claude Code, Cursor, VS Code and any MCP client — one URL, a key or a sign-in, billed like REST. - [Example: a cash-or-points agent](https://directrate.dev/docs/cash-or-points-agent.md): An agent that answers "cash or points?" for a hotel stay. In Claude with no code, in one file on the Claude API, or with any model through MCP. - [Rates — POST /shop](https://directrate.dev/docs/modes/rates.md): One hotel × one stay → every room × rate plan, public and member, with the after-tax figure on each row. - [Award — POST /award](https://directrate.dev/docs/modes/award.md): Same request as /shop; the answer is points per night, points+cash, cents-per-point and the free-night certificates that would cover the stay. - [Calendar — POST /calendar](https://directrate.dev/docs/modes/calendar.md): One hotel × up to 60 forward check-in dates → the lowest cash, member and points per night. - [Comp set — POST /compset](https://directrate.dev/docs/modes/compset.md): Up to 25 hotels of one chain × one stay → the lowest rate per hotel, in one call. - [Parity — POST /parity](https://directrate.dev/docs/modes/parity.md): The direct rate of one hotel beside Booking.com, Expedia, Hotels.com, Trip.com and Agoda for the same stay — the gap per channel and the deepest undercut. - [Stay — POST /stay](https://directrate.dev/docs/modes/stay.md): A 2–14 night stay shopped as one, each night priced alone, and whether a split booking is cheaper — or even allowed. - [Watches & webhooks](https://directrate.dev/docs/webhooks.md): Watch one hotel's nights for a change and get a signed POST when it happens, with retries, a replay log, and a bill per refresh. - [Batch jobs & export](https://directrate.dev/docs/batch-jobs.md): Hotels × nights × lengths of stay as cells, answered from the store now and filled by a job for the rest, then paged or exported as CSV or JSON lines. - [Feeds](https://directrate.dev/docs/feeds.md): A matrix on a schedule, served as CSV, JSON lines or JSON at a stable URL your BI tool pulls — Google Sheets, Looker Studio, Power BI, Postgres, BigQuery, Snowflake — with a monthly budget it cannot cross. - [Errors](https://directrate.dev/docs/errors.md): One envelope, seven codes, a request_id on every one — and none of them are billed. ## MCP server - [Install guide](https://directrate.dev/mcp/install.md): the server is at https://api.directrate.dev/mcp (Streamable HTTP). How to add it to Claude, ChatGPT, Claude Code, Cursor and VS Code, and how to check it works. ## Sources - [Marriott](https://directrate.dev/chains/marriott): chain id `marriott`; public rates, member rates and Marriott Bonvoy points; 1 credit a shop - [Hilton](https://directrate.dev/chains/hilton): chain id `hilton`; public rates, member rates and Hilton Honors points; 1 credit a shop - [Hyatt](https://directrate.dev/chains/hyatt): chain id `hyatt`; public rates, member rates and World of Hyatt points; 1 credit a shop - [IHG](https://directrate.dev/chains/ihg): chain id `ihg`; public rates, member rates and IHG One Rewards points; 1 credit a shop - [Choice](https://directrate.dev/chains/choice): chain id `choice`; public rates, member rates and Choice Privileges points; 1 credit a shop - [Radisson](https://directrate.dev/chains/radisson): chain id `radisson`; public rates, member rates and Radisson Rewards points; 3 credits a shop - [I Prefer](https://directrate.dev/chains/iprefer): chain id `iprefer`; public rates, member rates and I Prefer (Preferred Hotels) points; 1 credit a shop - [Wyndham](https://directrate.dev/chains/wyndham): chain id `wyndham`; public rates and member rates; points are login-gated at the source; 6 credits a shop - [Meliá](https://directrate.dev/chains/melia): chain id `melia`; public rates and member rates; points are login-gated at the source; 1 credit a shop - [Best Western](https://directrate.dev/chains/bestwestern): chain id `bestwestern`; public rates, member rates and Best Western Rewards points; 5 credits a shop - [Premier Inn](https://directrate.dev/chains/premierinn): chain id `premierinn`; cash rates only, the chain has no member rate and no points; 1 credit a shop - [Booking.com](https://directrate.dev/chains/booking): source id `booking`; a booking site, priced by its own hotel id, with no points; 1 credit a shop - [Expedia](https://directrate.dev/chains/expedia): source id `expedia`; a booking site, priced by its own hotel id, with no points; 1 credit a shop - [Hotels.com](https://directrate.dev/chains/hotelscom): source id `hotelscom`; a booking site, priced by its own hotel id, with no points; 1 credit a shop - [Trip.com](https://directrate.dev/chains/ctrip): source id `ctrip`; a booking site, priced by its own hotel id, with no points; 1 credit a shop - [Agoda](https://directrate.dev/chains/agoda): source id `agoda`; a booking site, priced by its own hotel id, with no points; 1 credit a shop ## Optional - [API reference](https://directrate.dev/docs/reference): the OpenAPI document as a page for people - [Pricing](https://directrate.dev/pricing): the plans and what each call costs - [Hotel code finder](https://directrate.dev/tools/hotel-codes): a chain's hotel codes around a place, in a browser, with no key - [Status](https://directrate.dev/status): measured uptime and latency per source - [Changelog](https://directrate.dev/changelog) - [Terms](https://directrate.dev/terms) and [Privacy](https://directrate.dev/privacy)