idsarrayerforderlich
A list of unique identifiers for the location. The ids are valid only for 8 hours.
https://api.sandbase.ai/v1/api/brave/local-descriptionsPOI Descriptions from Brave. Returns the official Brave API response unchanged.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns a text description for each place ID you send. The input is a required ids array of location IDs, and each ID returns one description object.
curl -X POST "https://api.sandbase.ai/v1/api/brave/local-descriptions" \
-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. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"results": [
{
"description": "**Storyville Coffee Pike Place** is a renowned specialty coffee roaster and café…",
"id": "loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=",
"type": "local_description"
}
],
"type": "local_descriptions"
}
| Field | Meaning |
|---|---|
results | List of description objects. It holds one entry for each ID you sent. |
results[].id | The location ID this description belongs to. Use it to match each description to the ID in your request. |
results[].description | Text description of the place. It can contain Markdown, such as **bold** around the place name. |
results[].type | Type of the item. In this response it is local_description. |
type | Type of the whole response. In this response it is local_descriptions. |
loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA=.ids array to get several descriptions in one call.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/brave/local-descriptions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"loc4DFZ5OEXSZVDUAEEDV6PMTFK6YDFANIHQIRRVKLA="
]
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
idsarrayerforderlichA list of unique identifiers for the location. The ids are valid only for 8 hours.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Brave POI DescriptionsDiese API Brave | $0.005 pro Aufruf | JSON |
Brave | $0.01 pro Aufruf | JSON |
Brave | $0.005 pro Aufruf | JSON |
Brave | $0.005 pro Aufruf | JSON |
Brave | $0.005 pro Aufruf | JSON |
Brave | $0.005 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/brave/local-descriptions mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.005 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: ids (array). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Brave POI Descriptions läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Brave API beantragen.