Census API: Examples for /data/2017/ecnpetrstat
All data queries to the Census Data API now require an API key.
Please cut and paste the Example Calls below into your web browser and replace YOUR_KEY_GOES_HERE with your personal API Key.
If you do not have an API Key, request one
here
Geography Hierarchy
Geography Level
Example URL
Number
5 examples
(default geography)
N/A
https://api.census.gov/data/2017/ecnpetrstat?get=NAICS2017_LABEL,NAME,GEO_ID,TYPOP,TYPOP_LABEL,OWNERTYPE,ESTAB,RCPTOT,INVTOTB,INVTOTE,CPPTCROE,CPPTREO,CPPTCRO&NAICS2017=4247101&key=YOUR_KEY_GOES_HERE
us
010
https://api.census.gov/data/2017/ecnpetrstat?get=NAICS2017_LABEL,NAME,GEO_ID,TYPOP,TYPOP_LABEL,OWNERTYPE,ESTAB,RCPTOT,INVTOTB,INVTOTE,CPPTCROE,CPPTREO,CPPTCRO&for=us:*&NAICS2017=4247101&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2017/ecnpetrstat?get=NAICS2017_LABEL,NAME,GEO_ID,TYPOP,TYPOP_LABEL,OWNERTYPE,ESTAB,RCPTOT,INVTOTB,INVTOTE,CPPTCROE,CPPTREO,CPPTCRO&for=us:1&NAICS2017=4247101&key=YOUR_KEY_GOES_HERE
state
040
https://api.census.gov/data/2017/ecnpetrstat?get=NAICS2017_LABEL,NAME,GEO_ID,TYPOP,TYPOP_LABEL,OWNERTYPE,ESTAB,RCPTOT,INVTOTB,INVTOTE,CPPTCROE,CPPTREO,CPPTCRO&for=state:*&NAICS2017=4247101&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2017/ecnpetrstat?get=NAICS2017_LABEL,NAME,GEO_ID,TYPOP,TYPOP_LABEL,OWNERTYPE,ESTAB,RCPTOT,INVTOTB,INVTOTE,CPPTCROE,CPPTREO,CPPTCRO&for=state:02&NAICS2017=4247101&key=YOUR_KEY_GOES_HERE