Search Tripadvisor
curl --request GET \
--url https://api.aisa.one/apis/v1/tripadvisor/search-general \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tripadvisor/search-general"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tripadvisor/search-general', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tripadvisor/search-general",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tripadvisor/search-general"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tripadvisor/search-general")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tripadvisor/search-general")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"map_previews": [
{
"content_type": "<string>",
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"link": "<string>",
"tags": [
{
"categoryId": 123,
"tagId": 123
}
],
"title": "<string>"
}
],
"pagination": {
"next": "<string>",
"next_page_token": "<string>"
},
"search_information": {
"results_on_page": 123,
"total_results": 123
},
"search_parameters": {
"geo_id": 123,
"lat": 123,
"locale": "<string>",
"lon": 123,
"num": 123,
"page_token": "<string>",
"place_type": "<string>",
"q": "<string>",
"start": 123,
"tripadvisor_domain": "<string>"
},
"search_results": [
{
"description": "<string>",
"detail_type": "<string>",
"highlighted_spans": [
{
"length": 123,
"offset": 123
}
],
"image": {
"max_height": 123,
"max_width": 123,
"thumbnail": "<string>",
"url_template": "<string>"
},
"link": "<string>",
"location": "<string>",
"max_rating": 123,
"mention_count": 123,
"place_api_link": "<string>",
"place_id": "<string>",
"position": 123,
"position_in_page": 123,
"rating": 123,
"reviews": 123,
"reviews_api_link": "<string>",
"snippet": "<string>",
"thumbnail": "<string>",
"title": "<string>",
"type": "<string>"
}
],
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "aisa_cursor"
}
}TripAdvisor
Search Tripadvisor
Search Tripadvisor
GET
https://api.aisa.one
/
apis
/
v1
/
tripadvisor
/
search-general
Search Tripadvisor
curl --request GET \
--url https://api.aisa.one/apis/v1/tripadvisor/search-general \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tripadvisor/search-general"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tripadvisor/search-general', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tripadvisor/search-general",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tripadvisor/search-general"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tripadvisor/search-general")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tripadvisor/search-general")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"map_previews": [
{
"content_type": "<string>",
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"link": "<string>",
"tags": [
{
"categoryId": 123,
"tagId": 123
}
],
"title": "<string>"
}
],
"pagination": {
"next": "<string>",
"next_page_token": "<string>"
},
"search_information": {
"results_on_page": 123,
"total_results": 123
},
"search_parameters": {
"geo_id": 123,
"lat": 123,
"locale": "<string>",
"lon": 123,
"num": 123,
"page_token": "<string>",
"place_type": "<string>",
"q": "<string>",
"start": 123,
"tripadvisor_domain": "<string>"
},
"search_results": [
{
"description": "<string>",
"detail_type": "<string>",
"highlighted_spans": [
{
"length": 123,
"offset": 123
}
],
"image": {
"max_height": 123,
"max_width": 123,
"thumbnail": "<string>",
"url_template": "<string>"
},
"link": "<string>",
"location": "<string>",
"max_rating": 123,
"mention_count": 123,
"place_api_link": "<string>",
"place_id": "<string>",
"position": 123,
"position_in_page": 123,
"rating": 123,
"reviews": 123,
"reviews_api_link": "<string>",
"snippet": "<string>",
"thumbnail": "<string>",
"title": "<string>",
"type": "<string>"
}
],
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "aisa_cursor"
}
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: GET /apis/v1/tripadvisor/search-general
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/tripadvisor/search-general - geo_id: query; 可选
- lat: query; 可选
- locale: query; 可选
- lon: query; 可选
- num: query; 可选
- page_token: query; 可选
- place_type: query; 可选
- q: query; 必填
- start: query; 可选
- timeout: query; 可选
- tripadvisor_domain: query; 可选
- aisa_cursor: query; 可选
{
"operationId": "tripadvisor.search-general",
"method": "GET",
"path": "/apis/v1/tripadvisor/search-general",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "geo_id",
"required": false,
"schema": {
"maximum": 9007199254740991,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "lat",
"required": false,
"schema": {
"maximum": 90,
"minimum": -90,
"type": "number"
}
},
{
"in": "query",
"name": "locale",
"required": false,
"schema": {
"maxLength": 32,
"minLength": 2,
"type": "string"
}
},
{
"in": "query",
"name": "lon",
"required": false,
"schema": {
"maximum": 180,
"minimum": -180,
"type": "number"
}
},
{
"in": "query",
"name": "num",
"required": false,
"schema": {
"maximum": 20,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "page_token",
"required": false,
"schema": {
"maxLength": 16000,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "place_type",
"required": false,
"schema": {
"enum": [
"accommodation",
"all",
"attraction",
"attraction_product",
"eatery",
"geo"
],
"type": "string"
}
},
{
"in": "query",
"name": "q",
"required": true,
"schema": {
"maxLength": 500,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "start",
"required": false,
"schema": {
"maximum": 10000,
"minimum": 0,
"type": "integer"
}
},
{
"in": "query",
"name": "timeout",
"required": false,
"schema": {
"exclusiveMinimum": 0,
"maximum": 90,
"type": "number"
}
},
{
"in": "query",
"name": "tripadvisor_domain",
"required": false,
"schema": {
"maxLength": 253,
"minLength": 3,
"type": "string"
}
},
{
"description": "Next page: the aisa_pagination.next_cursor of the previous response.",
"in": "query",
"name": "aisa_cursor",
"required": false,
"schema": {
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
已观察到的响应结构
以下结构来自探针或抽样请求的成功结果,只反映已观察到的部分:字段和类型可能变化,不保证每次都有。已有正式响应定义优先;这里不发布真实响应值。- HTTP 状态 / 最近观察日期: 200 / 2026-11-14
{
"additionalProperties": true,
"properties": {
"map_previews": {
"items": {},
"type": "array"
},
"pagination": {
"additionalProperties": true,
"properties": {
"next_page_token": {
"type": "string"
}
},
"type": "object"
},
"search_information": {
"additionalProperties": true,
"properties": {
"results_on_page": {
"type": "integer"
},
"total_results": {
"type": "integer"
}
},
"type": "object"
},
"search_metadata": {
"additionalProperties": true,
"properties": {
"created_at": {
"type": "string"
},
"id": {
"type": "string"
},
"processed_at": {
"type": "string"
},
"status": {
"type": "string"
},
"total_time_taken": {
"type": "number"
}
},
"type": "object"
},
"search_parameters": {
"additionalProperties": true,
"properties": {
"locale": {
"type": "string"
},
"num": {
"type": "integer"
},
"place_type": {
"type": "string"
},
"q": {
"type": "string"
},
"start": {
"type": "integer"
},
"tripadvisor_domain": {
"type": "string"
}
},
"type": "object"
},
"search_results": {
"items": {
"additionalProperties": true,
"properties": {
"description": {
"type": "string"
},
"detail_type": {
"type": "string"
},
"image": {
"additionalProperties": true,
"properties": {
"max_height": {
"type": "integer"
},
"max_width": {
"type": "integer"
},
"thumbnail": {
"type": "string"
},
"url_template": {
"type": "string"
}
},
"type": "object"
},
"link": {
"type": "string"
},
"location": {
"type": "string"
},
"max_rating": {
"type": "integer"
},
"place_id": {
"type": "string"
},
"position": {
"type": "integer"
},
"position_in_page": {
"type": "integer"
},
"rating": {
"type": "number"
},
"reviews": {
"type": "integer"
},
"thumbnail": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
费用与请求规则
公开参考价格:每次成功请求 $0.00015 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。翻页
- 把
aisa_pagination.next_cursor作为aisa_cursor(查询参数)传入即可获取下一页;aisa_pagination.has_more为 false 时停止。 - 响应头
X-AISA-Has-More与X-AISA-Next-Cursor返回相同的值。 - 游标是不透明值,请原样传回。
- 结果可能跨页重复,请按稳定的 ID 去重。
响应时间
- 通常 10 秒内返回。
授权
查询参数
响应
Normalized successful response