Select to view content in your preferred language

Query AGOL by layer URL

358
2
02-08-2024 07:21 AM
Labels (1)
Alex_Rodriguez
Emerging Contributor

When logged in at AGOL I can go to the CONTENT >> My Organization tabs...then enter the URL of a data layer.  I get some results.

Now, I'm writing a PYTHON script and want to run that same query.  How do I form that query in the script?
query="https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Observations/radar_base_reflectivity/MapServer...

Do I not need the preceding "TITLE" or whatever other keyword to form the query?

0 Kudos
2 Replies
JillianStanford
Frequent Contributor

Hi,

I'm not sure I understand. Do you need to query the REST endpoint directly, or can you use the ArcGIS API for Python to query the item?

https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer has some examples.

Jill

0 Kudos
JohnEvans6
Regular Contributor

Someone in your organization probably saved an old view or a copy at some point; idpgis was deprecated awhile ago and its content is now hosted elsewhere:

https://mapservices.weather.noaa.gov/eventdriven/rest/services/radar/radar_base_reflectivity/MapServ...

0 Kudos