REST ReferenceConventions & Endpoints

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.

ConventionDetail
Request bodiesJSON with Content-Type: application/json, sent on POST endpoints only.
Query parametersUnknown or repeated query parameters return 400, so a typo like wind= instead of wind_mph= fails loudly instead of being ignored.
ListsComma-separated, for example class=enterprise_mapping,enterprise_thermal.
Booleanstrue or false.
PaginationList 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 parametersAirframe ids are the same slug used on the site, as in airpixels.com/drones/<id>.
Response encodingJSON, 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.

MethodPathWhat it doesPlanReference
GET/API name, docs link and endpoint listPublicNone
GET/openapi.jsonOpenAPI 3.1 specPublicSpec
GET/changelogDataset dates and change logPublicNone
GET/airframesAirframes matching your filtersAll plansAirframes
GET/airframes/{id}One airframeAll plansAirframes
GET/airframes/{id}/performanceField Performance for one airframeBuilder and upPerformance
POST/performanceField Performance for up to 100 airframes per pageBuilder and upPerformance
GET/ratesService Rate Benchmark rowsBuilder and upRates
GET/rates/job-typesThe 13 job types, with everything needed to price a custom quoteBuilder and upRates
GET/rates/metrosThe 100 metros plus the us benchmarkBuilder and upRates
GET/usagePlan, usage, limits and status, freeAll plansAccount
POST/usage/spending-capSets or removes an overage cap, freeBuilder and OperatorAccount
POST/keys/rotateA new key, revokes the current one, freeAll plansAuthentication
POST/billing-portalA Stripe Billing Portal link, freeBuilder and OperatorAccount

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.