Search Tripadvisor
litescrape.tripadvisor.search.generalReturns Tripadvisor hotels, restaurants, attractions and places in `search_results`
- Price
- $0.00015/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
q | cadena | Obligatorio | Search text, 1 to 500 characters. | coffee |
lat | número | Opcional | Search center latitude from -90 through 90. Requires lon. | 30.2672 |
lon | número | Opcional | Search center longitude from -180 through 180. Requires lat. | -97.7431 |
num | entero | Opcional | Maximum number of search_results, 1 through 30, including any leading exact match. | |
start | entero | Opcional | Result offset from 0 through 10,000. Offsets and positions count any leading exact match. | |
geo_id | entero | Opcional | Tripadvisor geography ID to search within. | 30196 |
locale | cadena | Opcional | Lowercase language code with an optional uppercase country, such as en or en-US. | |
timeout | número | Opcional | 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 | cadena | Opcional | Restrict results to one entity type. | |
tripadvisor_domain | cadena | Opcional | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. | www.tripadvisor.com |
- Parámetros de consulta
qcadenaObligatorioSearch text, 1 to 500 characters.
Ejemplo:
coffeelatnúmeroOpcionalSearch center latitude from -90 through 90. Requires lon.
Ejemplo:
30.2672lonnúmeroOpcionalSearch center longitude from -180 through 180. Requires lat.
Ejemplo:
-97.7431numenteroOpcionalMaximum number of search_results, 1 through 30, including any leading exact match.
startenteroOpcionalResult offset from 0 through 10,000. Offsets and positions count any leading exact match.
geo_identeroOpcionalTripadvisor geography ID to search within.
Ejemplo:
30196localecadenaOpcionalLowercase language code with an optional uppercase country, such as en or en-US.
timeoutnúmeroOpcionalOptional 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_typecadenaOpcionalRestrict results to one entity type.
tripadvisor_domaincadenaOpcionalSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
Ejemplo:
www.tripadvisor.com
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00015/success, incluida la tarifa de servicio.