API reference · Brave

brave/local-place-search

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/brave/local-place-search
Model IDbrave/local-place-search
01

Input Schema

13 parameters · 0 required · 13 optional

ParameterTypeRequiredDescription
qstringOptionalQuery string to search for points of interest in an area. If no q is provided, the endpoint will return general points of interest in the given area. · Default: ""
countintegerOptionalNumber of results to return. The maximum is 100. · Min: 1 · Max: 100 · Default: 20
unitsstringOptionalUnits of measurement for distance values: metric is kilometres, imperial is miles. · Options: imperial, metric · Default: "metric"
imperialmetric
geolocstringOptionalOptional geolocation of the user in the format <latitude>x<longitude> . Used to calculate distance values in results.
radiusnumberOptionalSearch radius bias around the given coordinates, in meters. NOTE : This is not strictly the radius of the search (nor the resulting radius of the results), but rather a bias towards results that are closer to the given coordinates. Search is performed globally if no radius is provided. · Min: 0
countrystringOptionalTwo-letter country code (ISO 3166-1 alpha-2) to scope the search. · Options: AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL · Default: "US"
ARAUATBEBRCACLDKFIFRDEGRHKINIDITJPKRMYMXNLNZNOCNPLPTPHRUSAZAESSECHTWTRGBUSALL
ui_langstringOptionalUser interface language for the response. Usually <language>-<region> . · Options: 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 · Default: "en-US"
es-ARen-AUde-ATnl-BEfr-BEpt-BRen-CAfr-CAes-CLda-DKfi-FIfr-FRde-DEel-GRzh-HKen-INen-IDit-ITja-JPko-KRen-MYes-MXnl-NLen-NZno-NOzh-CNpl-PLen-PHru-RUen-ZAes-ESsv-SEfr-CHde-CHzh-TWtr-TRen-GBen-USes-US
latitudenumberOptionalLatitude of the geographical coordinates. · Min: -90 · Max: 90
locationstringOptionalLocation string to search for points of interest in an area. This is alternative to the latitude and longitude parameters. For locations in US prefer the form <city> <state> <country name> , ie. san francisco ca united states For non-US locations, use the form <city> <country name> , ie. tokyo japan
longitudenumberOptionalLongitude of the geographical coordinates. · Min: -180 · Max: 180
safesearchstringOptionalSafe search level for the query results. · Options: off, moderate, strict · Default: "strict"
offmoderatestrict
spellcheckbooleanOptionalWhether to apply spellcheck before executing the search. · Default: true
search_langstringOptionalLanguage for the search results. · Options: 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 · Default: "en"
areubnbgcazh-hanszh-hanthrcsdanlenen-gbetfifrgldeelguhehihuisitjajpknkolvltmsmlmrnbplpt-brpt-ptparorusrskslessvtatethtrukvi
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/brave/local-place-search", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "q": "",
    "count": 20,
    "units": "metric",
    "country": "US",
    "ui_lang": "en-US",
    "safesearch": "strict",
    "spellcheck": true,
    "search_lang": "en"
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());