Stream

Run a complete search in one API call and receive the results in the same response.

Endpoint

POSThttps://api.outerview.ai/v1/stream

Call this URL directly from your server with a Bearer API key. The response includes the matching observations as GeoJSON, the region scope, and a result_id; no follow-up result request is required.

cURL
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"potholes in New York","position":{"points":[{"latitude":40.7128,"longitude":-74.006},{"latitude":40.7306,"longitude":-73.9866}]},"limit":5}'
JSON
{
  "query": "potholes in New York",
  "position": {
    "points": [
      {
        "latitude": 40.7128,
        "longitude": -74.006
      },
      {
        "latitude": 40.7306,
        "longitude": -73.9866
      }
    ]
  },
  "limit": 5
}
FieldTypeRequiredDescription
querystringRequiredNatural-language description of what to find.
region_idstringOptionalNumeric region id for a precise scope.
positionobjectOptionalObject with a points array of latitude/longitude objects. Set one position or multiple positions.
yearnumberOptionalRestrict captures to one calendar year.
limitnumberOptionalMaximum returned GeoJSON features (default 50, max 50).

Response fields

The response above is a representative potholes in New York example. Only media URLs are redacted.

FieldTypeMeaning
isSuccessbooleanWhether the request completed successfully.
result_idstringIdentifier for this search execution.
data.querystringNatural-language search that was evaluated.
data.duration_msnumberServer processing time in milliseconds.
data.geojsonFeatureCollectionMap-ready matched observations.
features[].id / properties.idstringStable observation identifier.
geometry.typestringGeoJSON geometry type, typically Point.
geometry.coordinates[longitude, latitude]WGS84 map coordinates.
addressstring | nullBest available human-readable location.
datestring | nullCapture timestamp.
year / monthstring | nullCapture year and month when supplied.
sourcestring | nullOrigin of the observation.
ownerstring | nullSource account or contributor when available.
feature_namestringArtifact matched by the search.
image_urlstring | nullStatic image URL; redacted in this example.
is_videoboolean | nullWhether the capture is video.
video_idstring | nullIdentifier for the capture video.
video_urlstring | nullVideo media URL; redacted in this example.
durationnumber | nullVideo duration in seconds.
interactivebooleanWhether the result opens as 360-degree media.
regionsarrayResolved search geography.
yearstring | nullRequested year filter, or null when unrestricted.

See Pagination for walking large result sets and Authentication for API key setup.