Getting started
Your key, a first call and the errors you may see.
Basics
- Base URL:
https://<api-host>, provided with your key. Every data route starts with/v1. - Authentication: an
X-Intel-Key: <key>header, orAuthorization: Bearer <key>. - Format: JSON. Dates are
YYYY-MM-DD; timestamps are ISO 8601 in UTC. - OpenAPI spec:
GET /openapi.json
To get an API key and your host, email andre@indax.co.
A key looks like ik_<key_id>_<secret> and is shown once, when Indax issues it. Keep it in an environment variable and never put it in a URL.
First call
Search for chemical Sites in Ohio:
Errors
Errors return JSON with a detail field that says what went wrong. To trace a call, send an X-Request-Id header; the API returns it as x-request-id.
| Status | Meaning |
|---|---|
301 | The ID was merged into another record. Location holds the surviving record; follow it. |
400 | No search filter, an incomplete lat/lon/radius_km set, a bad cursor or a bad identifier. |
401 | No key was sent. |
403 | The key is invalid, or its access level does not allow the data requested. |
404 | Unknown ID, an ID of another type on this route, or no record holds the identifier. |
422 | A parameter is malformed or out of range. detail names it. |
500 | Server error. Retry once. |