How to Download Data from an ArcGIS REST FeatureServer
A complete step-by-step guide to downloading vector data from any ArcGIS REST FeatureServer. Learn how to get Shapefiles, GeoJSON, KML, and GeoPackage files for free using just your browser.
If you work with GIS, you have almost certainly run into an ArcGIS REST FeatureServer URL. These services power thousands of municipal open data portals, government agency datasets, and enterprise mapping applications across the world. But getting the actual data out of them — as a usable Shapefile, GeoJSON, or GeoPackage — is not always obvious.
This guide walks you through everything: what a FeatureServer actually is, how its URL structure works, and three practical ways to download the data — including a completely free browser-based method that requires no software installation.
What is an ArcGIS REST FeatureServer?
An ArcGIS REST FeatureServer is a web service that exposes vector feature data (points, lines, polygons, and their attributes) through a RESTful API. It is one of the two main service types in the ArcGIS ecosystem — the other is MapServer, which returns pre-rendered map images instead of raw features.
FeatureServers are the modern, preferred option for open data publication because clients can:
- Query features by attribute or geometry
- Request data in multiple formats (JSON, GeoJSON, PBF)
- Filter, sort, and paginate results server-side
- Get full metadata including field types and spatial reference
If you have ever interacted with a "Download" button on a city open data portal, chances are it was quietly hitting a FeatureServer underneath.
Understanding the URL structure
A typical FeatureServer URL looks like this:
https://services.arcgis.com/{orgId}/arcgis/rest/services/{serviceName}/FeatureServer/{layerId}Each part has a meaning:
- orgId — the ArcGIS Online organization identifier
- serviceName — the human-readable service name (e.g. "Parcels", "Zoning", "Roads")
- /FeatureServer — indicates this is a feature service (not a map service)
- layerId — the specific layer inside the service (often 0, 1, 2...)
Method 1: The manual way (browser query)
The most basic approach is to hit the FeatureServer's /query endpoint directly. You append query parameters to the URL, and the server returns data as JSON.
For example, to get all features from layer 0 as GeoJSON:
https://services.arcgis.com/.../FeatureServer/0/query?where=1%3D1&outFields=*&f=geojsonThis works — but it has serious limitations:
- The server typically caps the response at 1,000–2,000 features
- You cannot easily merge multiple pages of results
- There is no built-in conversion to Shapefile or GeoPackage
- Very large services will silently truncate the data
For a quick look at a small layer, this is fine. For actually downloading complete datasets, it is not.
Method 2: The modern way — browser-based downloader
This is where a dedicated tool saves hours of work. A proper GIS data downloader handles pagination automatically, respects the server's object ID limits, and can convert the result to any common spatial format.
Here is the exact workflow using Geo Server Data Downloader (free, browser-based):
- Open the Downloader page.
- Paste your FeatureServer URL into the input field. You can paste either the root (with sublayers) or a specific layer.
- Click "Add Layer". The tool fetches metadata and, if the service has multiple sublayers, shows a selection dialog.
- The layer appears on the interactive map and in the Layers panel.
- Click the green "Export" button to download it as GeoJSON — or click "Bulk Export" to choose Shapefile, KML, GeoPackage, CSV, or GPX instead.
Troubleshooting common errors
"Token Required"
Some FeatureServers are secured and require an authentication token. If you see this error, the service is not publicly accessible. You will need to contact the service owner and request access — or find a public alternative.
"No features returned"
This usually means one of three things:
- The layer is empty (some services are placeholders)
- The layer has a scale dependency — it only shows features when zoomed in past a certain level
- Your query geometry filter is excluding everything
Large layers timing out
Datasets over ~100,000 features take a while to fetch and process. If a download stalls, try closing other tabs, using a wired connection, or choosing GeoPackage instead of Shapefile for very large layers.
Choosing the right export format
| Format | Best for | Avoid when |
|---|---|---|
| Shapefile | Compatibility with older ArcGIS Desktop | You need dates or long field names |
| GeoJSON | Web apps, Leaflet, Mapbox | You have very large datasets |
| GeoPackage | QGIS, ArcGIS Pro, multi-layer containers | You need Google Earth support |
| KML | Google Earth, Google My Maps | You need attribute tables |
| CSV | Excel, data analysis | You need geometry preserved |
Legal and ethical considerations
Just because you can download data does not mean you can do anything you want with it. Before redistributing any FeatureServer data, check the license, the terms of use, and any attribution requirements.
Wrapping up
ArcGIS REST FeatureServers are one of the richest sources of free spatial data on the web. The only barrier is knowing how to get the data out — and that is exactly the problem this tool solves.
Related guides
Ready to try it yourself?
Export ArcGIS REST services, WFS endpoints, and ArcGIS Online datasets to Shapefile, GeoJSON, KML, or GeoPackage — all in your browser.
Open the Downloader