Python to connect to service

11-07-2019 05:15 PM
New Contributor III


I'm trying to find a tutorial or guidance on how to use python to connect to a service end point. I have connected to the server linked below in ArcGIS Pro. I would like to use python to iterate over the features in the service: 

I'm not sure where to begin. Could someone point me in the right direction? 

Thank you!

Tags (2)
0 Kudos
1 Reply
Esri Regular Contributor

Hello Jason,

You have a few options. If you just want to work directly with the services themselves, the ArcGIS API for Python is part of Pro, and is a nice way to work with the data hosted over a REST endpoint: Using Feature Layers | ArcGIS for Developers 

You also can call any GP tool from ArcPy, and then interact with the data as you would any other data with ArcPy. Both options work well, depending on what you're trying to do and what level of granularity you're working with.



0 Kudos