Search Tripadvisor
litescrape.tripadvisor.search.generalReturns Tripadvisor hotels, restaurants, attractions and places in `search_results`
- Price
- $0.00015/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 29 sept. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.tripadvisor.search.general?q=hotels+in+Austin+TexasPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
q | chaîne | Obligatoire | Search text, 1 to 500 characters. | coffee |
lat | nombre | Facultatif | Search center latitude from -90 through 90. Requires lon. | 30.2672 |
lon | nombre | Facultatif | Search center longitude from -180 through 180. Requires lat. | -97.7431 |
num | entier | Facultatif | Maximum number of search_results, 1 through 30, including any leading exact match. | |
start | entier | Facultatif | Result offset from 0 through 10,000. Offsets and positions count any leading exact match. | |
geo_id | entier | Facultatif | Tripadvisor geography ID to search within. | 30196 |
locale | chaîne | Facultatif | Lowercase language code with an optional uppercase country, such as en or en-US. | |
timeout | nombre | Facultatif | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
place_type | chaîne | Facultatif | Restrict results to one entity type. | |
tripadvisor_domain | chaîne | Facultatif | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. | www.tripadvisor.com |
- Paramètres de requête
qchaîneObligatoireSearch text, 1 to 500 characters.
Exemple :
coffeelatnombreFacultatifSearch center latitude from -90 through 90. Requires lon.
Exemple :
30.2672lonnombreFacultatifSearch center longitude from -180 through 180. Requires lat.
Exemple :
-97.7431numentierFacultatifMaximum number of search_results, 1 through 30, including any leading exact match.
startentierFacultatifResult offset from 0 through 10,000. Offsets and positions count any leading exact match.
geo_identierFacultatifTripadvisor geography ID to search within.
Exemple :
30196localechaîneFacultatifLowercase language code with an optional uppercase country, such as en or en-US.
timeoutnombreFacultatifOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
place_typechaîneFacultatifRestrict results to one entity type.
tripadvisor_domainchaîneFacultatifSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
Exemple :
www.tripadvisor.com
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.tripadvisor.search.general?q=hotels+in+Austin+Texas' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.tripadvisor.search.general?q=hotels+in+Austin+Texas",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.tripadvisor.search.general?q=hotels+in+Austin+Texas", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00015/success, frais de service inclus.