Select to view content in your preferred language

Open Data API: How to filter by sitesids

596
1
02-11-2019 09:26 AM
TheodoreLim
New Contributor

Hello,

I am trying to get a list of datasets and metadata that are hosted on the site: http://data-ral.opendata.arcgis.com/datasets 

Following the example here, I tried the following query:

https://opendata.arcgis.com/api/v2/datasets?filter[source]=City%20of%20Raleigh 

This works. However at the domain (http://data-ral.opendata.arcgis.com/datasets ) there are multiple sources. I would really like to filter by siteId (which I understand as all datasets available through this domain). From the page source, it seems that the sideid is either "siteId":"9afa0ba9c92f4cf6b0eb4356e40423ab" or "siteId":"14086", but neither of these values returns any results when I tried the following query:

https://opendata.arcgis.com/api/v2/datasets?filter[sitesIds]=9afa0ba9c92f4cf6b0eb4356e40423ab 

 

What is the correct value to use here?

Thanks very much in advance!

0 Kudos
1 Reply
hoogw
by
Occasional Contributor


By use /data.json, I can get all dataset for that city.

example:

City of Raleigh

http://data-ral.opendata.arcgis.com/data.json

city of los angeles

https://geohub.lacity.org/data.json

0 Kudos