curl --request POST \
--url https://api.aisa.one/apis/v1/bing-maps/businesses/business \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ypid": "YNB7EDF204457059FB"
}
'import requests
url = "https://api.aisa.one/apis/v1/bing-maps/businesses/business"
payload = { "ypid": "YNB7EDF204457059FB" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ypid: 'YNB7EDF204457059FB'})
};
fetch('https://api.aisa.one/apis/v1/bing-maps/businesses/business', 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/bing-maps/businesses/business",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ypid' => 'YNB7EDF204457059FB'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bing-maps/businesses/business"
payload := strings.NewReader("{\n \"ypid\": \"YNB7EDF204457059FB\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bing-maps/businesses/business")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ypid\": \"YNB7EDF204457059FB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bing-maps/businesses/business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ypid\": \"YNB7EDF204457059FB\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"name": "Menu",
"url": "https://franklinbarbecue.com/menu"
},
"address": {
"city": "Austin",
"country": "US",
"full": "900 E 11th St, Austin, TX 78702",
"line": "900 E 11th St",
"neighborhood": null,
"postal_code": "78702",
"state": "TX"
},
"average_stay_minutes": 60,
"categories": [
"Barbecue"
],
"category": "Barbecue",
"category_path": "30000.30949.30963",
"hours": {
"closed_days": [
"Mon"
],
"days": [
{
"closed": false,
"day": "Tue",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Wed",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Thu",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Fri",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Sat",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Sun",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": true,
"day": "Mon",
"holiday_hours": false,
"ranges": []
}
]
},
"image_url": "https://www.bing.com/th/id/OLC.xiaJJiTR0OQAhA480x360?w=50&h=50&c=7&rs=1&qlt=80&cdv=1&pid=Local",
"latitude": 30.270132064819336,
"longitude": -97.73126220703125,
"maps_url": "https://www.bing.com/maps?ss=ypid.YNB7EDF204457059FB",
"name": "Franklin Barbecue",
"observed_at_ms": 1789435668169,
"open_status_text": "Closed. Opens tomorrow 11 AM",
"phone": "+1 512-653-1187",
"phone_e164": "+15126531187",
"price": null,
"rating": 4.5,
"rating_count": 6477,
"rating_source": "Yelp",
"source_url": "https://www.bing.com/maps/overlaybfpr?q=&filters=local_ypid%3A%22YNB7EDF204457059FB%22&count=1&first=0&setlang=en-US&cc=US",
"style_category": "Restaurant",
"website": "https://franklinbarbecue.com/",
"ypid": "YNB7EDF204457059FB"
}Business
One local business by its Bing ypid (from search): name, structured address, display and E.164 phone, website, coordinates, categories, aggregate rating with review count and source, current open-status sentence, and structured weekly opening hours (per day, 24h HH:MM ranges, all-day flag, closed days). Missing values are null; hours are null when Bing publishes none.
curl --request POST \
--url https://api.aisa.one/apis/v1/bing-maps/businesses/business \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ypid": "YNB7EDF204457059FB"
}
'import requests
url = "https://api.aisa.one/apis/v1/bing-maps/businesses/business"
payload = { "ypid": "YNB7EDF204457059FB" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ypid: 'YNB7EDF204457059FB'})
};
fetch('https://api.aisa.one/apis/v1/bing-maps/businesses/business', 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/bing-maps/businesses/business",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ypid' => 'YNB7EDF204457059FB'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bing-maps/businesses/business"
payload := strings.NewReader("{\n \"ypid\": \"YNB7EDF204457059FB\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bing-maps/businesses/business")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ypid\": \"YNB7EDF204457059FB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bing-maps/businesses/business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ypid\": \"YNB7EDF204457059FB\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"name": "Menu",
"url": "https://franklinbarbecue.com/menu"
},
"address": {
"city": "Austin",
"country": "US",
"full": "900 E 11th St, Austin, TX 78702",
"line": "900 E 11th St",
"neighborhood": null,
"postal_code": "78702",
"state": "TX"
},
"average_stay_minutes": 60,
"categories": [
"Barbecue"
],
"category": "Barbecue",
"category_path": "30000.30949.30963",
"hours": {
"closed_days": [
"Mon"
],
"days": [
{
"closed": false,
"day": "Tue",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Wed",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Thu",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Fri",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Sat",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": false,
"day": "Sun",
"holiday_hours": false,
"ranges": [
{
"all_day": false,
"close": "15:00",
"open": "11:00"
}
]
},
{
"closed": true,
"day": "Mon",
"holiday_hours": false,
"ranges": []
}
]
},
"image_url": "https://www.bing.com/th/id/OLC.xiaJJiTR0OQAhA480x360?w=50&h=50&c=7&rs=1&qlt=80&cdv=1&pid=Local",
"latitude": 30.270132064819336,
"longitude": -97.73126220703125,
"maps_url": "https://www.bing.com/maps?ss=ypid.YNB7EDF204457059FB",
"name": "Franklin Barbecue",
"observed_at_ms": 1789435668169,
"open_status_text": "Closed. Opens tomorrow 11 AM",
"phone": "+1 512-653-1187",
"phone_e164": "+15126531187",
"price": null,
"rating": 4.5,
"rating_count": 6477,
"rating_source": "Yelp",
"source_url": "https://www.bing.com/maps/overlaybfpr?q=&filters=local_ypid%3A%22YNB7EDF204457059FB%22&count=1&first=0&setlang=en-US&cc=US",
"style_category": "Restaurant",
"website": "https://franklinbarbecue.com/",
"ypid": "YNB7EDF204457059FB"
}请求规范
- 方法与路径: POST /apis/v1/bing-maps/businesses/business
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/bing-maps/businesses/business
{
"operationId": "bing-maps.businesses.business",
"method": "POST",
"path": "/apis/v1/bing-maps/businesses/business",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"ypid": "YNB7EDF204457059FB"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"ypid": {
"description": "Bing business id returned by search, e.g. \"YNB7EDF204457059FB\". Pattern: ^(ypid:)?YN[0-9A-Fa-f]{4,38}$.",
"type": "string"
}
},
"required": [
"ypid"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
One local business by its Bing ypid (from search): name, structured address, display and E.164 phone, website, coordinates, categories, aggregate rating with review count and source, current open-status sentence, and structured weekly opening hours (per day, 24h HH:MM ranges, all-day flag, closed days). Missing values are null; hours are null when Bing publishes none.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
action | object | |
address | object | |
average_stay_minutes | number | |
categories | string[] | |
category | string | |
category_path | string | |
hours | object | |
image_url | string | |
latitude | number | |
longitude | number | |
maps_url | string | |
name | string | |
observed_at_ms | number | |
open_status_text | string | e.g. "Closed. Opens tomorrow 11 AM" or "Open 24 hours". |
phone | string | Phone as Bing prints it, e.g. "+1 512-653-1187". |
phone_e164 | string | |
price | object | Bing PriceInfo when published, otherwise null. |
rating | number | Rating exactly as Bing reports it; scale depends on rating_source (for example Yelp versus ZocDoc). |
rating_count | number | |
rating_source | string | |
source_url | string | |
style_category | string | |
website | string | |
ypid | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.