Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every call is a GET to /data with a method parameter; each endpoint here fixes its method.
- Limits per user per minute: 100 requests, 100 MB of data and 30 errors; going over locks the key out for about a minute.
- Discover before fetching: parameters.list for a dataset, then parameter.values or parameter.values-filtered for valid TableName, LineCode and Year values.
- Regional GeoFips takes codes or STATE, COUNTY, MSA; Year defaults to LAST5 and takes a list, LAST10 or ALL.
Endpoints
List datasets
List a dataset’s parameters
List values of a parameter
List values of a parameter given others
- Not implemented for every dataset; unsupported ones answer with an error.