cloro WebsiteAPI Get an API key
API Reference › Perplexity › Travel and places

Travel and places

Structured hotel and place results that cloro surfaces inside a Perplexity response whenever the prompt carries travel intent.

Overview

Travel and places data is not a standalone endpoint — it rides along inside the regular Perplexity extraction response, so no extra request or feature flag is needed. cloro classifies the intent of each prompt, and when it recognizes a travel-shaped query (looking for hotels, sightseeing, or things to do in a location), it populates two extra arrays alongside the usual answer.

Both arrays follow Perplexity's own ranking order: the item at index 0 is the top-ranked result of its kind, and entries descend from there. If the prompt shows no travel intent, the arrays are simply absent from the payload.

Triggering travel results

To receive travel and places data, submit a prompt whose wording expresses a travel goal — for instance asking about hotels in a specific city, notable places to visit, or activities in a destination. A short example request body:

{
  "prompt": "best hotels in Lisbon for families",
  "country": "PT"
}

Top-level travel fields

FieldTypeDescription
result.hotelsarrayRanked hotel listings, present only when travel intent is detected.
result.placesarrayGeneral points of interest and locations tied to the query.

Hotel object

Every entry in result.hotels may carry the following fields:

FieldTypeDescription
namestringDisplay name of the hotel.
urlstringLink to the hotel's detail page.
ratingnumberAggregate score on a 0–5 scale.
num_reviewsnumberCount of reviews behind the rating.
addressarrayAddress broken into individual lines.
phonestringContact phone number.
descriptionstringShort summary of the property.
image_urlstringURL of the primary photo.
imagesarrayURLs of any additional photos.
latnumberLatitude coordinate.
lngnumberLongitude coordinate.
price_levelstringRelative price band indicator.
categoriesarrayCategory or amenity tags for the hotel.

Place object

Every entry in result.places may carry the following fields:

FieldTypeDescription
namestringDisplay name of the place.
urlstringLink to the place's detail page.
addressarrayAddress broken into individual lines.
ratingnumberAggregate score on a 0–5 scale.
latnumberLatitude coordinate.
lngnumberLongitude coordinate.
categoriesarrayCategory tags describing the place.
map_urlstringLink to the location on a map.
imagesarrayURLs of photos for the place.

Response example

{
  "success": true,
  "result": {
    "text": "Lisbon offers several family-friendly hotels clustered around its central districts...",
    "hotels": [
      {
        "name": "Hotel Mundial",
        "url": "https://www.hotel-mundial.pt",
        "rating": 4.3,
        "num_reviews": 6421,
        "address": ["Praca Martim Moniz 2", "1100-341 Lisboa"],
        "phone": "+351 21 884 2000",
        "description": "Central family hotel with rooftop views over the old town.",
        "image_url": "https://example.com/mundial.jpg",
        "images": [
          "https://example.com/mundial-1.jpg",
          "https://example.com/mundial-2.jpg"
        ],
        "lat": 38.7167,
        "lng": -9.1357,
        "price_level": "$$$",
        "categories": ["Family-friendly", "Rooftop bar"]
      }
    ],
    "places": [
      {
        "name": "Oceanario de Lisboa",
        "url": "https://www.oceanario.pt",
        "address": ["Esplanada Dom Carlos I", "1990-005 Lisboa"],
        "rating": 4.7,
        "lat": 38.7635,
        "lng": -9.0939,
        "categories": ["Aquarium", "Attraction"],
        "map_url": "https://maps.example.com/oceanario",
        "images": ["https://example.com/oceanario-1.jpg"]
      }
    ]
  }
}

Notes

All travel fields are best-effort: any individual property may be omitted when the source does not expose it, so treat every field as optional when parsing. Because these arrays only appear on travel-intent prompts, always check for their presence before reading them. Questions about coverage or field behavior can go to [email protected].