Kadrin Docs Kadrin Batch

Catalog

Browse the topics, measures and indices you can ask for. Free.

List the topics you can ask for

GET /v1/topics

A topic is a subject, such as Demographics or Labor market. Each topic is made of groups of related measures, and you pay one credit per group per place. Free.

Answers

StatusWhenBody
200The topics, with the groups in each.object
429Too many requests in a short time. Wait the number of seconds in Retry-After, then try again.Problem

Search for measures

GET /v1/variables

Find the measures you can ask for. A measure is a single number, such as median household income. Free.

Parameters

NameInTypeWhat it is
qquerystring

Words to search for, such as 'rent' or 'jobs by industry'.

topicqueryTopicId

Only show measures in this topic.

groupquerystring

Only show measures in this group, such as income.household.

sourcequerystring

Only show measures from this source, such as acs5 (the Census Bureau's American Community Survey). Mostly useful for checking where numbers come from.

geographyqueryGeographyLevel

Only show measures available for this kind of area.

limitqueryinteger

How many results to return on each page.

cursorquerystring

To get the next page, pass the next_cursor value from the previous page.

Answers

StatusWhenBody
200Matching measures.object
429Too many requests in a short time. Wait the number of seconds in Retry-After, then try again.Problem

Get the details of one measure

GET /v1/variables/{id}

What the measure means, its unit, who it counts, where it comes from, and the years and kinds of area it's available for. Free.

Parameters

NameInTypeWhat it is
id
required
pathstring

The measure's ID.

Answers

StatusWhenBody
200The measure's details.Variable
404Something went wrong. The response explains what happened and what to do next. Failed requests are never charged. (The format is RFC 9457, a standard layout for API errors.)Problem
429Too many requests in a short time. Wait the number of seconds in Retry-After, then try again.Problem

List groups of related measures

GET /v1/groups

A group is a small set of related measures, such as household income. Groups are what you pay for, one credit per group per place. Free.

Parameters

NameInTypeWhat it is
topicqueryTopicId

Only show groups in this topic.

Answers

StatusWhenBody
200The groups.object
429Too many requests in a short time. Wait the number of seconds in Retry-After, then try again.Problem

List presets

GET /v1/presets

A preset is a ready-made request, such as a site report, that you ask for by name instead of listing groups. Each says which groups it includes, which comparisons it adds, the area it suggests around each point and what each place costs. Free.

Answers

StatusWhenBody
200The presets.object
429Too many requests in a short time. Wait the number of seconds in Retry-After, then try again.Problem

List Kadrin indices

GET /v1/indices

An index is a single score that combines several measures, such as economic momentum. Each one has a published recipe. Free.

Answers

StatusWhenBody
200The indices.object

See how an index is built

GET /v1/indices/{id}

The index's definition, the measures it combines and how much each one counts, what it can't tell you, and how it has changed over time. Free.

Parameters

NameInTypeWhat it is
id
required
pathstring

The index's ID.

versionquerystring

Get an earlier version of the recipe. Leave this out for the current one.

Answers

StatusWhenBody
200How the index is built.IndexMethodology
404Something went wrong. The response explains what happened and what to do next. Failed requests are never charged. (The format is RFC 9457, a standard layout for API errors.)Problem