Dokumentasi API Hop
Referensi TripAdvisor
Cari tempat Tripadvisor dan ambil detail serta ulasannya.
Batas konkurensi
AI dan Data masing-masing berbagi kumpulan slot serentak untuk seluruh akun: bawaan 5 AI / 2 Data, sesuai langganan. Batas khusus endpoint tetap tunduk pada batas kategori. Mencapai salah satu batas mengembalikan HTTP 429. Tugas asinkron memakai slot hingga eksekusi selesai.
GET /v1/tripadvisor/search GET /v1/tripadvisor/place GET /v1/tripadvisor/reviews Cari tempat Tripadvisor dan ambil detail serta ulasannya.
Autentikasi dan biaya
Harga bawaan adalah $0.0003 (300 credits) per permintaan berhasil. Gunakan kunci API API Hop. Akses bergantung pada gateway aktif dan izin. Lihat katalog dan akun untuk harga per permintaan berhasil; harga khusus akun diutamakan. Hasil kosong yang berhasil tetap dikenai biaya. Kegagalan melepas cadangan. Batas waktu 60 detik, tanpa pengulangan atau paginasi otomatis. Kegagalan penyelesaian tidak mengulang permintaan pemasok.
Authorization: Bearer YOUR_API_KEYTripadvisor: Cari tempat
GET https://api.apihop.ai/v1/tripadvisor/search
Parameter
| Kolom | Tipe | Batas | Contoh |
|---|---|---|---|
query | string | Teks pencarian; query: REQUIRED | restaurants in Austin |
location | string | Lokasi pencarian; location: optional | - |
language | string | Bahasa; language: optional | - |
next_page_token | string | Token halaman berikutnya; next_page_token: optional; UTF-8 bytes: 24576 | - |
limit | integer | Batas hasil; limit: optional; min: 1; max: 100 | 1 |
device | string | Perangkat; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Jangan arsipkan respons; zero_trace: optional | true |
latitude | number | Lintang; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | Bujur; longitude: optional; min: -180; max: 180 | -180 |
ssrc | string | Cakupan pencarian; ssrc: optional; a, r, A, h, g, f | a |
offset | integer | Offset hasil; offset: optional; min: 0; max: 1000 | 0 |
tripadvisor_domain | string | Domain regional Tripadvisor; tripadvisor_domain: optional; ar.tripadvisor.com, cn.tripadvisor.com, en.tripadvisor.com.hk, fr.tripadvisor.be, fr.tripadvisor.ca, fr.tripadvisor.ch, it.tripadvisor.ch, no.tripadvisor.com, th.tripadvisor.com, tripadvisor.at, tripadvisor.be, tripadvisor.ca, tripadvisor.ch, tripadvisor.cl, tripadvisor.co, tripadvisor.co.id, tripadvisor.co.il, tripadvisor.co.kr, tripadvisor.co.nz, tripadvisor.co.uk, tripadvisor.co.za, tripadvisor.com, tripadvisor.com.ar, tripadvisor.com.au, tripadvisor.com.br, tripadvisor.com.eg, tripadvisor.com.gr, tripadvisor.com.hk, tripadvisor.com.mx, tripadvisor.com.my, tripadvisor.com.pe, tripadvisor.com.ph, tripadvisor.com.sg, tripadvisor.com.tr, tripadvisor.com.tw, tripadvisor.com.ve, tripadvisor.com.vn, tripadvisor.de, tripadvisor.dk, tripadvisor.es, tripadvisor.fr, tripadvisor.ie, tripadvisor.in, tripadvisor.it, tripadvisor.jp, tripadvisor.nl, tripadvisor.pt, tripadvisor.ru, tripadvisor.se, www.tripadvisor.at, www.tripadvisor.be, www.tripadvisor.ca, www.tripadvisor.ch, www.tripadvisor.cl, www.tripadvisor.co, www.tripadvisor.co.id, www.tripadvisor.co.il, www.tripadvisor.co.kr, www.tripadvisor.co.nz, www.tripadvisor.co.uk, www.tripadvisor.co.za, www.tripadvisor.com, www.tripadvisor.com.ar, www.tripadvisor.com.au, www.tripadvisor.com.br, www.tripadvisor.com.eg, www.tripadvisor.com.gr, www.tripadvisor.com.hk, www.tripadvisor.com.mx, www.tripadvisor.com.my, www.tripadvisor.com.pe, www.tripadvisor.com.ph, www.tripadvisor.com.sg, www.tripadvisor.com.tr, www.tripadvisor.com.tw, www.tripadvisor.com.ve, www.tripadvisor.com.vn, www.tripadvisor.de, www.tripadvisor.dk, www.tripadvisor.es, www.tripadvisor.fr, www.tripadvisor.ie, www.tripadvisor.in, www.tripadvisor.it, www.tripadvisor.jp, www.tripadvisor.nl, www.tripadvisor.pt, www.tripadvisor.ru, www.tripadvisor.se | ar.tripadvisor.com |
Validasi
Hanya parameter kueri, tanpa isi permintaan. Nilai tak dikenal, berulang, kosong, atau tidak valid ditolak. Hanya JSON; tanpa paginasi atau percobaan ulang otomatis. Aturan: AND = keduanya, OR = atau, XOR = tepat satu, NOT = dilarang, => = memerlukan.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeNOT (next_page_token AND offset); next_page_token: opaque, expires after 1 hour; keep account, filters, device and limit unchanged
Contoh
curl --get "https://api.apihop.ai/v1/tripadvisor/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=restaurants in Austin"Tripadvisor: Ambil detail tempat
GET https://api.apihop.ai/v1/tripadvisor/place
Parameter
| Kolom | Tipe | Batas | Contoh |
|---|---|---|---|
id | string | ID tempat; id: REQUIRED | 27936245 |
language | string | Bahasa; language: optional | - |
device | string | Perangkat; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Jangan arsipkan respons; zero_trace: optional | true |
tripadvisor_domain | string | Domain regional Tripadvisor; tripadvisor_domain: optional; ar.tripadvisor.com, cn.tripadvisor.com, en.tripadvisor.com.hk, fr.tripadvisor.be, fr.tripadvisor.ca, fr.tripadvisor.ch, it.tripadvisor.ch, no.tripadvisor.com, th.tripadvisor.com, tripadvisor.at, tripadvisor.be, tripadvisor.ca, tripadvisor.ch, tripadvisor.cl, tripadvisor.co, tripadvisor.co.id, tripadvisor.co.il, tripadvisor.co.kr, tripadvisor.co.nz, tripadvisor.co.uk, tripadvisor.co.za, tripadvisor.com, tripadvisor.com.ar, tripadvisor.com.au, tripadvisor.com.br, tripadvisor.com.eg, tripadvisor.com.gr, tripadvisor.com.hk, tripadvisor.com.mx, tripadvisor.com.my, tripadvisor.com.pe, tripadvisor.com.ph, tripadvisor.com.sg, tripadvisor.com.tr, tripadvisor.com.tw, tripadvisor.com.ve, tripadvisor.com.vn, tripadvisor.de, tripadvisor.dk, tripadvisor.es, tripadvisor.fr, tripadvisor.ie, tripadvisor.in, tripadvisor.it, tripadvisor.jp, tripadvisor.nl, tripadvisor.pt, tripadvisor.ru, tripadvisor.se, www.tripadvisor.at, www.tripadvisor.be, www.tripadvisor.ca, www.tripadvisor.ch, www.tripadvisor.cl, www.tripadvisor.co, www.tripadvisor.co.id, www.tripadvisor.co.il, www.tripadvisor.co.kr, www.tripadvisor.co.nz, www.tripadvisor.co.uk, www.tripadvisor.co.za, www.tripadvisor.com, www.tripadvisor.com.ar, www.tripadvisor.com.au, www.tripadvisor.com.br, www.tripadvisor.com.eg, www.tripadvisor.com.gr, www.tripadvisor.com.hk, www.tripadvisor.com.mx, www.tripadvisor.com.my, www.tripadvisor.com.pe, www.tripadvisor.com.ph, www.tripadvisor.com.sg, www.tripadvisor.com.tr, www.tripadvisor.com.tw, www.tripadvisor.com.ve, www.tripadvisor.com.vn, www.tripadvisor.de, www.tripadvisor.dk, www.tripadvisor.es, www.tripadvisor.fr, www.tripadvisor.ie, www.tripadvisor.in, www.tripadvisor.it, www.tripadvisor.jp, www.tripadvisor.nl, www.tripadvisor.pt, www.tripadvisor.ru, www.tripadvisor.se | ar.tripadvisor.com |
Validasi
Hanya parameter kueri, tanpa isi permintaan. Nilai tak dikenal, berulang, kosong, atau tidak valid ditolak. Hanya JSON; tanpa paginasi atau percobaan ulang otomatis. Aturan: AND = keduanya, OR = atau, XOR = tepat satu, NOT = dilarang, => = memerlukan.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id: positive integer string <= 2147483647 OR canonical HTTPS Tripadvisor URL; no query, fragment, credentials or port
Contoh
curl --get "https://api.apihop.ai/v1/tripadvisor/place" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=27936245"Tripadvisor: Ambil ulasan
GET https://api.apihop.ai/v1/tripadvisor/reviews
Parameter
| Kolom | Tipe | Batas | Contoh |
|---|---|---|---|
id | string | ID tempat; id: REQUIRED | 27936245 |
language | string | Bahasa; language: optional | - |
next_page_token | string | Token halaman berikutnya; next_page_token: optional; UTF-8 bytes: 24576 | - |
limit | integer | Batas hasil; limit: optional; min: 1; max: 20 | 1 |
sort_by | string | Urutan; sort_by: optional; recommended, newest, most_recent, detailed_review | recommended |
device | string | Perangkat; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Jangan arsipkan respons; zero_trace: optional | true |
rating | string | Bintang dipisahkan koma; rating: optional | - |
month | string | Bulan dipisahkan koma; month: optional | - |
offset | integer | Offset hasil; offset: optional; min: 0; max: 100000 | 0 |
tripadvisor_domain | string | Domain regional Tripadvisor; tripadvisor_domain: optional; ar.tripadvisor.com, cn.tripadvisor.com, en.tripadvisor.com.hk, fr.tripadvisor.be, fr.tripadvisor.ca, fr.tripadvisor.ch, it.tripadvisor.ch, no.tripadvisor.com, th.tripadvisor.com, tripadvisor.at, tripadvisor.be, tripadvisor.ca, tripadvisor.ch, tripadvisor.cl, tripadvisor.co, tripadvisor.co.id, tripadvisor.co.il, tripadvisor.co.kr, tripadvisor.co.nz, tripadvisor.co.uk, tripadvisor.co.za, tripadvisor.com, tripadvisor.com.ar, tripadvisor.com.au, tripadvisor.com.br, tripadvisor.com.eg, tripadvisor.com.gr, tripadvisor.com.hk, tripadvisor.com.mx, tripadvisor.com.my, tripadvisor.com.pe, tripadvisor.com.ph, tripadvisor.com.sg, tripadvisor.com.tr, tripadvisor.com.tw, tripadvisor.com.ve, tripadvisor.com.vn, tripadvisor.de, tripadvisor.dk, tripadvisor.es, tripadvisor.fr, tripadvisor.ie, tripadvisor.in, tripadvisor.it, tripadvisor.jp, tripadvisor.nl, tripadvisor.pt, tripadvisor.ru, tripadvisor.se, www.tripadvisor.at, www.tripadvisor.be, www.tripadvisor.ca, www.tripadvisor.ch, www.tripadvisor.cl, www.tripadvisor.co, www.tripadvisor.co.id, www.tripadvisor.co.il, www.tripadvisor.co.kr, www.tripadvisor.co.nz, www.tripadvisor.co.uk, www.tripadvisor.co.za, www.tripadvisor.com, www.tripadvisor.com.ar, www.tripadvisor.com.au, www.tripadvisor.com.br, www.tripadvisor.com.eg, www.tripadvisor.com.gr, www.tripadvisor.com.hk, www.tripadvisor.com.mx, www.tripadvisor.com.my, www.tripadvisor.com.pe, www.tripadvisor.com.ph, www.tripadvisor.com.sg, www.tripadvisor.com.tr, www.tripadvisor.com.tw, www.tripadvisor.com.ve, www.tripadvisor.com.vn, www.tripadvisor.de, www.tripadvisor.dk, www.tripadvisor.es, www.tripadvisor.fr, www.tripadvisor.ie, www.tripadvisor.in, www.tripadvisor.it, www.tripadvisor.jp, www.tripadvisor.nl, www.tripadvisor.pt, www.tripadvisor.ru, www.tripadvisor.se | ar.tripadvisor.com |
type_of_visit | string | Jenis kunjungan dipisahkan koma; type_of_visit: optional | - |
Validasi
Hanya parameter kueri, tanpa isi permintaan. Nilai tak dikenal, berulang, kosong, atau tidak valid ditolak. Hanya JSON; tanpa paginasi atau percobaan ulang otomatis. Aturan: AND = keduanya, OR = atau, XOR = tepat satu, NOT = dilarang, => = memerlukan.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id: positive integer string <= 2147483647 OR canonical HTTPS Tripadvisor URL; no query, fragment, credentials or portNOT (next_page_token AND offset); next_page_token: opaque, expires after 1 hour; keep account, filters, device and limit unchangedrating: distinct 1..5; month: distinct 1..12; type_of_visit: distinct /^[A-Za-z_]+$/; lists comma-separated
Contoh
curl --get "https://api.apihop.ai/v1/tripadvisor/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=27936245"Respons dan kesalahan
JSON asli dan presisi dipertahankan. Contoh hasil kosong berhasil. HTTP 400: masukan; 401: autentikasi; 402: saldo; 403: akses; 405: metode; 429: batas; 5xx: layanan. Simpan X-Request-Id.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}