APIs / Travel / Agoda

1 credit per call5 endpoints18 datapointsChecked working 6 Dec 2026

Agoda API

Agoda API for hotel search by city and dates, hotel details, guest reviews, room availability and suggestions as JSON. 5 endpoints, 1 credit per call.

Agoda
GET/v1/agoda/search?check_in=2027-03-14&check_out=2027-03-16&city_id=9395
{
  "success": true,
  "data": {
    "city_id": 9395,
    "check_in": "2027-03-14",
    "check_out": "2027-03-16",
    "currency": "USD",
    "total": 4280,
    "page": 1,
    "has_more": true,
    "next_page": 2,
    "hotels": [
      {
        "position": 1,
        "id": 287436,
        "name": "Novotel Bangkok Platinum Pratunam",
        "url": "https://www.agoda.com/novotel-bangkok-platinum-pratunam/hotel/bangkok-th.html",
        "property_type": "Hotel",
        "star_rating": 4.5,
        "latitude": 13.749682426452637,
        "longitude": 100.54058837890625,
        "city": "Bangkok",
        "area": "Pratunam",
        "country_code": "TH",
        "review_score": 8.7,
        "review_count": 18852,
        "images": [
          "https://pix8.agoda.net/hotelImages/287436/0/1a466049d63823ec5db5e989041d9d59.jpeg?va=1&ce=2",
          "https://pix8.agoda.net/hotelImages/287436/7220712/12742f20db512e67f9b6507cba765346.jpeg?va=1&ce=3",
          "https://q-xx.bstatic.com/xdata/images/hotel/max500/914524987.jpg?k=5d79318549ccf90cefe377ae966e3bdbb71206b0a1da6f37fad33b3367258833&o="
        ],
        "price_per_night": 112.01,
        "price_total": 263.66,
        "currency": "USD",
        "free_cancellation": false
      },
      {
        "position": 2,
        "id": 87219375,
        "name": "Hotel Royal Bangkok",
        "url": "https://www.agoda.com/hotel-royal-bangkok-h3093614/hotel/bangkok-th.html",
        "property_type": "Hotel",
        "star_rating": 4,
        "latitude": 13.740442,
        "longitude": 100.50989,
        "city": "Bangkok",
        "area": "China Town",
        "country_code": "TH",
        "review_score": 8.9,
        "review_count": 5017,
        "images": [
          "https://pix8.agoda.net/hotelImages/87219375/0/05112d5505cb99fd983d3370d5d50d98.jpeg?va=1&ce=3",
          "https://pix8.agoda.net/hotelImages/87219375/1362738907/57d6bc6c3d3836740a1777d689898826.jpg?va=1&ce=3",
          "https://q-xx.bstatic.com/xdata/images/hotel/max500/625011556.jpg?k=d3182fdd500cc864ea82578cd1fbb90f9a9cfd7c008686e4bb52b575e3864c7e&o="
        ],
        "price_per_night": 37.82,
        "price_total": 91.11,
        "currency": "USD",
        "free_cancellation": false
      },
      {
        "position": 3,
        "id": 10681,
        "name": "Novotel Bangkok On Siam Square Hotel",
        "url": "https://www.agoda.com/novotel-bangkok-on-siam-square-hotel/hotel/bangkok-th.html",
        "property_type": "Hotel",
        "star_rating": 4.5,
        "latitude": 13.7443780899048,
        "longitude": 100.53483581543,
        "city": "Bangkok",
        "area": "Siam",
        "country_code": "TH",
        "review_score": 8.4,
        "review_count": 27182,
        "images": [
          "https://q-xx.bstatic.com/xdata/images/hotel/max500/920316359.jpg?k=2d00ac82fc30c41e2601cec712ab95be49545a94916ec2195e50c5486e74e153&o=",
          "https://pix8.agoda.net/hotelImages/21607812/459355650/bb07a9991972af922a385c195af69977.jpeg?va=1&ce=4",
          "https://q-xx.bstatic.com/xdata/images/hotel/max500/920318015.jpg?k=f4d45e1149eac3c1cdc26e93426bc66f1cedfe56a0ba4d96ee1176a2d12ac4c1&o="
        ],
        "price_per_night": 125.85,
        "price_total": 296.26,
        "currency": "USD",
        "free_cancellation": false
      }
    ]
  },
  "meta": {
    "endpoint_family": "hotel_search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegeridintegernamestringurlurlproperty_typestringstar_ratingnumberlatitudenumberlongitudenumbercitystringareastringcountry_codestringreview_scorenumberreview_countintegerimagesstring[]price_per_nightnumberprice_totalnumbercurrencystringfree_cancellationboolean
11287436Novotel Bangkok Platinum Pratunamhttps://www.agoda.com/novotel-bangkok-platinum-pratunam/hotel/bangkok-th.htmlHotel4.513.749682426452637100.54058837890625BangkokPratunamTH8.718852[3 items]112.01263.66USDfalse
2287219375Hotel Royal Bangkokhttps://www.agoda.com/hotel-royal-bangkok-h3093614/hotel/bangkok-th.htmlHotel413.740442100.50989BangkokChina TownTH8.95017[3 items]37.8291.11USDfalse
3310681Novotel Bangkok On Siam Square Hotelhttps://www.agoda.com/novotel-bangkok-on-siam-square-hotel/hotel/bangkok-th.htmlHotel4.513.7443780899048100.53483581543BangkokSiamTH8.427182[3 items]125.85296.26USDfalse

Recorded 12 Nov 2026 · 3 items shown · 18 datapoints per itemGET /v1/agoda/search?check_in=2027-03-14&check_out=2027-03-16&city_id=9395

18 datapoints

Identity

  • idinteger
  • namestring
  • property_typestring

Contact

  • urlurl

Location

  • latitudenumber
  • longitudenumber
  • citystring
  • areastring
  • country_codestring
  • free_cancellationboolean

Reputation

  • star_ratingnumber
  • review_scorenumber
  • review_countinteger
  • imagesstring[]

Price

  • price_per_nightnumber
  • price_totalnumber
  • currencystring

Other

  • positioninteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/agoda/search?check_in=2027-03-14&check_out=2027-03-16&city_id=9395" \
  -H "X-API-Key: $API_KEY"

Agoda · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/agoda/hotel
hotel_id
hotel
1 credit
GET/v1/agoda/reviews
hotel_id+2 optional
hotel_idhotel_namereviews
1 credit
GET/v1/agoda/rooms
check_incheck_outhotel_idcity_idcountry_id+3 optional
hotel_idhotel_namecheck_incheck_outcurrencycheapest_price_per_night+2 more
1 credit
GET/v1/agoda/search
check_incheck_outcity_id+5 optional
city_idcheck_incheck_outcurrencyhotels
1 credit
GET/v1/agoda/suggest
query
idnametypecity_idcity_namecountry_id+2 more
1 credit

Overview

About the Agoda API

What you can get

The Agoda API returns Agoda hotel data as JSON through 5 endpoints.

  • Search: search takes a city_id, check_in and check_out, with adults, rooms, children_ages[], currency and page.
  • Hotels: hotel takes a hotel_id.
  • Rooms: rooms takes a hotel_id, city_id, country_id, check_in and check_out, with adults, rooms and children_ages[].
  • Reviews: reviews takes a hotel_id, with page and sort (recent, rating_high, rating_low or helpful).
  • Suggestions: suggest takes a query.

search and rooms take the same stay parameters (check_in, check_out, adults, rooms, children_ages[]), and hotel, rooms and reviews all take a hotel_id.

How a call works

Search hotels in a city for a stay: GET /v1/agoda/search?city_id=...&check_in=2027-01-08&check_out=2027-01-10&adults=2 with your key in the X-API-Key header. search and reviews page with page. Every successful call costs 1 credit; failed calls cost nothing.

TravelJSONRESTMCP

More travel APIs

Use cases

Track hotel rates in a city for given dates

Use the Agoda API to track hotel rates in a city for given dates

Check room availability for a stay and party size

Use the Agoda API to check room availability for a stay and party size

Compare hotels in a destination by price

Use the Agoda API to compare hotels in a destination by price

Collect a hotel's reviews, sorted by recency or rating, for sentiment analysis

Use the Agoda API to collect a hotel's reviews, sorted by recency or rating, for sentiment analysis

FAQ

Questions

Do I need an Agoda API key?

No. You call this Agoda API with your Perceptlayer key in the `X-API-Key` header, so there's no Agoda partner account to set up.

How much does the Agoda API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Can I get Agoda hotel reviews?

Yes. `reviews` takes a `hotel_id`, with `page` and `sort` (recent, rating_high, rating_low or helpful).

Is this the official Agoda API?

No. Perceptlayer is an independent service and is not affiliated with Agoda. It returns Agoda data as JSON with a Perceptlayer key, so there is no Agoda developer account, app review or partner approval to get first. It only reads data: if Agoda has an official API and you need to act on your own Agoda account, such as posting, managing orders or reading private data, use that one.

Should I build an Agoda scraper instead?

You can, but an Agoda scraper is code you maintain: page changes break it, requests get blocked, and Agoda's terms govern how you collect data. The Agoda API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Agoda API with 100 free credits

No credit card. Failed calls are never billed.