NodeJS interface for census.gov API. Currently only supports sf1 searching.
Has all of the county and state FIPS codes available.
$ npm install us-census-api
* Ability to search other data sets
* Ability to search with 'H' codes
* Zip-Code look-up
Add Your API Key
There are 2 days to pass your API key
* Add your API key to the file 'lib/api_key.json'
* Pass it as 'api_key' parameter
You can search by state and county using either fips,
2 digit state code, or name
You can use a wildcard (*) for state or county
For population, you can just enter 'total', 'white', 'black',
native american', 'asian', or 'hawaiian', or enter the 'P' code
from the census.gov website.
You can also just enter the 'get', 'for', and 'in' paramters directly
You must enter the year, currently only 2010 is working
var census = ;
var str = '';
var params =