idsarray필수
A list of unique identifiers for the location. The ids are valid only for 8 hours.
https://api.sandbase.ai/v1/api/brave/local-poisLocal POIs from Brave. Returns the official Brave API response unchanged.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns details for one or more local places (points of interest) from Brave, such as name, address, phone number, coordinates, opening hours, rating, photos and related web pages. It needs a list of location ids in the ids parameter.
coordinates and show their rating and photos.curl -X POST "https://api.sandbase.ai/v1/api/brave/local-pois" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids": ["loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA="]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | A list of unique identifiers for the location. The ids are valid only for 8 hours. |
search_lang | string | No | The search language preference. The 2 or more character language code for which the search results are provided. |
ui_lang | string | No | User interface language preferred in response. Usually of the format <language_code>-<country_code>. For more, see RFC 9110 . |
units | string | No | The measurement units. The following values are supported: metric - The standardized measurement system (km, celcius…) imperial - The British Imperial system of units (mile, fahrenheit…) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"results": [
{
"categories": [],
"contact": {
"telephone": "+12067805777"
},
"coordinates": [
47.60895
],
"family_friendly": true,
"id": "loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=",
"is_source_both": false,
"is_source_local": false,
"opening_hours": {
"current_day": [
{
"abbr_name": "Tue",
"closes": "17:00",
"full_name": "Tuesday",
"opens": "06:59"
}
],
"days": [
[
{
"abbr_name": "Mon",
"closes": "17:00",
"full_name": "Monday",
"opens": "06:59"
}
]
]
},
"pictures": {
"results": [
{
"original": "https://lh3.googleusercontent.com/p/AF1QipN6QS0pKXaJqJ7VUigWGEyXcjYJhKqayDx2TlVW…",
"src": "https://imgs.search.brave.com/XjGqFPcOkdFwsXjUb7-etFuMZCsudU6EnuAEzElKZ1Y/rs:fit…"
}
]
},
"postal_address": {
"displayAddress": "94 Pike St Top floor Suite 34, Seattle, WA 98101",
"type": "PostalAddress"
},
"profiles": [
{
"img": "https://imgs.search.brave.com/Ez_ahZzZ3ushkbmoJgmdHsAic0dvbVgEO80Y5igGQbA/rs:fit…",
"name": "storyville.com",
"type": "external",
"url": "https://storyville.com/pages/pike-place-market"
}
],
"provider_url": "https://storyville.com/pages/pike-place-market"
}
],
"type": "local_pois"
}
| Field | Meaning |
|---|---|
results[].title | Name of the place. |
results[].postal_address.displayAddress | Full street address as a single display string. |
results[].coordinates | Latitude and longitude of the place, in that order. |
results[].contact.telephone | Phone number of the place in international format. |
results[].opening_hours.days[] / results[].opening_hours.current_day[] | Opening hours. Each entry has full_name, abbr_name, opens and closes. current_day holds the entry for the current day. |
results[].rating.ratingValue / results[].rating.bestRating / results[].rating.reviewCount | Average rating, the top possible rating, and the number of reviews. is_tripadvisor is true when the rating comes from Tripadvisor. |
results[].profiles[].name / results[].profiles[].url | Name and link of a web or social profile for the place, such as its website, Facebook or Instagram page. |
results[].pictures.results[].original / results[].pictures.results[].src | Link to the original photo and a resized copy of it. |
results[].results[].title / results[].results[].url / results[].results[].description | Web pages related to the place, with title, link and a text snippet. |
results[].family_friendly | Whether the place is flagged as family friendly. |
ids as an array. The IDs look like loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA= and are valid only for 8 hours.search_lang, ui_lang and units are optional. units accepts metric or imperial.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/brave/local-pois" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA="
],
"ui_lang": "en-US",
"search_lang": "en"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
idsarray필수A list of unique identifiers for the location. The ids are valid only for 8 hours.
search_langstringThe search language preference. The 2 or more character language code for which the search results are provided.
기본값: "en"
가능한 값: ar, eu, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, en-gb, et, fi, fr, gl, de, el, gu, he, hi, hu, is, it, ja, jp, kn, ko, lv, lt, ms, ml, mr, nb, pl, pt-br, pt-pt, pa, ro, ru, sr, sk, sl, es, sv, ta, te, th, tr, uk, vi
ui_langstringUser interface language preferred in response. Usually of the format <language_code>-<country_code>. For more, see RFC 9110 .
기본값: "en-US"
가능한 값: es-AR, en-AU, de-AT, nl-BE, fr-BE, pt-BR, en-CA, fr-CA, es-CL, da-DK, fi-FI, fr-FR, de-DE, el-GR, zh-HK, en-IN, en-ID, it-IT, ja-JP, ko-KR, en-MY, es-MX, nl-NL, en-NZ, no-NO, zh-CN, pl-PL, en-PH, ru-RU, en-ZA, es-ES, sv-SE, fr-CH, de-CH, zh-TW, tr-TR, en-GB, en-US, es-US
unitsstringThe measurement units. The following values are supported: metric - The standardized measurement system (km, celcius…) imperial - The British Imperial system of units (mile, fahrenheit…)
가능한 값: imperial, metric
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Brave Local POIs이 API Brave | $0.005 / 호출 | JSON |
Brave | $0.01 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/brave/local-pois에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.005, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: ids (array). 선택: search_lang(ar, eu, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, en-gb, et, fi, fr, gl, de, el, gu, he, hi, hu, is, it, ja, jp, kn, ko, lv, lt, ms, ml, mr, nb, pl, pt-br, pt-pt, pa, ro, ru, sr, sk, sl, es, sv, ta, te, th, tr, uk, vi 중 하나), ui_lang(es-AR, en-AU, de-AT, nl-BE, fr-BE, pt-BR, en-CA, fr-CA, es-CL, da-DK, fi-FI, fr-FR, de-DE, el-GR, zh-HK, en-IN, en-ID, it-IT, ja-JP, ko-KR, en-MY, es-MX, nl-NL, en-NZ, no-NO, zh-CN, pl-PL, en-PH, ru-RU, en-ZA, es-ES, sv-SE, fr-CH, de-CH, zh-TW, tr-TR, en-GB, en-US, es-US 중 하나) 및 units(imperial, metric 중 하나). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Brave Local POIs은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Brave API 액세스를 별도로 신청할 필요는 없습니다.