APITravel — TripAdvisorTripAdvisor — Extract Geo ID

TripAdvisor — Extract Geo ID

Pull the `g…` geo ID from a URL.

GET/api/v1/travel/tripadvisor/extract-geo-idFree.
Free helper. No scrape.

Query / path parameters

url
url·queryrequired
Any TripAdvisor URL containing g###.
Example: https://www.tripadvisor.com/Hotels-g189158-Lisbon-Hotels.html

Response

placeholder inline shape — run scripts/dump_doc_samples.py on the server to populate real samples.
{
  "url": "…",
  "geo_id": "189158"
}
API Key

Paste your full key once — cached in this browser for 7 days, then cleared.

const res = await fetch("https://api.logposervices.com/api/v1/travel/tripadvisor/extract-geo-id", {
  method: "GET",
  headers: {
    "X-API-Key": "<YOUR_API_KEY>",
  },
});
const data = await res.json();
Try it
Base URL
https://api.logposervices.com
Query
urlurlrequired
Response

Click Send Request above to try this endpoint.