GET
# Google Travel Resolve API

Resolve a named hotel once, then reuse its durable token across Google Travel.

## Overview

Turn a hotel name and city into Google Travel entity\_token candidates for property-level requests.

#### Contract note

Pick the best place\_name match when Google returns multiple candidates. Cache its entity\_token for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby calls.

### Endpoint URL

GET https://api.stayapi.com/v1/google\_travel/resolve 

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| query | string | Required | Hotel name plus city, for example Barceló Fortina Sliema Malta. |
| hl | string | Optional | UI language code. Default: en. |
| gl | string | Optional | Region or country code. Default: us. |

## Response schema

| Field | Type | Description |
| --- | --- | --- |
| success | boolean | Whether the resolver completed successfully. |
| query | string | The submitted hotel query. |
| results | array | Candidate matches with place\_name and the entity\_token used by property endpoints. |

## Identifier workflow

#### Resolve once, reuse the token

Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests.

## Related Google Travel endpoints

[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby)

Request

```curl
curl -G "https://api.stayapi.com/v1/google_travel/resolve" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "query=Barcelo Fortina Sliema Malta" \
  --data-urlencode "hl=en" \
  --data-urlencode "gl=us"
```

Response

```json
{
  "success": true,
  "query": "Barcelo Fortina Sliema Malta",
  "results": [
    {
      "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE",
      "place_name": "Barceló Fortina Malta"
    }
  ]
}
```
