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.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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キーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
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の保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Yelp Business Searchこの API Yelp | $0.00015 / 回 | JSON |
Yelp | $0.01 / 回 | JSON |
Yelp | $0.00015 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/yelp/search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.00015。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: find_loc (string)。 任意: find_desc (string), yelp_domain (string), l (string), cflt (string), sortby(recommended, rating, review_count のいずれか) と attrs (string) と他 2 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。
いいえ。Yelp Business Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Yelp の API アクセスを別途申請する必要はありません。