<?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 Determining &amp;quot;is hosted feature service&amp;quot; vs &amp;quot;View Layer&amp;quot; using the python API for ArcGIS in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578915#M63300</link>
    <description>&lt;P&gt;When you run an item report there is a column called "is hosted feature service".&lt;/P&gt;&lt;P&gt;I want to get the same info but using the ArcGIS Python API.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;I am also looking for a property that might inform me that a a Feature layer is a View layer versus the hosted feature service supporting the view layer.&lt;/P&gt;&lt;P&gt;I would also love the view layer to be a filter in the content area too.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2025 18:32:24 GMT</pubDate>
    <dc:creator>rob_hewy</dc:creator>
    <dc:date>2025-01-25T18:32:24Z</dc:date>
    <item>
      <title>Determining "is hosted feature service" vs "View Layer" using the python API for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578915#M63300</link>
      <description>&lt;P&gt;When you run an item report there is a column called "is hosted feature service".&lt;/P&gt;&lt;P&gt;I want to get the same info but using the ArcGIS Python API.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;I am also looking for a property that might inform me that a a Feature layer is a View layer versus the hosted feature service supporting the view layer.&lt;/P&gt;&lt;P&gt;I would also love the view layer to be a filter in the content area too.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 18:32:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578915#M63300</guid>
      <dc:creator>rob_hewy</dc:creator>
      <dc:date>2025-01-25T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "is hosted feature service" vs "View Layer" using the python API for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578918#M63301</link>
      <description>&lt;P&gt;There appears to be an identifier in the Item property typeKeywords - 'View Service'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
gis = GIS("home")

#replace with your layer id
feature_id='73fdbf4gxxxxxxxxxxxx'

item = gis.content.get(feature_id)  

#item property 'typeKeywords' produces a list which 
#should have a 'View Service' element listed if so
print(item.typeKeywords)

#if it is a view service - print typeKewords properties
if "View Service" in str(item.typeKeywords):
  print(str(item.typeKeywords))
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 19:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578918#M63301</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-01-25T19:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "is hosted feature service" vs "View Layer" using the python API for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578978#M63302</link>
      <description>&lt;P&gt;Just wanted to add a little more for others:&lt;/P&gt;&lt;P&gt;Solving for &lt;STRONG&gt;hosted&lt;/STRONG&gt; could be done via the typeKeywords too (see the last item in the list):&lt;/P&gt;&lt;PRE&gt;['ArcGIS Server', 'Data', 'Feature Access', 'Feature Service', 'Metadata', 'Multilayer', 'Service', 'Hosted Service']&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The feature layers I am currently investigating do not say 'View Service', instead they say '&lt;STRONG&gt;ArcGIS API for JavaScript&lt;/STRONG&gt;'&lt;/P&gt;&lt;PRE&gt; ['ArcGIS API for JavaScript', 'ArcGIS Server', 'Data', 'Feature Access', 'Feature Service', 'Service', 'Singlelayer']&lt;/PRE&gt;&lt;P&gt;Both of the above eventually make it back to the same hosted service in our portal.&lt;/P&gt;&lt;P&gt;Although, I thought the SingleLayer might be a view layer this may not be the case; the&amp;nbsp;later may have been made via Content =&amp;gt; New Item =&amp;gt; URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 18:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578978#M63302</guid>
      <dc:creator>rob_hewy</dc:creator>
      <dc:date>2025-01-26T18:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "is hosted feature service" vs "View Layer" using the python API for ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578984#M63303</link>
      <description>&lt;P&gt;Ah that's useful info.&amp;nbsp; I'll also add that the view I checked returns both 'Hosted Service' and 'View Service' in the list - so may need additional checks such as if 'Hosted Service' in list and 'View Service' not in list etc. Could be other gotchas to be aware of also.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 20:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/determining-quot-is-hosted-feature-service-quot-vs/m-p/1578984#M63303</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-01-26T20:43:16Z</dc:date>
    </item>
  </channel>
</rss>

