Accor API endpoint
Resolves an anonymous Accor search suggestion identifier to its description, coordinates, viewport, radius, and address components. It uses the same public place-details source as the Accor search box; booking, rates, rooms, reviews, and account data are excluded.
/accor/search/detailsQuery parameters:
source (required): google_places or hod_hotels.id (required): an identifier returned by /accor/search/suggest.language (optional): locale such as en (defaults to en).The response contains the public description, coordinates, radius, viewport, and address components for the selected suggestion. Booking, rates, rooms, reviews, and account data are not returned.
| Field | Filled in, of 5 checked | Values in the sample |
|---|---|---|
| types | 5 | median 2 entries |
| short_name | 5 | “London” and 3 other values |
| long_name | 5 | “London” and 3 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| source | string | Yes | Suggestion source Allowed values: google_places, hod_hotels. | google_places | |
| id | string | Yes | Identifier returned by Accor search suggestions | ChIJdd4hrwug2EcRmSrV3Vo6llI | |
| language | string | No | Optional locale | en | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/accor/search/details?source=google_places&id=ChIJdd4hrwug2EcRmSrV3Vo6llI&language=en" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source": "google_places",
"id": "ChIJdd4hrwug2EcRmSrV3Vo6llI",
"description": "London, UK",
"type": "political",
"location": {
"latitude": 51.5072178,
"longitude": -0.1275862
},
"radius": 17885.585
}
}Request schema
No body schema
Response schema
#/definitions/accor.detailsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | accor.DetailsResponse | No | ||||
| data.address_components | array | No | ||||
| data.address_components[].language_code | string | No | ||||
| data.address_components[].long_name | string | No | ||||
| data.address_components[].short_name | string | No | ||||
| data.address_components[].types | array | No | ||||
| data.center | accor.GeoPoint | No | ||||
| data.center.latitude | number | No | ||||
| data.center.longitude | number | No | ||||
| data.description | string | No | ||||
| data.id | string | No | ||||
| data.location | accor.GeoPoint | No | ||||
| data.location.latitude | number | No | ||||
| data.location.longitude | number | No | ||||
| data.original_viewport | accor.GeoViewport | No | ||||
| data.original_viewport.northeast | accor.GeoPoint | No | ||||
| data.original_viewport.northeast.latitude | number | No | ||||
| data.original_viewport.northeast.longitude | number | No | ||||
| data.original_viewport.southwest | accor.GeoPoint | No | ||||
| data.original_viewport.southwest.latitude | number | No | ||||
| data.original_viewport.southwest.longitude | number | No | ||||
| data.radius | number | No | ||||
| data.source | string | No | ||||
| data.type | string | No | ||||
| data.viewport | accor.GeoViewport | No | ||||
| data.viewport.northeast | accor.GeoPoint | No | ||||
| data.viewport.northeast.latitude | number | No | ||||
| data.viewport.northeast.longitude | number | No | ||||
| data.viewport.southwest | accor.GeoPoint | No | ||||
| data.viewport.southwest.latitude | number | No | ||||
| data.viewport.southwest.longitude | number | 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/details?source=google_places&id=ChIJdd4hrwug2EcRmSrV3Vo6llI&language=en" \
-H "x-api-key: $CRAWLORA_API_KEY"