Accessing hosted feature layers in Portal using ArcGIS API python

85
0
12-01-2021 07:19 AM
Aravinthkumar
New Contributor II

I am trying to retrieve only the hosted feature layers in the ArcGIS portal, is there any way like accessing the feature layer using ArcGIS API python ?? 

from arcgis.gis import GIS
gis = GIS(url='https://pythonapi.playground.esri.com/portal', username='arcgis_python', password='amazing_arcgis_123')
type(gis.content)
search_result = gis.content.search(query="", item_type="Feature Layer")
search_result
 

 

0 Kudos
0 Replies