find_locstringआवश्यक
Search location, 1 to 500 characters.
https://api.sandbase.ai/v1/api/yelp/searchSearch Yelp businesses by keyword and location: name, rating, review count, price level, categories and address.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Search Yelp businesses by keyword and location: name, rating, review count, price level, categories and address.
curl -X POST "https://api.sandbase.ai/v1/api/yelp/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"find_desc": "coffee", "find_loc": "Austin, TX"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
find_loc | string | Yes | Search location, 1 to 500 characters. |
attrs | string | No | Comma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters. |
cflt | string | No | Yelp category identifier, such as coffee. |
find_desc | string | No | Business name, category, or search terms, up to 500 characters. |
l | string | No | Yelp map-bounds token, up to 1,024 characters. |
sortby | string | No | Result order. |
start | integer | No | Result offset from 0 through 10,000. |
timeout | number | No | 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 t |
yelp_domain | string | No | Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname. |
Flat price per call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/yelp/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"start": 0,
"sortby": "recommended",
"find_loc": "Austin, TX",
"find_desc": "coffee"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
find_locstringआवश्यकSearch location, 1 to 500 characters.
find_descstringBusiness name, category, or search terms, up to 500 characters.
yelp_domainstringSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
lstringYelp map-bounds token, up to 1,024 characters.
cfltstringYelp category identifier, such as coffee.
sortbystringResult order.
डिफ़ॉल्ट: "recommended"
संभावित मान: recommended, rating, review_count
attrsstringComma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
startintegerResult offset from 0 through 10,000.
डिफ़ॉल्ट: 0
timeoutnumberOptional 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 an
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Yelp Business Searchयह API Yelp | $0.00015 प्रति कॉल | JSON |
Yelp | $0.01 प्रति कॉल | JSON |
Yelp | $0.00015 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/yelp/search पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00015 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
आवश्यक: find_loc (string)। वैकल्पिक: find_desc (string), yelp_domain (string), l (string), cflt (string), sortby (recommended, rating, review_count में से एक) और attrs (string) और 2 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। Yelp Business Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Yelp API access के लिए आवेदन करने की आवश्यकता नहीं है।