Kadrin Docs Kadrin Batch

API reference

Facts about any place in the US, for exactly the area you care about.

Kadrin gives you facts about any place in the US: who lives there, what they earn, housing, jobs, businesses, health, schools, getting around, tax incentive zones, internet service, what households spend, how people spend their time, and environmental hazards and oil and gas wells.

Send a place in whatever form you have it: a single point, a radius (everywhere within a set distance), a drive-time area (everywhere you can reach by car in a set number of minutes; walking and biking work too), your own outline, or an official area such as a county or a census tract (a neighborhood-sized area of about 4,000 people). Kadrin returns the numbers for exactly that place.

When your shape only partly covers official areas, we estimate its numbers by looking at where people actually live inside each area it touches, using the 2020 Census. This is called apportionment.

Every number comes with:

Data is organized by topic: demographics, income, housing, labor (the labor market), businesses and environment (oil and gas wells, for now). IDs read as topic, group, measure, for example income.household.median.

You pay in credits. One credit covers one group of related measures for one place. Drawing a drive-time area costs 2 credits more, whether you want its numbers (/enrich) or its outline (/isochrones). Browsing the catalog, previewing a cost and failed requests are free.

Each API key can make 60 requests a minute to /enrich and /isochrones, and 600 a minute to everything else. Every answer says how many are left in its RateLimit headers; past the limit you get a 429 with Retry-After, the seconds to wait.

Drive-time areas are drawn on roads from OpenStreetMap. Wherever you show one, credit "© OpenStreetMap contributors".

Kadrin Batch, our app for spreadsheets of places, signs people in with an email and password and uses this same API for them, metered and limited like an API key. API keys are for your own code.

Base address

Every endpoint is under https://api.kadrindata.com/v1. Requests and answers are JSON, except /jobs files.

Keys

Your API key, sent in the Authorization header as "Bearer ". Keys starting kdr_live_ use real data and are billed. Keys starting kdr_test_ return made-up sample data for free, for testing.

Make keys on the Keys page in Kadrin Batch. See the API quickstart.

Endpoints

Changes