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}'| Field | Type | Description |
|---|---|---|
| query | string | Required. Between 1 and 500 characters. |
| focus | string | Optional. Numeric region ID for queries that name no place. |
| limit | integer | 1–200 results; defaults to 20. The free playground always returns at most 3. |
| answer | boolean | Optional written answer; defaults to false. |
| areas | array | Optional. Up to four [longitude, latitude] points to search around. |
| where | object | Optional 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.
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Invalid or missing API key |
| 402 | Insufficient credits |
| 403 | Search unavailable for this query |
| 404 | Result not found |
| 429 | Too many searches |
| 502 | Search provider unavailable |
| 503 | Platform temporarily unavailable |