Find a location (v1)
Returns the cities, airports, landmarks and hotels Priceline suggests for a name, each with the location_id the Hotel Search endpoint takes. Empty results means nothing matched.
1 credit / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
query*string
A city, airport, landmark or hotel name, such as paris, JFK or Hilton Times Square.
Length
2 <= length <= 100curl -X GET "https://example.com/v1/priceline/locations?query=paris" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "query": "paris", "count": 0, "results": [ { "location_id": "3000035827", "type": "city", "hotel_id": null, "name": "Paris, France", "city": "Paris", "region": "Paris", "country": "France", "country_code": "FR", "latitude": 48.852061, "longitude": 2.348988 } ] }, "details": { "reason": "string", "message": "string" }}