Conventions & Endpoints
The base URL, response envelope, pagination and the complete endpoint list for the Air Pixels Data API.
Base URL and versioning
Every endpoint lives under https://api.airpixels.com/v1. Send your key in a header on every request and the API returns JSON encoded as UTF-8. The version is part of the path: v1 today, API version 1.0.0. A future breaking release arrives as a new path segment rather than changing in place, so code you write against /v1 keeps working. License and support covers how /v1 changes are announced and the deprecation terms.
The machine-readable description of the whole surface is GET /v1/openapi.json, an OpenAPI 3.1 document you can load without a key.
Authentication
Send the key in an Authorization: Bearer header on every request. The alternative x-api-key header works too.
curl "https://api.airpixels.com/v1/usage" \
-H "Authorization: Bearer $AP_KEY"
One key covers REST, MCP and every dataset your plan includes. Authentication covers creating, storing and rotating keys.
Request conventions
The same rules apply across every endpoint, so once you handle them here you can read any endpoint page on its own.
| Convention | Detail |
|---|---|
| Request bodies | JSON with Content-Type: application/json, sent on POST endpoints only. |
| Query parameters | Unknown or repeated query parameters return 400, so a typo like wind= instead of wind_mph= fails loudly instead of being ignored. |
| Lists | Comma-separated, for example class=enterprise_mapping,enterprise_thermal. |
| Booleans | true or false. |
| Pagination | List endpoints take limit (1 to 100, default 25) and cursor. Pass the previous response's next_cursor back unchanged; null means you have the last page. Cursors are opaque. Each page counts as one call. |
| Path parameters | Airframe ids are the same slug used on the site, as in airpixels.com/drones/<id>. |
| Response encoding | JSON, UTF-8. |
A well-formed list request sets the filters, the page size and the header in one go:
curl "https://api.airpixels.com/v1/airframes?class=enterprise_mapping,enterprise_thermal&limit=50" \
-H "Authorization: Bearer $AP_KEY"
Do not parse, rebuild or truncate a cursor. Send the previous response's next_cursor value back exactly as received.
Response conventions
Every successful response is an envelope: data holds the payload, next_cursor points at the next page, and meta describes the call.
{
"data": [
{
"id": "dji-mavic-3-thermal",
"name": "DJI Mavic 3 Thermal (M3T)",
"class": "enterprise_thermal",
"weight_g": 920,
"brochure_flight_min": 45
}
],
"next_cursor": "eyJvIjoxfQ",
"meta": {
"plan": "explorer",
"calls_used": 1,
"calls_included": 1000,
"fields": "core",
"attribution": "Data: Air Pixels (airpixels.com)"
}
}
next_cursor appears on list endpoints only. meta always carries plan, calls_used, calls_included and attribution, plus whichever endpoint-specific keys apply: fields, conditions, model_version, total, missing_ids and note.
Errors return an HTTP status and a JSON body with a stable code you can branch on.
{
"error": {
"code": "bad_request",
"message": "wind_mph must be between 0 and 30 mph."
}
}
Plans and limits has the full status and error-code table, along with which codes are worth retrying.
Endpoint index
Fourteen endpoints cover the airframe catalog, field performance, service rates and account management.
| Method | Path | What it does | Plan | Reference |
|---|---|---|---|---|
GET | / | API name, docs link and endpoint list | Public | None |
GET | /openapi.json | OpenAPI 3.1 spec | Public | Spec |
GET | /changelog | Dataset dates and change log | Public | None |
GET | /airframes | Airframes matching your filters | All plans | Airframes |
GET | /airframes/{id} | One airframe | All plans | Airframes |
GET | /airframes/{id}/performance | Field Performance for one airframe | Builder and up | Performance |
POST | /performance | Field Performance for up to 100 airframes per page | Builder and up | Performance |
GET | /rates | Service Rate Benchmark rows | Builder and up | Rates |
GET | /rates/job-types | The 13 job types, with everything needed to price a custom quote | Builder and up | Rates |
GET | /rates/metros | The 100 metros plus the us benchmark | Builder and up | Rates |
GET | /usage | Plan, usage, limits and status, free | All plans | Account |
POST | /usage/spending-cap | Sets or removes an overage cap, free | Builder and Operator | Account |
POST | /keys/rotate | A new key, revokes the current one, free | All plans | Authentication |
POST | /billing-portal | A Stripe Billing Portal link, free | Builder and Operator | Account |
Public endpoints
Three endpoints need no key and are never metered. GET / returns the API name, a documentation link and the endpoint list. GET /v1/openapi.json returns the machine-readable OpenAPI 3.1 description of every endpoint, which you can feed into a client generator or an API tool. GET /v1/changelog lists each dataset's as-of date and every change, newest first.
The spec is always at https://api.airpixels.com/v1/openapi.json. Polling the changelog tells you whether a dataset moved since your last pull:
curl https://api.airpixels.com/v1/changelog
{
"data": {
"datasets": [
{ "dataset": "field_performance", "as_of": "2026-11-06" },
{ "dataset": "hardware_index", "as_of": "2026-11-06" },
{ "dataset": "service_rates", "as_of": "2026-11-03" }
],
"entries": [
{
"date": "2026-11-06",
"dataset": "service_rates",
"summary": "Initial release: 13 job types x 100 US metros plus the national benchmark (benchmark dated 2026-11-03)."
}
]
}
}
Rate limits and quotas
Your plan sets two limits: a monthly call quota for the account and a rate limit for each key. Explorer runs 1,000 calls per month at 10 requests per minute and pauses when it reaches the quota. Builder runs 25,000 calls per month at 5 requests per second, with overage at $0.004 per call. Operator runs 150,000 calls per month at 20 requests per second, with overage at $0.0025 per call. Fleet License starts from $1,500 per month at 100 requests per second by default, with volume set by contract.
Both limits show on every response, so you never need a separate lookup to know where you stand: X-RateLimit-Limit, X-RateLimit-Remaining, X-Usage-Used, and Retry-After on a 429. Plans and limits has the full rules for windows, overage and what happens at the quota.
Next
Each endpoint page assumes the conventions above and adds only its own parameters, filters and response keys.
Airframes
Search the Hardware Index and fetch a single airframe by its slug.
Field performance
Pull modeled performance for one airframe or up to 100 per page.
Service rates
Read benchmark rows, the 13 job types and the 100 metros plus the national benchmark.
Account and usage
Check your plan, usage, limits and status, and manage the spending cap and billing portal.