Select to view content in your preferred language

Query AGOL by layer URL

324
2
02-08-2024 07:21 AM
Alex_Rodriguez
New 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
Occasional Contributor III

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
Occasional 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