Agoda Hotel Name Lookup API
Find hotel suggestions by name and select an Agoda hotel ID.
Copy for your AI agent
Paste into Claude, ChatGPT, Cursor or Copilot — endpoint, parameters, response fields and a curl example in Markdown.
Overview
Send your API key in X-API-Key. This endpoint returns hotel suggestions, without prices or availability.
Endpoint URL
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Required | 2–200 characters after trimming; control characters are rejected. Include the city to distinguish similarly named hotels. |
There are no date, limit, or page parameters.
Response
success is true; query is the trimmed input. hotels contains hotel suggestions in provider order, with duplicate hotel IDs removed. count matches the returned array length and retrieved_at is a UTC ISO timestamp.
Each hotel has a positive integer hotel_id and a name. The fields city_id (integer), city, country_code, location, search_url, and image_url are nullable. A successful lookup with no suggestions returns hotels: [] and count: 0.
Limits and next steps
Suggestions are not an exhaustive hotel catalog and have no pagination. Check the name and location before choosing a hotel. Pass its hotel_id to hotel details for a date-free property profile, to hotel prices with stay dates, or to hotel reviews. If you already have an Agoda hotel URL, use URL to hotel ID.
Errors
Errors use RFC 7807 Problem Details: 400 for invalid input, 502 for an upstream failure, and 503 when the service is temporarily unavailable. Missing or incorrectly typed required parameters return 422. Authentication and account limits can return 401, 402, or 429 and apply as for other StayAPI endpoints. A failure is never represented as a successful empty list.