Skip to main content
POST
/
api
/
agoda
/
hotels
/
prices
/agoda/hotels/prices
curl --request POST \
  --url https://api.anysite.io/api/agoda/hotels/prices \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "city_id": 2,
  "count": 90,
  "timeout": 300,
  "start_date": "2023-12-25"
}
'
[
  {
    "date": "<string>",
    "@type": "@agoda_daily_price",
    "price": 123,
    "trend": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
city_id
integer
required

Agoda city id

Required range: x >= 1
Example:

9395

count
integer
required

Number of consecutive days to return

Required range: 1 <= x <= 180
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
start_date
string<date> | null

First day of the price calendar (defaults to today)

Response

Successful Response

date
string
required
@type
string
default:@agoda_daily_price
price
number | null
trend
string | null