CAO API - Available Data

2938
1
03-17-2013 11:08 AM
jasonelliott
New Contributor
I am querying the available reports/data sets using the cao api. It is only returning a small subset of the reports that should be available. We have the API for government at the standard level. I am using the GetDataSets method.  How can I get the id's of all of the available demographics?
0 Kudos
1 Reply
TonyHowser
Esri Contributor
1. Generate a token with your username and password with the GetToken service (http://help.arcgis.com/en/businessanalyst/online%20apis/services/rest/reference/GetToken.html).  Doesn't matter if your credentials are for the BAO API of the CA API---the service methods are the same but; the content (variables and reports) may differ slightly.  Copy the resulting token value.

2. Using your token, retrieve the list of datasets you have access to with your subscription with the GetDatasets service (http://help.arcgis.com/en/businessanalyst/online%20apis/services/rest/reference/index.htm?GetDataset...).  Copy the dataset IDs.

3. Using your token and a dataset ID ('USA' dataset is based on Census 2000-based US administrative boundaries.  'USACensus2010' is based on Census 2010-based US administrative boundaries), retrieve the list of reports which you have access to with your subscription with the GetReportTemplates service (http://help.arcgis.com/en/businessanalyst/online%20apis/services/rest/reference/index.htm?GetReportT...).  You will get a list of several reports (depending on your subscription level) and their supported output formats and customizable header fields.  Use the report IDs (their 'names') in other services.

4. Using your token and a dataset ID ('USA' dataset is based on Census 2000-based US administrative boundaries.  'USACensus2010' is based on Census 2010-based US administrative boundaries), retrieve the list of variables which you have access to with your subscription with the GetSummarizations service (http://help.arcgis.com/en/businessanalyst/online%20apis/services/rest/reference/index.htm?GetSummari...).  You will get a list of several thousand variables depending on your subscription level.  Use the summarization variable IDs (their 'names') in other services.

Thanks!
Tony
0 Kudos