Documentation
> Workflows & Code
> Access Supplemental Data
> NHGIS
Access NHGIS Supplemental Data
Below we provide examples in curl showing how to work with our API to access NHGIS supplemental data.
If you are an R or Python user, please note that we also provide language-native client libraries to make it easier to work with the IPUMS API using those languages.
Get your key from https://account.ipums.org/api_keys. Make sure to replace 'MY_KEY' (all caps) in the snippet below with your key.
Load Libraries and Set Key
export KEY=MY_KEY # set the MY_KEY environment variable using bash shell
Download supplemental data
curl -X GET "https://api.ipums.org/supplemental-data/nhgis/blocks-1980/AL_block_1980.zip" -H "Authorization: $MY_KEY" --output nhgis_supplemental_data.zip