Links
🗃️

Bulk Data API

Connect to the Data APIs to access 5000+ location attributes, around any lat-long or address in the country.

Bulk Data API with Latitude & Longitude

post
https://dataserving-us.geoiq.io/production/v1.0/getvariablesbulk

Sample Request

headers = {
"x-api-key": "Authentication key",
"Content-Type": "application/json"
}
body = {
"lat":40.0300971,
"lng":-75.648135,
"variables": "cen_10_bk_demo_tot_pop_200,cen_10_bk_tot_urb_1000,acs5_19_pop_wht_blockgroup"
}

Sample Response

{
"data": {
"cen_10_bk_demo_tot_pop_200": 3303,
"cen_10_bk_tot_urb_1000": 46679,
"acs5_19_pop_wht_blockgroup": 1565
},
"status": 200
}
""" Sample Python Code """
import json
import requests
url = "https://dataserving-us.geoiq.io/production/v1.0/getvariablesbulk"
payload = json.dumps({
"lat": 40.0300971,
"lng": -75.648135,
"variables": "cen_10_bk_demo_tot_pop_200,cen_10_bk_tot_urb_1000,acs5_19_pop_wht_blockgroup"
})
headers = {
'x-api-key': '<Authentication key>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)

Bulk Data API with Address

post
https://dataserving-us.geoiq.io/production/v1.0/getvariablesbulk

Sample Request

headers = {
"x-api-key": "Authentication key",
"Content-Type": "application/json"
}
body = {
"address":"Manhattan, New York, NY, USA",
"variables": "cen_10_bk_demo_tot_pop_200,cen_10_bk_tot_urb_1000,acs5_19_pop_wht_blockgroup"
}

Sample Response

{
"data": {
"cen_10_bk_demo_tot_pop_200": 3303,
"cen_10_bk_tot_urb_1000": 46679,
"acs5_19_pop_wht_blockgroup": 1565
},
"status": 200
}
""" Sample Python Code """
import json
import requests
url = "https://dataserving-us.geoiq.io/production/v1.0/getvariablesbulk"
payload = json.dumps({
"address": "Manhattan, New York, NY, USA",
"variables": "cen_10_bk_demo_tot_pop_200,cen_10_bk_tot_urb_1000,acs5_19_pop_wht_blockgroup"
})
headers = {
'x-api-key': '<Authentication key>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Last modified 11mo ago