Skip to main content
POST
Popest get

Request contract

  • Method and path: POST /apis/v1/census-gov/census/popest-get
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/census-gov/census/popest-get
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
file
string
required

counties: counties/totals/co-est-alldata.csv (states and counties). subcounty: cities/totals/sub-est.csv (national, ~7.5 MB) or, with state, sub-est_.csv.

Provider reference: allowed values ["counties", "subcounty"].

state
string
required

2-digit state FIPS (30 = Montana). Pattern: ^[0-9]{2}$.

concit
string

5-digit consolidated city FIPS (subcounty). Pattern: ^[0-9]{5}$.

county
string

3-digit county FIPS. Pattern: ^[0-9]{3}$.

cousub
string

5-digit county subdivision FIPS (subcounty; needs county). Pattern: ^[0-9]{5}$.

place
string

5-digit place FIPS (subcounty). Pattern: ^[0-9]{5}$.

sumlev
string

Summary level when the codes alone are ambiguous (e.g. 157 vs 162). Pattern: ^[0-9]{3}$.

vintage
number

Vintage year YYYY of the 2020-YYYY directory. Default: the newest directory listed under popest/datasets/.

Provider reference: minimum 2021; maximum 2035.

Response

One PEP geography by its own codes, as its estimate-year records (same shape as popest_list). counties: state + county (county omitted or 000 = the state row). subcounty: the per-state file; select by place (default SUMLEV 162, or 157 together with county), cousub + county (SUMLEV 061), concit, or an explicit sumlev; nothing but state = the state row. More than one matching row is invalid_input asking for sumlev; none is not_found.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.