Search Tripadvisor
litescrape.tripadvisor.search.generalReturns Tripadvisor hotels, restaurants, attractions and places in `search_results`
- Price
- $0.00015/successプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/09/29Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.tripadvisor.search.general?q=hotels+in+Austin+TexasPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | Search text, 1 to 500 characters. | coffee |
lat | 数値 | 任意 | Search center latitude from -90 through 90. Requires lon. | 30.2672 |
lon | 数値 | 任意 | Search center longitude from -180 through 180. Requires lat. | -97.7431 |
num | 整数 | 任意 | Maximum number of search_results, 1 through 30, including any leading exact match. | |
start | 整数 | 任意 | Result offset from 0 through 10,000. Offsets and positions count any leading exact match. | |
geo_id | 整数 | 任意 | Tripadvisor geography ID to search within. | 30196 |
locale | 文字列 | 任意 | Lowercase language code with an optional uppercase country, such as en or en-US. | |
timeout | 数値 | 任意 | 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 | 文字列 | 任意 | Restrict results to one entity type. | |
tripadvisor_domain | 文字列 | 任意 | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. | www.tripadvisor.com |
- クエリパラメータ
q文字列必須Search text, 1 to 500 characters.
例:
coffeelat数値任意Search center latitude from -90 through 90. Requires lon.
例:
30.2672lon数値任意Search center longitude from -180 through 180. Requires lat.
例:
-97.7431num整数任意Maximum number of search_results, 1 through 30, including any leading exact match.
start整数任意Result offset from 0 through 10,000. Offsets and positions count any leading exact match.
geo_id整数任意Tripadvisor geography ID to search within.
例:
30196locale文字列任意Lowercase language code with an optional uppercase country, such as en or en-US.
timeout数値任意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文字列任意Restrict results to one entity type.
tripadvisor_domain文字列任意Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
例:
www.tripadvisor.com
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.00015/success です。サービス料を含みます。