OuterviewDevelopers

Discover API

Search maps, civic records, places, imagery, and geographic attributes with a natural-language query.

POST/api/discover
bash
curl https://api.outerview.ai/api/discover \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"Find public parks in Brooklyn, New York City","limit":3}'
FieldTypeDescription
querystringRequired. Between 1 and 500 characters.
focusstringOptional. Numeric region ID for queries that name no place.
limitinteger1–200 results; defaults to 20. The free playground always returns at most 3.
answerbooleanOptional written answer; defaults to false.
areasarrayOptional. Up to four [longitude, latitude] points to search around.
whereobjectOptional geographic attribute conditions, such as elevation or land cover. Returned filters describe which conditions were applied.

Successful requests use one search credit. The response includes the feature collection under data.geojson and may include an answer, region metadata, and filters. Feature properties vary by source.

JSON
{
  "isSuccess": true,
  "result_id": "eabf9ebb-81ff-41cb-805c-a8a86154af51",
  "data": {
    "query": "Find public parks in Brooklyn, New York City",
    "geojson": {
      "type": "FeatureCollection",
      "features": []
    },
    "regions": []
  }
}
GET/api/discover/{id}

Retrieve an earlier result with a key from the account that ran it. Reading a result is free.

StatusMeaning
400Invalid request
401Invalid or missing API key
402Insufficient credits
403Search unavailable for this query
404Result not found
429Too many searches
502Search provider unavailable
503Platform temporarily unavailable