Agoda API for room rates and rate plans
Look a hotel up by name, then read every room type and rate plan Agoda shows a guest for one stay, with the stay total, discounts, meal plan and cancellation terms, in any of 23 currencies.
{
"search_parameters": {
"engine": "agoda_property",
"property_id": "8795952",
"check_in_date": "2027-02-11",
"check_out_date": "2027-02-12",
"adults": 2,
"rooms": 1,
"currency": "USD",
"tax_breakdown": true
},
"property": {
"property_id": "8795952",
"name": "Moxy Boston Downtown",
"price_per_night": 527,
…On Agoda one room type often carries several rate plans at different prices: with or without breakfast, refundable or not, pay now or pay later, some with a discount against a struck-out price. That ladder is what a rate-shopping team needs to compare like with like. Agoda’s own APIs are for affiliates and connected properties, so this API returns the rooms and prices agoda.com shows a visitor, one row per rate plan.
Agoda has its own quirks. A minimum-stay restriction appears on the site as sold out, so by default the API asks again at longer stays and reports the minimum it found. Currency is a true conversion of one rate, so prices in different currencies can be compared, but the price itself depends on the visitor’s country; set country_market and the response says whether it was collected from that country. Each call prices one stay of up to 30 nights, with check-in up to a year ahead.
What you get
- recommended_match.property_id
- Agoda’s numeric hotel id from a name and city search, with a confidence level
- property.rooms[].offers[]
- one row per rate plan, with its room_type_id and rate_plan_id
- price, total
- the nightly price as displayed and the exact stay total including taxes and fees
- price_before_taxes, taxes_and_fees
- with tax_breakdown on, the nightly price before tax and the taxes and fees for the stay
- strikeout_price, discount
- the crossed-out price and the discount Agoda shows
- meal_plan, breakfast_included
- room only, breakfast, half board, full board or all inclusive
- free_cancellation, cancellation_policy
- whether the plan can be cancelled for free, and Agoda’s policy text
- pay_later, pay_at_hotel
- when and where the guest pays
One call, structured JSON
POST /v1/ota/agoda, 12 credits per successful call.
curl -X POST "https://api.scrapercompany.com/v1/ota/agoda" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"property_id": "8795952",
"check_in": "2027-01-24",
"nights": 1,
"currency": "USD"
}'{
"search_parameters": {
"engine": "agoda_property",
"property_id": "8795952",
"check_in_date": "2027-02-11",
"check_out_date": "2027-02-12",
"adults": 2,
"rooms": 1,
"currency": "USD",
"tax_breakdown": true
},
"property": {
"property_id": "8795952",
"name": "Moxy Boston Downtown",
"price_per_night": 527,
"total": 527.4,
"price_before_taxes": 412,
"taxes_and_fees": 115.4,
"strikeout_price": 742,
"meal_plan": "room_only",
"free_cancellation": false,
"cancellation_policy": "Non-refundable (Low price!)",
"currency": "USD",
"tax_inclusive": true,
"sold_out": false,
"availability": "available",
"is_soldout": false,
"rooms": [
{
"name": "Center Stage, Guest room, 1 Queen, City view",
"offers": [
{
"price": 527,
"currency": "USD",
"currency_code": "USD",
"price_text": "USD 527",
"tax_inclusive": true,
"discount": "-29%",
"free_cancellation": false,
"total": 527.4,
"strikeout_price": 742,
"price_before_taxes": 412,
"taxes_and_fees": 115.4,
"breakfast_included": false,
"meal_plan": "room_only",
"cancellation_policy": "Non-refundable (Low price!)",
"cancellation_policy_code": "365D100P_100P",
"pay_later": false,
"pay_at_hotel": false,
"room_type_id": "3082196",
"rate_plan_id": "2844033",
"benefits": [
"Free WiFi"
],
"rate_code": "2844033",
"rate_category": "advance_purchase",
"rate_category_source": "brand_flag",
"refundable": false,
"rate_code_scope": "property",
"provenance": {
"schema_version": 1,
"observation_id": "rateobs_0123456789abcdef0123456789abcdef",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"source": "agoda",
"source_kind": "ota_rate_plan",
"source_property_id": "ChUIoben2Mv6-CYaCi9tLzA3czVwbjQQAQ",
"requested_market": "US",
"requested_currency": "USD",
"returned_currency": "USD",
"price_basis": "room_base_before_taxes_and_fees",
"derivation": "normalized_upstream"
}
}
]
}
]
},
"meta": {
"source": "agoda",
"nights": 1,
"elapsed_s": 0.361,
"room_types": 5,
"offers": 9,
"tax_breakdown": true,
"comparable_across_markets": true
},
"point_of_sale": {}
}Every field, documented before you buy
What one POST /v1/ota/agoda call returns: 24 fields with their type and a value from the example above, then every input the call takes.
In the response
| Field | Type | Example | What it is |
|---|---|---|---|
| property | object | ||
| property.property_id | string | "8795952" | |
| property.name | string | "Moxy Boston Downtown" | Name as the site shows it. |
| property.price_per_night | number | null | 527 | Cheapest priced offer. |
| property.total | number | 527.4 | Total for the whole stay or request, in currency. |
| property.price_before_taxes | integer | 412 | |
| property.taxes_and_fees | number | 115.4 | |
| property.strikeout_price | integer | 742 | |
| property.meal_plan | string | "room_only" | |
| property.free_cancellation | boolean | false | |
| property.cancellation_policy | string | "Non-refundable (Low price!)" | |
| property.currency | string | "USD" | ISO code of the cheapest offer (the requested currency when nothing priced). |
Arrays show their first item; every item has the same fields. Full schema in the API reference
In the request
| Input | Type | Required | What it does |
|---|---|---|---|
| property_id | string | Required | Numeric id returned by POST /v1/ota/agoda/search, or from the Agoda URL — the digits in agoda.com/…/hotel/…-h8795952.html, or the hotelId query parameter.Min length 1. |
| check_in | string (date) | Required | First night of the stay, YYYY-MM-DD. |
| check_out | string (date) | null | Optional | Departure date. |
| nights | integer | Optional | Length of stay.Default 1. Min 1, max 30. |
| adults | integer | Optional | Adults in the room.Default 2. Min 1, max 8. |
| rooms | integer | Optional | Rooms requested.Default 1. Min 1, max 8. |
| currency | string | Optional | One of 23 supported.Default USD. |
| tax_breakdown | boolean | Optional | Also read Agoda's "per night before taxes" view and return each offer's price_before_taxes plus the derived stay taxes_and_fees (with its own provenance).Default false. |
| probe_min_stay | boolean | Optional | Agoda answers a minimum-stay restriction as "sold out" (measured: Moxy Boston 2026-10-20 is sold out at 1-4 nights and priced at 7, the minimum Booking and Expedia state).Default true. |
| country_market | string | null | Optional | Visitor country (point of sale), two letters, e.g. |
Endpoints and price per call
Credits per successful call, and what 1,000 calls cost: from a credit pack down to the Scale plan. Failed requests cost nothing.
| Endpoint | What it returns | Credits | Per 1,000 calls |
|---|---|---|---|
| Hotel search POST /v1/ota/agoda/search | Agoda property id for a hotel name and city, with match confidence | 2 credits | $4.00 – $1.20 |
| Rooms and rate plans POST /v1/ota/agoda | Every room type and rate plan for one stay, in any of 23 currencies | 12 credits | $24.00 – $7.18 |
Your first call in three steps
- 01
Get an API key
Create an account and verify your email, then copy a key from the dashboard. The free trial is 500 free calls, once, no card needed.
- 02
Send POST /v1/ota/agoda
Put the key in the
x-api-keyheader and passproperty_idandcheck_in. Every other input is optional and listed above. - 03
Read the JSON
The answer is one JSON object with
property,metaandpoint_of_sale, typed and named the same way on every call. A failed call costs 0 credits, so retrying is free.
Limits and coverage
- Where it works
- Worldwide, strongest in Asia-Pacific
- Up to 30 nights per stay (
nights) - Up to 8 adults per call (
adults) - Up to 8 rooms per call (
rooms)
Is it legal to scrape Agoda?
It depends on what you collect and what you do with it. Here is what the API does, and what stays with you once the data is yours.
Public pages only
The API reads what Agoda shows anyone who opens the page without signing in. It uses no account and opens nothing behind a paywall.
Facts are not the same as content
A price on a date, a rating or a count is a fact, and copyright does not protect facts. Review text, photos, descriptions and transcripts belong to their authors or the site. Counting, scoring or summarising them is a different use from republishing them, and republishing usually needs permission.
Databases have their own right in the EU and UK
Whoever invested in building a database there can stop others taking a substantial part of it, and repeated extraction of small parts can add up to a substantial part. Collect the fields and dates you need, not a copy of Agoda.
Personal data is yours to handle
Guest reviews carry reviewer names, home countries and sometimes photos; host names appear on rental listings. If you keep it, the GDPR and UK GDPR apply to people in Europe and the UK, and other places have their own privacy laws: you need a lawful basis, must tell people you hold their data unless an exemption applies, should collect no more than you need, and should delete it on a schedule. The simplest route is not to keep it: drop names and handles before you store anything. A hashed name is still personal data.
The site’s terms, and ours
The terms of use of Agoda may limit automated access to it or reuse of its data. Our Terms make you responsible for how you use the data you collect, for following the terms of the sites it comes from, for data protection law, and for having the rights you need.
This is general information, not legal advice. For a specific use, ask a lawyer where you operate. Agoda is a trademark of its owner. ScraperCompany is independent: not affiliated with or endorsed by Agoda, and this is not an official Agoda API.
Frequently asked questions
Read next
Guides
Does Agoda have a public API?
Agoda’s APIs are for partners. Affiliates and booking partners get its Content, Search and Book APIs after a commercial agreement and certification, and channel managers use its YCS API to manage rates for the properties they connect. Agoda’s affiliate documentation also tells partners not to compare the prices its API returns with the website. ScraperCompany is independent of Agoda: this API reads the rooms and prices agoda.com shows a visitor.
How do I find a hotel’s Agoda id?
Send the hotel name and city to the hotel search endpoint and store recommended_match.property_id. You can also read it from the hotel’s Agoda URL: the digits after -h in agoda.com/…/hotel/…-h8795952.html, or the hotelId query parameter.
Can I get Agoda prices in another currency or country?
Yes. Pick one of 23 currencies; Agoda converts one underlying rate, so the same offer in USD and EUR differs only by the exchange rate. Agoda also prices by the visitor’s country, so set country_market to the country you want, and the point_of_sale block says whether the price was actually collected from it.
Why does Agoda show a hotel as sold out?
Often because the hotel has a minimum stay: Agoda shows those dates as sold out at shorter lengths. When that happens the API asks again for the same check-in at 2, 3, 4, 5 and 7 nights and reports availability: min_stay with a quote for the first length that prices. Set probe_min_stay to false to keep Agoda’s flag as it is.
Are taxes included in Agoda prices?
total is the stay total including taxes and fees, and tax_inclusive says whether the displayed nightly price includes them. Set tax_breakdown to true to add each offer’s nightly price before taxes and the taxes and fees for the stay.
Do failed requests cost credits?
No. A failed or blocked call (any 4xx or 5xx response) costs 0 credits, and so does a search page that comes back empty. You pay only for successful results.
How do I get an API key?
Create an account on the sign-up page and verify your email. You get a free trial of 500 free calls, once, no card needed; for everything else, and after the trial, buy a credit pack (from $20) or pick a plan. You create and rotate keys yourself in the dashboard.
More APIs on the same key
All APIsLook a hotel up by name, then read what Booking.com shows a guest: a nightly price calendar, each room type with its rate plans, and the reviews with the property’s replies. Structured JSON, priced per call.
Expedia APILook a hotel up by name, then read what Expedia shows a guest for one stay: every room type and rate plan with its total, nightly price and cancellation terms, and the guest reviews with the property’s replies.
Hotels.com APIFind a hotel’s Hotels.com id by name, then read what a guest on the Hotels.com site for their country sees: the headline price for a stay, every room type and rate plan, and the guest reviews.
Tripadvisor APISend a hotel’s Tripadvisor id and a stay, and get the offers Tripadvisor lists from Booking.com, Expedia, Hotels.com and other sites, each with what its price means. Read the hotel’s guest reviews and management replies from the same id.
Airbnb APISearch Airbnb by destination or map area and get each listing with its trip price and breakdown. Then read a listing’s calendar: availability, stay rules and the price Airbnb itself quotes for the nights you choose. Structured JSON, priced per call.
Vrbo APISearch Vrbo for a destination and stay, then quote any rental for exact dates: Vrbo’s nightly figure, its fee-inclusive total, the payment model and whether the dates can be booked. Structured JSON, priced per call.
Start with 500 free calls
Create an account and verify your email: your own API keys and 500 free calls, once, no card needed. When you need more, pay $20 as you go or pick a plan from $39 a month.
No card needed. Then $20 for 10,000 credits, or plans from $39 a month.
- Failed calls cost 0 credits
- Cancel anytime
- Unused pack credits refundable for 60 days
- Public status page
- Talk to sales Volume, custom terms, invoices
- Read the quickstart First call in five minutes