Accor API endpoint
Returns anonymous Accor typeahead suggestions for a partial destination or hotel query, including destination/place and hotel identifiers, types, labels, and match metadata. It uses the public search-box suggestion source only; booking, rates, rooms, reviews, and result-list requests are excluded.
/accor/search/suggestQuery parameters:
query (required): partial destination or hotel text with at least two characters.language (optional): locale used by Accor's suggestion source, such as en or fr (defaults to en).The response combines Accor hotel suggestions and place/destination suggestions from the site's anonymous typeahead source. Booking, rates, rooms, reviews, and result-list requests are not made. A valid query with no matches returns an empty suggestions array and the upstream source statuses.
| Field | Filled in, of 2 checked | Values in the sample |
|---|---|---|
| source | 2 | “google_places” and 1 other value |
| code | 2 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| query | string | Yes | Partial destination or hotel query (at least two characters) | London | |
| language | string | No | Optional locale used by the suggestion source | en | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/accor/search/suggest?query=London&language=en" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "London",
"language": "en",
"suggestions": [
{
"source": "google_places",
"id": "ChIJdd4hrwug2EcRmSrV3Vo6llI",
"type": "political",
"description": "London, UK",
"matched_substrings": [
{
"length": 6,
"offset": 0
}
]
},
{
"source": "hod_hotels",
"id": "3099",
"type": "hotel",
"description": "ibis London Stratford",
"score": 3,
"rank": 5620,
"matched_substrings": [
{
"length": 6,
"offset": 5
}
]
}
],
"status": [
{
"source": "google_places",
"code": "ok"
},
{
"source": "hod_hotels",
"code": "ok"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/accor.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | accor.SuggestResponse | No | ||||
| data.language | string | No | ||||
| data.query | string | No | ||||
| data.status | array | No | ||||
| data.status[].code | string | No | ||||
| data.status[].source | string | No | ||||
| data.suggestions | array | No | ||||
| data.suggestions[].description | string | No | ||||
| data.suggestions[].id | string | No | ||||
| data.suggestions[].matched_substrings | array | No | ||||
| data.suggestions[].matched_substrings[].length | integer | No | ||||
| data.suggestions[].matched_substrings[].offset | integer | No | ||||
| data.suggestions[].rank | integer | No | ||||
| data.suggestions[].score | number | No | ||||
| data.suggestions[].source | string | No | ||||
| data.suggestions[].type | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/accor/search/suggest?query=London&language=en" \
-H "x-api-key: $CRAWLORA_API_KEY"