<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Open Data API in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708359#M3504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;I'm looking for a simple way to get the total number of datasets of an instance under *.opendata.arcgis.com.&lt;/P&gt;&lt;P&gt;The only way I found till now is to call data.json and then iterate through all its results/pages, e.g.&amp;nbsp;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json"&gt;https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json&lt;/A&gt;&amp;nbsp;where there are 40 datasets.&lt;/P&gt;&lt;P&gt;I was wondering if could call e.g. api/v2/datasets and&amp;nbsp;provide a filter&amp;nbsp;with a parameter&amp;nbsp;URL like this&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any(&lt;/A&gt;&lt;A href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" style="text-decoration: none;" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;alcaldiadeguarne-guarne&lt;/A&gt;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me on this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Dec 2018 20:48:41 GMT</pubDate>
    <dc:creator>AndreiwidCorrea</dc:creator>
    <dc:date>2018-12-23T20:48:41Z</dc:date>
    <item>
      <title>ArcGIS Open Data API</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708359#M3504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;I'm looking for a simple way to get the total number of datasets of an instance under *.opendata.arcgis.com.&lt;/P&gt;&lt;P&gt;The only way I found till now is to call data.json and then iterate through all its results/pages, e.g.&amp;nbsp;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json"&gt;https://alcaldiadeguarne-guarne.opendata.arcgis.com/data.json&lt;/A&gt;&amp;nbsp;where there are 40 datasets.&lt;/P&gt;&lt;P&gt;I was wondering if could call e.g. api/v2/datasets and&amp;nbsp;provide a filter&amp;nbsp;with a parameter&amp;nbsp;URL like this&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any(&lt;/A&gt;&lt;A href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" style="text-decoration: none;" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;alcaldiadeguarne-guarne&lt;/A&gt;&lt;A class="link-titled" href="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()" title="https://alcaldiadeguarne-guarne.opendata.arcgis.com/api/v2/datasets?filter[url]=any()"&gt;)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me on this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2018 20:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708359#M3504</guid>
      <dc:creator>AndreiwidCorrea</dc:creator>
      <dc:date>2018-12-23T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Open Data API</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708360#M3505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreiwid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can return total datasets by a given source by filtering on the source field and looking at the aggregation values at the bottom of the json document. For example, if you&amp;nbsp;call&amp;nbsp;&lt;A class="link-titled" href="https://opendata.arcgis.com/api/v2/datasets?filter[source]=Municipio%20de%20Guarne" title="https://opendata.arcgis.com/api/v2/datasets?filter[source]=Municipio%20de%20Guarne"&gt;https://opendata.arcgis.com/api/v2/datasets?filter[source]=Municipio%20de%20Guarne&lt;/A&gt;&amp;nbsp;and collapse the data field, you should see something like this:&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/432248_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The docCount aggregation field is what I think you're after, but let me know if I'm on the wrong track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2018 17:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708360#M3505</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-12-26T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Open Data API</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708361#M3506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick!&lt;/P&gt;&lt;P&gt;Thank you for you attention and answer.&lt;/P&gt;&lt;P&gt;Let me expand a lit bit more my needs just to see if you can&amp;nbsp;supply me an extra help.&lt;/P&gt;&lt;P&gt;What I'm doing is automatically get the total number of datasets of&amp;nbsp;many ArcGIS Open Data instances/installations. I only know beforehand the customer's domain (what comes before *.opendata.arcgis.com). So I can't go manually to each customer's&amp;nbsp;&lt;SPAN&gt;instance/installation to check 'owner' attribute. So it came to my mind&amp;nbsp;to rely on the customer ID (I think&amp;nbsp;what comes before *.&lt;SPAN&gt;opendata.arcgis.com)&amp;nbsp;to be a filter&amp;nbsp;choice. I realized that the example I gave before (filter[url]) was not a good choice, as URL attribute doesn't see to be consistent across different&amp;nbsp;instances/installations according to customer ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In sum, is there a way to&amp;nbsp;return&amp;nbsp;all datasets of an instance/installation given only the customer ID (what comes before *.&lt;SPAN&gt;opendata.arcgis.com)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708361#M3506</guid>
      <dc:creator>AndreiwidCorrea</dc:creator>
      <dc:date>2018-12-27T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Open Data API</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708362#M3507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After testing a lot of possibilities, I ended up making a sequence of 3 APIs in order to get the number of datasets of a given installation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;‘data.json’ – returns a list of the first 1,000 datasets&amp;nbsp;of an installation. This API is necessary to extract at least one dataset ID to be use in next request.&lt;/LI&gt;&lt;LI&gt;‘/api/v2/datasets/{:id}’ – returns further details about a dataset where it is possible to access the standardized field ‘Owner’ necessary to make next request.&lt;/LI&gt;&lt;LI&gt;‘/api/v2/datasets’ – returns all the datasets to a given ‘Owner’ of an installation as well as the nested attribute ‘meta.stats.totalCount’ in the resulting JSON dictionary which finally specifies the number of existing datasets.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My experiments reported the API sequence 1 returns an empty dataset array for some installations. If you are curious about that, see&amp;nbsp;&lt;A href="https://data-brookhavenga.opendata.arcgis.com/data.json"&gt;https://data-brookhavenga.opendata.arcgis.com/data.json&lt;/A&gt;&amp;nbsp;and &lt;A href="https://data-eastlongmeadow.opendata.arcgis.com/data.json"&gt;https://data-eastlongmeadow.opendata.arcgis.com/data.json&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 19:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708362#M3507</guid>
      <dc:creator>AndreiwidCorrea</dc:creator>
      <dc:date>2019-01-02T19:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Open Data API</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708363#M3508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;‘/api/v2/datasets’ – returns all the datasets to a given ‘Owner’ of an installation as well as the nested attribute ‘meta.stats.totalCount’ in the resulting JSON dictionary which finally specifies the number of existing datasets.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Did you miss type /api/v2/datasets, missing something&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;is it&amp;nbsp;&lt;SPAN&gt;/api/v2/datasets/owner/{owner-id}?????&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 21:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-open-data-api/m-p/708363#M3508</guid>
      <dc:creator>hoogw</dc:creator>
      <dc:date>2019-04-25T21:05:43Z</dc:date>
    </item>
  </channel>
</rss>

