Search Yelp businesses
curl --request GET \
--url https://api.aisa.one/apis/v1/yelp/business-search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/yelp/business-search"
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/yelp/business-search', 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/yelp/business-search",
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/yelp/business-search"
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/yelp/business-search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/yelp/business-search")
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{
"ads_results": [
{
"actions": [
{
"link": "<string>",
"title": "<string>"
}
],
"address": "<string>",
"alias": "<string>",
"block_position": "<string>",
"button": {
"link": "<string>",
"text": "<string>"
},
"categories": [
{
"link": "<string>",
"title": "<string>"
}
],
"features": [
"<string>"
],
"highlights": [
"<string>"
],
"link": "<string>",
"neighborhoods": [
"<string>"
],
"phone": "<string>",
"place_id": "<string>",
"price": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"service_options": {
"outdoor_dining": true
},
"snippet": "<string>",
"tags": [
"<string>"
],
"thumbnail": "<string>",
"title": "<string>"
}
],
"faqs": [
{
"question": "<string>"
}
],
"filters": {
"features": [
{
"selected": true,
"text": "<string>",
"value": "<string>"
}
],
"price": [
{
"text": "<string>",
"value": "<string>"
}
]
},
"organic_results": [
{
"address": "<string>",
"alias": "<string>",
"categories": [
{
"link": "<string>",
"title": "<string>"
}
],
"city": "<string>",
"country": "<string>",
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"link": "<string>",
"neighborhoods": [
"<string>"
],
"phone": "<string>",
"place_id": "<string>",
"position": 123,
"postal_code": "<string>",
"price": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"snippet": "<string>",
"state": "<string>",
"thumbnail": "<string>",
"title": "<string>"
}
],
"pagination": {
"current": 123
},
"related_links": [
{
"title": "<string>"
}
],
"search_information": {
"location": {
"display": "<string>"
},
"page_title": "<string>",
"provider_domain": "<string>",
"query": "<string>",
"results_per_page": 123,
"start_result": 123,
"total_results": 123
},
"search_parameters": {
"attrs": "<string>",
"cflt": "<string>",
"find_desc": "<string>",
"find_loc": "<string>",
"sortby": "<string>",
"start": 123,
"yelp_domain": "<string>"
},
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "aisa_cursor"
}
}Yelp
Search Yelp businesses
Search Yelp businesses
GET
https://api.aisa.one
/
apis
/
v1
/
yelp
/
business-search
Search Yelp businesses
curl --request GET \
--url https://api.aisa.one/apis/v1/yelp/business-search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/yelp/business-search"
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/yelp/business-search', 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/yelp/business-search",
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/yelp/business-search"
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/yelp/business-search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/yelp/business-search")
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{
"ads_results": [
{
"actions": [
{
"link": "<string>",
"title": "<string>"
}
],
"address": "<string>",
"alias": "<string>",
"block_position": "<string>",
"button": {
"link": "<string>",
"text": "<string>"
},
"categories": [
{
"link": "<string>",
"title": "<string>"
}
],
"features": [
"<string>"
],
"highlights": [
"<string>"
],
"link": "<string>",
"neighborhoods": [
"<string>"
],
"phone": "<string>",
"place_id": "<string>",
"price": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"service_options": {
"outdoor_dining": true
},
"snippet": "<string>",
"tags": [
"<string>"
],
"thumbnail": "<string>",
"title": "<string>"
}
],
"faqs": [
{
"question": "<string>"
}
],
"filters": {
"features": [
{
"selected": true,
"text": "<string>",
"value": "<string>"
}
],
"price": [
{
"text": "<string>",
"value": "<string>"
}
]
},
"organic_results": [
{
"address": "<string>",
"alias": "<string>",
"categories": [
{
"link": "<string>",
"title": "<string>"
}
],
"city": "<string>",
"country": "<string>",
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"link": "<string>",
"neighborhoods": [
"<string>"
],
"phone": "<string>",
"place_id": "<string>",
"position": 123,
"postal_code": "<string>",
"price": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"snippet": "<string>",
"state": "<string>",
"thumbnail": "<string>",
"title": "<string>"
}
],
"pagination": {
"current": 123
},
"related_links": [
{
"title": "<string>"
}
],
"search_information": {
"location": {
"display": "<string>"
},
"page_title": "<string>",
"provider_domain": "<string>",
"query": "<string>",
"results_per_page": 123,
"start_result": 123,
"total_results": 123
},
"search_parameters": {
"attrs": "<string>",
"cflt": "<string>",
"find_desc": "<string>",
"find_loc": "<string>",
"sortby": "<string>",
"start": 123,
"yelp_domain": "<string>"
},
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "aisa_cursor"
}
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: GET /apis/v1/yelp/business-search
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/yelp/business-search - attrs: query; 可选
- cflt: query; 可选
- find_desc: query; 可选
- find_loc: query; 必填
- l: query; 可选
- sortby: query; 可选
- start: query; 可选
- timeout: query; 可选
- yelp_domain: query; 可选
- aisa_cursor: query; 可选
{
"operationId": "yelp.business-search",
"method": "GET",
"path": "/apis/v1/yelp/business-search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "attrs",
"required": false,
"schema": {
"type": "string",
"x-aisa-delimiter": ",",
"x-aisa-maxItems": 32,
"x-aisa-minItems": 1
}
},
{
"in": "query",
"name": "cflt",
"required": false,
"schema": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
{
"in": "query",
"name": "find_desc",
"required": false,
"schema": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "find_loc",
"required": true,
"schema": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "l",
"required": false,
"schema": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "sortby",
"required": false,
"schema": {
"enum": [
"rating",
"recommended",
"review_count"
],
"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": "yelp_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"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.00015 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。翻页
- 把
aisa_pagination.next_cursor作为aisa_cursor(查询参数)传入即可获取下一页;aisa_pagination.has_more为 false 时停止。 - 响应头
X-AISA-Has-More与X-AISA-Next-Cursor返回相同的值。 - 游标是不透明值,请原样传回。
- 结果可能跨页重复,请按稳定的 ID 去重。
授权
查询参数
响应
Normalized successful response