Getting StartedQuickstart

Quickstart

Make your first Air Pixels Data API request in about five minutes: create a key, list airframes, run a performance estimate, and check your usage.

Before you begin

You need an Air Pixels account on one of the Data API plans. The free Explorer plan is enough to follow this page from start to finish. See plans and limits for what each plan includes and authentication for how keys are issued, stored and rotated.

1. Get your key

How you receive your key depends on your plan:

  • Builder or Operator: pay through the Stripe Payment Link on airpixels.com/api. Stripe sends you to a welcome page that shows your key once. Copy it there.
  • Explorer (free): sign up with your email at airpixels.com/api/signup. Your key appears on screen straight away and is shown once, so copy it there.
  • Fleet License: your key arrives by email with the contract.

Every key starts with ap_live_. Air Pixels stores only a hash of the key, so the key can never be shown again.

Copy the key into a secrets store immediately. A lost key cannot be recovered, only replaced.

Store the key outside your code by exporting it in your shell:

export AP_KEY="ap_live_your_key_here"

A shell you start later needs the variable set again, or the key loaded from your secrets store.

2. Make your first request

This request searches the Hardware Index for enterprise thermal drones under 1 kg, returning a single result:

curl "https://api.airpixels.com/v1/airframes?class=enterprise_thermal&max_weight_g=1000&limit=1" \
  -H "Authorization: Bearer $AP_KEY"

This used 1 call.

3. Read the response

{"data":[{"id":"dji-mavic-3-thermal","name":"DJI Mavic 3 Thermal (M3T)","class":"enterprise_thermal","weight_g":920,"brochure_flight_min":45,"max_wind_mph":26.8,"has_thermal":true,"rtk":true,"faa_tier":"over250","kit_cost_usd":7204,"specs_estimated":true,"data_as_of":"2026-11-06"}],"next_cursor":"eyJvIjoxfQ","meta":{"plan":"explorer","calls_used":1,"calls_included":1000,"fields":"core","attribution":"Data: Air Pixels (airpixels.com)"}}
FieldWhat it tells you
dataThe array of airframes that matched your query.
idThe airframe slug, also used in airpixels.com/drones/<id>.
nameThe manufacturer and model name.
classThe class code, here enterprise_thermal.
weight_gAll-up weight in grams.
brochure_flight_minManufacturer-quoted flight time in minutes.
max_wind_mphMaximum wind the airframe is rated for, in mph.
has_thermalWhether the airframe carries a thermal sensor.
rtkWhether the airframe supports RTK positioning.
faa_tierThe FAA registration tier, here over250.
kit_cost_usdKit cost in US dollars.
specs_estimatedWhether any spec values are estimated rather than sourced.
data_as_ofThe date the record was last verified.
next_cursorAn opaque cursor for the next page. null means you are on the last page.
meta.planThe plan the key belongs to.
meta.calls_usedCalls used so far in the current billing month.
meta.calls_includedCalls included in your plan.
meta.fieldsField tier returned: core or full.
meta.attributionThe attribution string to display wherever you publish the data.

See the data dictionary for the complete field list.

4. Look up field performance

POST to /v1/performance with an airframe id and the mission conditions that matter most. The request body is flat, so the conditions sit next to the id:

curl -X POST https://api.airpixels.com/v1/performance \
-H "Authorization: Bearer $AP_KEY" -H "Content-Type: application/json" \
-d '{"airframe_id":"dji-matrice-4t","wind_mph":15,"temp_f":41,"elevation_ft":5280,"reserve_pct":25}'
{"data":[{"airframe_id":"dji-matrice-4t","name":"DJI Matrice 4T (M4T)","brochure_flight_min":49,"realistic_flight_min":33.216,"usable_flight_min":24.912,"mission_radius_mi":4.664,"gsd_cm_px":1.08,"acres_per_battery":47.734,"storage_gb_per_battery":23.72,"kit_cost_usd":10281,"scores":{"overall":66,"cinematography":41,"mapping":50,"inspection":85,"travel":47,"value":42}}],"next_cursor":null,"meta":{"plan":"builder","calls_used":4,"calls_included":25000,"conditions":{"wind_mph":15,"temp_f":41,"elevation_ft":5280,"reserve_pct":25,"altitude_agl_ft":200,"front_overlap_pct":75,"side_overlap_pct":70,"speed_mph":15,"shutter":1000},"model_version":"dce-engine-2026-11","total":1,"attribution":"Data: Air Pixels (airpixels.com)"}}

usable_flight_min is your realistic flight time minus the landing reserve you asked for. mission_radius_mi is how far out the aircraft can fly and still return with that reserve intact. meta.model_version names the model that produced the numbers, here dce-engine-2026-11, so you can tell when results change between calls. The full request and response reference is in performance.

5. Check your usage

GET /v1/usage is free and shows your plan, calls used, calls remaining and when the quota resets:

curl https://api.airpixels.com/v1/usage -H "Authorization: Bearer $AP_KEY"
{"data":{"plan":"builder","plan_name":"Builder","status":"active","month":"2026-11-01","calls_used":8,"calls_included":25000,"calls_remaining":24992,"hard_cap":false,"overage_calls":0,"overage_usd_per_call":0.004,"estimated_overage_usd":0,"spending_cap_usd":null,"resets_at":"2026-12-01T00:00:00Z","rate_limit":5,"rate_window_seconds":1,"datasets":["hardware_index","field_performance","service_rates"],"hardware_index_fields":"full","key_prefix":"ap_live_••••"},"meta":{"plan":"builder","calls_used":8,"calls_included":25000,"attribution":"Data: Air Pixels (airpixels.com)"}}

On unlimited contracts, calls_included and calls_remaining are null. The response fields are documented in account.

Troubleshooting

Every error returns an HTTP status and a JSON body with a stable error.code.

StatusWhat it meansFix
400 bad_requestUnknown or repeated parameter, value out of range, bad JSON or bad cursor. The message names the problem.Fix the request as described in the message.
401 missing_keyNo key was sent.Send Authorization: Bearer ap_live_....
401 invalid_keyThe key is malformed or not recognised.Check the key for copy errors, and email support if it is lost.
401 key_revokedThe key was revoked or rotated.Use your newest key.
403 not_in_planThe dataset or feature is not in your plan. error.plan names your plan.Upgrade, or call only what your plan includes.
404 not_foundUnknown endpoint or airframe id.Find ids with GET /v1/airframes?q=....
429 rate_limitedYou are over the per-key rate limit.Wait Retry-After seconds, then retry.
429 quota_exceededExplorer monthly quota reached, or your spending cap was hit.Wait for the quota reset, raise your cap, or upgrade.

See plans and limits for the full error list and the limits behind each code.

Next steps