OpenTable अपने restaurant reviews के लिए कोई self-serve public API नहीं देता, Yelp Places API अब करीब $229 प्रति माह से शुरू होता है, और TripAdvisor Terra Discover लगभग $0.015 per entity चार्ज करता है। API Hop OpenTable API, TripAdvisor API और Yelp API के ज़रिए आप एक ही Bearer key से 7 synchronous GET endpoints $0.0003 per successful request (console catalog में 300 credits, यानी $0.30 प्रति 1,000 calls; reference docs में $0.00039/req baseline दर्ज है) पर call कर सकते हैं और 10 मिनट में Python से business search, menus और filtered reviews निकाल सकते हैं।
मुख्य बातें
- सात read-only
GETendpoints एक ही pay-as-you-go rate पर चलते हैं: इनमें OpenTable reviews (/v1/opentable/reviews), TripAdvisor search/place/reviews (3 endpoints) और Yelp search/place/reviews (3 endpoints) शामिल हैं, जिनकी catalog pricing $0.0003/req है और कोई monthly fee नहीं लगती। - Official APIs में entry barrier बहुत ऊंचा है: 2026-12-01 तक, OpenTable सिर्फ approved restaurants और POS partners को API access देता है। Yelp ने daily free tier बंद करके $229+/month plans लागू कर दिए हैं, और TripAdvisor ने पुराना Content API हटाकर Terra Discover शुरू किया है, जो one-time 1,000-entity allowance के बाद $15 प्रति 1,000 entities चार्ज करता है।
- OpenTable सिर्फ reviews endpoint देता है, इसलिए सही restaurant slug दें: API Hop पर
/v1/opentable/searchउपलब्ध नहीं है।/v1/opentable/reviewscall करने से पहले OpenTable URL या search results से restaurantidslug (जैसेcentral-park-boathouse-new-york-2) निकाल लें। - Pagination और geo parameters में strict mutual exclusion है: Yelp search पहले 200 results तक सीमित है (
(page - 1) * limit < 200) और इसमेंlocationया coordinates में से कोई एक देना ज़रूरी है, जबकि TripAdvisor काnext_page_token1 घंटे में expire हो जाता है और इसेoffsetके साथ नहीं भेजा जा सकता। - $10 minimum deposit से 33,333 hospitality API calls मिलते हैं: API Hop Pricing page पर $10 से top-up करें और non-expiring credits पाएं। बिना US credit card के भी USDT/USDC crypto, Brazil PIX और Indonesia QRIS/GoPay/DANA से पेमेंट हो जाता है।
2026 में Restaurant & Hospitality Review Data पाने के 5 तरीके
अपना collector लिखने से पहले, OpenTable, TripAdvisor और Yelp data निकालने के पांच मुख्य तरीकों की तुलना देखें (2026-12-01 को verified):
| विकल्प | कवर किए गए Platforms | Pricing और Entry Barrier | 10,000 Calls का अनुमानित खर्च | मुख्य सीमाएं |
|---|---|---|---|---|
| OpenTable Partner API | सिर्फ OpenTable | Partner/POS contract approval (OAuth 2.0) | सार्वजनिक नहीं | Independent developers या AI analytics teams के लिए self-serve signup नहीं |
| Yelp Places API (पूर्व Fusion) | सिर्फ Yelp | Monthly subscription $229/month से (~$5.91/1K overage) | $229.00+ | स्थायी free tier नहीं, कटे हुए review excerpts, और strict anti-caching शर्तें |
| TripAdvisor Terra Discover | सिर्फ TripAdvisor | पहले 1K पर $0.015/entity ($9–$15/1K; आजीवन 1,000 मुफ्त entities) | $90.00–$150.00 | पुराना Content API बंद; 10 QPS की सीमा और AI training की मनाही |
| SerpApi / Scraper Platforms | आंशिक (Yelp/TripAdvisor; अक्सर सीधे OpenTable reviews नहीं) | Monthly plans (SerpApi Starter $25/1K, Developer $75/5K) | $100.00–$250.00 | बचे हुए monthly quotas महीने के अंत में खत्म हो जाते हैं; अलग-अलग actors चाहिए |
| API Hop Hospitality Data | OpenTable + TripAdvisor + Yelp (7 endpoints) | Pure prepaid pay-as-you-go: $0.0003/req ($0/mo) | $3.00 | सिर्फ read-only JSON; valid खाली responses भी bill होते हैं; 60s timeout, auto-retry नहीं |
नोट: $0.0003/req catalog rate (300 credits) 2026-12-01 के snapshot पर आधारित है, जबकि endpoint reference docs में $0.00039/req default baseline का ज़िक्र है। असली चार्ज आपके live console catalog और account overrides के हिसाब से कटता है। Multi-page scraping patterns के लिए हमारा Walmart API Python guide भी देखें।
ज़रूरी तैयारियां
Examples चलाने से पहले ये तीन चीज़ें तैयार रखें:
- API Hop API Key: API Hop Pricing page पर account बनाएं और Bearer key generate करें। Credits $10 से शुरू होते हैं (कभी expire नहीं होते, कोई monthly fee नहीं) और इनके लिए US credit card या enterprise KYB की ज़रूरत नहीं है। पेमेंट के लिए USDT/USDC crypto, Brazil PIX और Indonesia QRIS/GoPay/DANA सपोर्टेड हैं।
- Local Environment:
requestspackage के साथ Python 3.9+, या टर्मिनल मेंcurl। - Endpoint Contracts: OpenTable overview, TripAdvisor reference और Yelp reference बुकमार्क कर लें।
pip install -U requests
export APIHOP_API_KEY="sk-your-apihop-key"
Quickstart: 2 मिनट में पहले Reviews निकालें
सभी सातों endpoints सिर्फ GET query parameters स्वीकार करते हैं (empty body के साथ) और html, output, json_restrictor या no_cache को reject करते हैं। पहले curl से OpenTable reviews टेस्ट करें ($0.0003):
curl --get "https://api.apihop.ai/v1/opentable/reviews" \
-H "Authorization: Bearer $APIHOP_API_KEY" \
--data-urlencode "id=central-park-boathouse-new-york-2" \
--data-urlencode "page=1"
अब Yelp search पर 10 लाइन का Python lookup चलाएं ($0.0003):
import os
import requests
resp = requests.get(
"https://api.apihop.ai/v1/yelp/search",
headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
params={"query": "coffee shop", "location": "Austin, TX", "limit": 5},
timeout=60,
)
resp.raise_for_status()
payload = resp.json()
print("success:", payload.get("success"), "keys:", list(payload["data"]["content"].keys()))
Expected output: success: True keys: [...]। इसमें upstream JSON payload और numeric precision बिना किसी बदलाव के data.content के अंदर सुरक्षित रहती है।
Step-by-Step Guide: सात Endpoints और Parameter Rules
नीचे दी गई टेबल में सभी सात live endpoints का सारांश है (catalog price $0.0003/req, 2026-12-01 को verified):
| Platform | Endpoint | काम | ज़रूरी Params | Pagination और मुख्य Filters |
|---|---|---|---|---|
| OpenTable | GET /v1/opentable/reviews | Restaurant reviews लाएं | id (slug) | page (1–100), device, zero_trace |
| TripAdvisor | GET /v1/tripadvisor/search | Places और dining खोजें | query | location, ssrc (a/r/A/h/g/f), limit (1–100), offset XOR next_page_token |
| TripAdvisor | GET /v1/tripadvisor/place | Place profile लाएं | id (int या canonical URL) | language, tripadvisor_domain, device, zero_trace |
| TripAdvisor | GET /v1/tripadvisor/reviews | Filtered reviews निकालें | id (int या canonical URL) | limit (1–20), rating (1..5), month (1..12), sort_by, type_of_visit |
| Yelp | GET /v1/yelp/search | Local businesses खोजें | location XOR (latitude, longitude) | query, page XOR start, (page-1)*limit < 200, cflt, attrs |
| Yelp | GET /v1/yelp/place | Business details और menu | id (alias) | full_menu, menu_name (full_menu=true ज़रूरी), business_alert |
| Yelp | GET /v1/yelp/reviews | Recommended और hidden reviews | id (alias) | page XOR start XOR not_recommended_start, rating, not_recommended |
Step 1: OpenTable Restaurant Reviews को Paginate करें
/v1/opentable/reviews को ^[A-Za-z0-9][A-Za-z0-9_-]{0,255}$ से मैच करने वाला verified slug पास करें। खाली array मिलते ही लूप रोक देने से बेवजह के page calls नहीं लगते:
import os
import requests
API_KEY = os.environ["APIHOP_API_KEY"]
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
def fetch_opentable_reviews(restaurant_id: str, max_pages: int = 2) -> list:
reviews = []
for page in range(1, max_pages + 1):
r = requests.get(
"https://api.apihop.ai/v1/opentable/reviews",
headers=HEADERS,
params={"id": restaurant_id, "page": page, "zero_trace": "true"},
timeout=60,
)
r.raise_for_status()
content = r.json().get("data", {}).get("content", {})
items = content.get("reviews") or content.get("results") or []
if not items:
break
reviews.extend(items)
return reviews
if __name__ == "__main__":
data = fetch_opentable_reviews("central-park-boathouse-new-york-2", max_pages=2)
print(f"Fetched {len(data)} OpenTable reviews")
Expected output: Fetched <N> OpenTable reviews। अगर page 1 खाली आता है, तो loop बिना page 2 पर चार्ज कटे तुरंत रुक जाता है।
Step 2: TripAdvisor Places खोजें और Low-Star Reviews फिल्टर करें
नतीजों को सिर्फ restaurants तक सीमित रखने के लिए /v1/tripadvisor/search में ssrc=r इस्तेमाल करें, फिर numeric id निकालकर rating="1,2" के साथ /v1/tripadvisor/reviews को भेजें:
import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}
search_resp = requests.get(
"https://api.apihop.ai/v1/tripadvisor/search",
headers=HEADERS,
params={"query": "steakhouse", "location": "Austin, TX", "ssrc": "r", "limit": 5},
timeout=60,
)
search_resp.raise_for_status()
places = search_resp.json()["data"]["content"].get("results") or []
print("TripAdvisor candidates:", len(places))
if places:
place_id = str(places[0].get("id") or places[0].get("location_id") or "")
if place_id.isdigit():
rev_resp = requests.get(
"https://api.apihop.ai/v1/tripadvisor/reviews",
headers=HEADERS,
params={
"id": place_id,
"rating": "1,2",
"sort_by": "newest",
"limit": 20,
},
timeout=60,
)
rev_resp.raise_for_status()
rev_items = rev_resp.json()["data"]["content"].get("results") or []
print("Low-rating reviews fetched:", len(rev_items))
Expected output में candidate count और मिले हुए 1–2 star reviews की गिनती दिखती है। ध्यान रखें कि /v1/tripadvisor/reviews में limit अधिकतम 20 है, जबकि /v1/tripadvisor/search में 100 तक मिलती है।
Step 3: Yelp Menus, Alerts और Filtered Reviews निकालें
पूरे menu structure के लिए /v1/yelp/place को full_menu=true के साथ call करें, और star rating के हिसाब से फिल्टर करने या unrecommended reviews (not_recommended=true) लाने के लिए /v1/yelp/reviews चलाएं:
import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}
ALIAS = "halcyon-austin-2"
place_resp = requests.get(
"https://api.apihop.ai/v1/yelp/place",
headers=HEADERS,
params={"id": ALIAS, "full_menu": "true", "business_alert": "true"},
timeout=60,
)
place_resp.raise_for_status()
rev_resp = requests.get(
"https://api.apihop.ai/v1/yelp/reviews",
headers=HEADERS,
params={"id": ALIAS, "sort_by": "newest", "rating": "1,2,3", "limit": 20},
timeout=60,
)
rev_resp.raise_for_status()
print("Place status OK; reviews keys:", list(rev_resp.json()["data"]["content"].keys()))
Expected output में place confirmation और review payload की top-level keys प्रिंट होती हैं। जब not_recommended=true इस्तेमाल करें, तो page और start हटा दें और pagination सिर्फ not_recommended_start से करें।
Complete Working Example: Cross-Platform Review Aggregator
यह पूरा Python script OpenTable, TripAdvisor और Yelp को एक ही collector में जोड़ता है। इसमें 429 और 5xx responses के लिए exponential backoff लगा है, जबकि client validation errors (400/401/402/403) को कभी retry नहीं किया जाता:
import json
import os
import time
import requests
BASE_URL = "https://api.apihop.ai"
API_KEY = os.environ["APIHOP_API_KEY"]
def call_api(path: str, params: dict, max_retries: int = 2) -> dict:
headers = {"Authorization": f"Bearer {API_KEY}"}
for attempt in range(max_retries + 1):
resp = requests.get(f"{BASE_URL}{path}", headers=headers, params=params, timeout=60)
if resp.status_code == 200:
return resp.json()
if resp.status_code in (429, 500, 502, 503, 504) and attempt < max_retries:
wait = 2 ** (attempt + 1)
time.sleep(wait)
continue
req_id = resp.headers.get("X-Request-Id", "unknown")
raise RuntimeError(f"HTTP {resp.status_code} on {path} (req_id={req_id}): {resp.text[:200]}")
raise RuntimeError("Exhausted retries")
def collect_restaurant_bundle(opentable_id: str, tripadvisor_id: str, yelp_alias: str) -> dict:
ot = call_api("/v1/opentable/reviews", {"id": opentable_id, "page": 1})
ta = call_api("/v1/tripadvisor/reviews", {"id": tripadvisor_id, "limit": 20, "sort_by": "newest"})
yp = call_api("/v1/yelp/reviews", {"id": yelp_alias, "limit": 20, "sort_by": "newest"})
return {
"opentable": ot.get("data", {}).get("content", {}),
"tripadvisor": ta.get("data", {}).get("content", {}),
"yelp": yp.get("data", {}).get("content", {}),
}
if __name__ == "__main__":
bundle = collect_restaurant_bundle(
opentable_id="central-park-boathouse-new-york-2",
tripadvisor_id="27936245",
yelp_alias="halcyon-austin-2",
)
print(json.dumps({k: list(v.keys())[:5] for k, v in bundle.items()}, ensure_ascii=False))
Expected output तीनों platforms की top-level JSON keys दिखाता है और किसी भी failed call पर तेज़ debugging के लिए X-Request-Id लॉग करता है।
Error Handling
सभी requests 60 सेकंड के बाद timeout हो जाते हैं और इनमें कोई auto-retry या duplicate upstream billing नहीं होती:
| HTTP Status | मतलब | Bill होगा? | क्या करें |
|---|---|---|---|
200 OK | सफल (खाली results: [] सहित) | हां (1 call) | data.content को parse करें; खाली होने पर pagination loop रोक दें |
400 Bad Request | गलत parameter या mutual exclusion का उल्लंघन | नहीं (hold रिलीज़) | page/start, location/lat-lng, या id regex ठीक करें |
401 Unauthorized | Bearer key गायब या अमान्य | नहीं | APIHOP_API_KEY और header syntax जांचें |
402 Payment Required | Account balance कम है | नहीं | API Hop Pricing page पर credits top-up करें |
403 Forbidden | Key को इस endpoint की अनुमति नहीं | नहीं | Console permissions और gateway status चेक करें |
405 Method Not Allowed | GET के अलावा कोई अन्य method भेजा गया | नहीं | खाली body के साथ GET query params का उपयोग करें |
429 Too Many Requests | Concurrency या rate limit पूरी हो गई | नहीं (hold रिलीज़) | Backoff (2s, 4s) लगाएं और worker concurrency घटाएं |
5xx / 60s Timeout | Upstream या gateway error | नहीं (hold रिलीज़) | 1–2 बार retry करें और X-Request-Id लॉग करें |
Common Issues और ध्यान देने वाली बातें
- API Hop पर OpenTable का search endpoint नहीं है:
/v1/opentable/reviewsको सख्ती से^[A-Za-z0-9][A-Za-z0-9_-]{0,255}$वाला slug चाहिए। Batch review pulls से पहले OpenTable URLs या search results से सही slugs निकाल लें। - Yelp search 200 businesses पर रुक जाता है:
/v1/yelp/searchमें(page - 1) * limit < 200औरstart <= 199लागू होता है (limit=20पर अधिकतम 10 pages)। घने शहरों के लिए bounding boxes (l=g:west,south,east,north) से search को बांटें। - TripAdvisor
next_page_token1 घंटे में expire होता है और parameters लॉक रखता है: Token pages के बीच वही account,device,limitऔर filters रखें, औरnext_page_tokenके साथ कभीoffsetन भेजें। - Unsupported query flags तुरंत
400ट्रिगर करते हैं: इन सातों endpoints पर कभी भीhtml,output,json_restrictorयाno_cacheन भेजें। - Empty lookups पर भी bill बनता है: अगर upstream site पर query सही से चलती है और शून्य reviews या
location_not_found: trueआता है, तो वह एक successful billed request मानी जाती है। पहलेlimit=1से छोटे batches टेस्ट करें।
Cost Estimation
$0.0003 per successful request के catalog rate से अनुमान (reference docs में $0.00039/req तुलना रेंज, 2026-12-01 को verified):
- Scenario A: Monthly competitor tracking (TripAdvisor और Yelp पर 100 restaurants, हर एक के 5 review pages)
- Formula:
100 venues × (1 TA search + 5 TA review pages + 1 Yelp place + 5 Yelp review pages) = 1,200 requests - API Hop Cost:
1,200 × $0.0003 = $0.36($0.00039/req baseline पर $0.468), जो Yelp Places API के $229/month न्यूनतम खर्च से बेहद कम है।
- Formula:
- Scenario B: बड़े पैमाने पर OpenTable sentiment dataset (500 venues × 4 pages = 2,000 requests)
- Formula:
2,000 × $0.0003 = $0.60($0.00039/req पर $0.78)। - इन 2,000 pages को GPT-6 Luna ($0.03/$0.15 per 1M tokens) से summarize करने में $0.15 से कम खर्च आता है, जिससे पूरी end-to-end pipeline $1.00 से नीचे रहती है।
- Formula:
आगे क्या देखें
- OpenTable search endpoint जुड़ने की संभावना: भविष्य में venue search route आने पर बाहर से OpenTable restaurant slugs जुटाने की ज़रूरत खत्म हो जाएगी।
- Yelp और TripAdvisor पर page-size या anti-bot बदलाव: फिलहाल TripAdvisor reviews की सीमा 20 items/page और Yelp की 100 items/page है। Production batch loops बदलने से पहले limits चेक करते रहें।
- Review sources के बीच entity deduplication: TripAdvisor, Yelp और Google Maps records मिलाते समय venues को coordinates और normalized street address से match करें।
FAQ
क्या OpenTable का कोई official public reviews API है?
नहीं। 2026-12-01 तक, OpenTable restaurant reviews के लिए कोई self-serve public API नहीं देता। Official endpoints सिर्फ partner और POS agreements के पीछे हैं। आप API Hop OpenTable API पर GET /v1/opentable/reviews से public OpenTable reviews निकाल सकते हैं।
TripAdvisor और Yelp APIs की pricing क्या है, और क्या free tier मिलता है?
Yelp ने अपना daily free tier बंद कर दिया है और अब Yelp Places API करीब $229/month से शुरू होता है। TripAdvisor Terra Discover एक बार का 1,000-entity allowance देता है, फिर $0.009–$0.015 per entity चार्ज करता है। API Hop कोई permanent free tier नहीं देता, लेकिन इसमें monthly fee भी शून्य है। आप API Hop Pricing page से $10 prepaid deposit शुरू कर सकते हैं, जिसमें non-expiring credits के साथ $0.0003/req पर 33,333 requests मिलते हैं।
/v1/opentable/reviews के लिए id कहां से मिलेगा?
OpenTable restaurant URL से alphanumeric restaurant slug निकालें (जैसे central-park-boathouse-new-york-2, जो ^[A-Za-z0-9][A-Za-z0-9_-]{0,255}$ से मैच करता हो)। अभी /v1/opentable/search endpoint नहीं है, इसलिए पहले search engines या मौजूदा restaurant directories से slugs इकट्ठा करें।
क्या TripAdvisor id एक number होना चाहिए या पूरा URL?
दोनों फॉर्मेट चलते हैं। /v1/tripadvisor/place और /v1/tripadvisor/reviews दोनों 2147483647 तक का positive integer ID या बिना query string, fragment, port और credentials वाला canonical HTTPS Tripadvisor place URL स्वीकार करते हैं।
क्या मैं Yelp menus और unrecommended reviews निकाल सकता हूं?
हां। Menu data के लिए GET /v1/yelp/place को full_menu=true भेजें, और filtered reviews के लिए GET /v1/yelp/reviews में not_recommended=true के साथ not_recommended_start पास करें (ऐसा करते समय page और start हटा दें)।
क्या बिना US credit card के ये APIs इस्तेमाल किए जा सकते हैं?
हां। आप बिना US credit card या business verification के USDT/USDC crypto, Brazil PIX या Indonesia QRIS/GoPay/DANA से API Hop Pricing page पर $10 से account fund कर सकते हैं।
Hospitality review pipelines के साथ कौन-सी अन्य guides उपयोगी हैं?
Reviews निकालने के बाद आप उसी balance पर सस्ते LLMs से sentiment classification चला सकते हैं, या ऐसे ही synchronous pagination patterns के लिए हमारे Google Scholar & Patents API guide और Google Flights API guide देख सकते हैं।
Verification note: Endpoint paths, regex constraints, $0.0003/req catalog price (300 credits) और $0.00039/req reference baseline को 2026-12-01 को live API Hop catalog और docs पर verify किया गया है। Official Yelp और TripAdvisor rates 2026-12-01 की प्रकाशित pricing दर्शाते हैं।