Pull the `d…` location ID from a URL.
/api/v1/travel/tripadvisor/extract-location-idFree.urlurl·queryrequired | Any TripAdvisor URL containing d###. Example: https://www.tripadvisor.com/Hotel_Review-g189158-d234567.html |
scripts/dump_doc_samples.py on the server to populate real samples.{
"url": "…",
"location_id": "234567"
}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-location-id", {
method: "GET",
headers: {
"X-API-Key": "<YOUR_API_KEY>",
},
});
const data = await res.json();Click Send Request above to try this endpoint.