ArcGIS Hub

App · 6 actions

Find and use the open data that cities, counties, states and organisations publish on ArcGIS Hub: search datasets across all Hub sites or one site, read a dataset's details and download links, and pull, filter, map and summarise its records. No account or API key is required.

Actions

ActionWhat it does
Find open data sitesFind the ArcGIS Hub sites (open data portals) of a city, county, state or organisation, with each site's address.
Find records near a locationFind a dataset's records at a point or within a distance of it, nearest first: which zoning district or parcel a spot is in, or the incidents, stops or facilities around it.
Get dataset detailsGet a dataset's description, publisher, licence, fields, number of records and download links (CSV, GeoJSON, shapefile and KML).
Get recordsPull a dataset's records (its rows), filtered by a field value, a date range or an advanced filter, sorted and with only the fields you choose.
Search datasetsSearch the open data published on ArcGIS Hub by governments and organisations, across all Hub sites or within one, such as opendata.dc.gov.
Summarize recordsCount a dataset's records, or total, average or find the smallest or largest value of a field, overall or for each value of another field (for example, incidents per ward).

Find open data sites

Find the ArcGIS Hub sites (open data portals) of a city, county, state or organisation, with each site's address.

Inputs

Search forquerytextRequired
A place or organisation, for example Washington DC open data.
Limitlimitnumber
The most sites to return (up to 100).From 1 to 100. Default: 20.

Outputs

site_countnumber
siteslist
total_countnumber
Example output
{
  "site_count": 1,
  "sites": [
    {
      "created": "2016-03-29T19:31:15Z",
      "domain": "opendata.dc.gov",
      "organization": "City of Washington, DC",
      "site_id": "b907a83b8d3947bb8e318a7b93abadf8",
      "summary": "On this site, the District of Columbia government shares hundreds of datasets.",
      "title": "Open Data DC",
      "updated": "2026-08-20T13:02:47Z",
      "url": "https://opendata.dc.gov"
    }
  ],
  "total_count": 16
}

Find records near a location

Find a dataset's records at a point or within a distance of it, nearest first: which zoning district or parcel a spot is in, or the incidents, stops or facilities around it.

Inputs

DatasetdatasettextRequired
The dataset's ID from 'Search datasets', or the address of its page on any ArcGIS Hub site.
LatitudelatitudenumberRequired
The point's latitude, for example 38.8977.From -90 to 90.
LongitudelongitudenumberRequired
The point's longitude, for example -77.0365.From -180 to 180.
Withindistancenumber
How far from the point to look. 0 finds only what the point is inside or on, such as its zoning area.From 0 to 1000000. Default: 0.
Unitunittext
The unit of the distance.One of: meters, kilometers, feet, miles. Default: meters.
Advanced filterwheretext
A filter in ArcGIS's SQL style, combined with the filters above, for example POPULATION > 10000 AND STATE = 'TX'.
Fieldsfieldslist
The fields each record includes. Leave empty for all of them.
Limitlimitnumber
The most records to return (up to 5,000).From 1 to 5000. Default: 25.
Locationgeometrytext
Whether each record includes where it is: a latitude and longitude (the middle of a line or area), or its full shape.One of: none (Leave it out), location (Latitude and longitude), geojson (Full shape (GeoJSON)). Default: location.

Outputs

dataset_idtext
distance_metersnumber
latitudenumber
longitudenumber
record_countnumber
recordslist
titletext
total_countnumber
Example output
{
  "dataset_id": "f9cc541fc8c04106a05a1a4f1e7e813c_4",
  "distance_meters": 300.0,
  "latitude": 38.8977,
  "longitude": -77.0365,
  "record_count": 1,
  "records": [
    {
      "BLOCK": "600 - 699 BLOCK OF 15TH STREET NW",
      "CCN": "22044596",
      "OFFENSE": "ROBBERY",
      "distance_meters": 246.9,
      "latitude": 38.8978292,
      "longitude": -77.0336521
    }
  ],
  "title": "Crime Incidents in 2022",
  "total_count": 9
}

Get dataset details

Get a dataset's description, publisher, licence, fields, number of records and download links (CSV, GeoJSON, shapefile and KML).

Inputs

DatasetdatasettextRequired
The dataset's ID from 'Search datasets', or the address of its page on any ArcGIS Hub site.

Outputs

attributiontext
bboxlist
createdtext
dataset_idtext
descriptiontext
downloadsobject
fieldslist
file_urltext
geometry_typetext
has_recordstrue/false
item_idtext
layer_idnumber
layer_nametext
layerslist
licensetext
ownertext
page_urltext
publishertext
record_countnumber
service_urltext
summarytext
tagslist
titletext
typetext
updatedtext
Example output
{
  "attribution": "Metropolitan Police Department",
  "bbox": [
    -77.1153,
    38.8135,
    -76.9097,
    38.9946
  ],
  "created": "2022-01-03T15:37:50Z",
  "dataset_id": "f9cc541fc8c04106a05a1a4f1e7e813c_4",
  "description": "The dataset contains a subset of locations and attributes of incidents reported in the ASAP crime report database by the Metropolitan Police Department.",
  "downloads": {
    "csv": "https://hub.arcgis.com/api/download/v1/items/f9cc541fc8c04106a05a1a4f1e7e813c/csv?layers=4&spatialRefId=4326",
    "geojson": "https://hub.arcgis.com/api/download/v1/items/f9cc541fc8c04106a05a1a4f1e7e813c/geojson?layers=4&spatialRefId=4326",
    "kml": "https://hub.arcgis.com/api/download/v1/items/f9cc541fc8c04106a05a1a4f1e7e813c/kml?layers=4&spatialRefId=4326",
    "shapefile": "https://hub.arcgis.com/api/download/v1/items/f9cc541fc8c04106a05a1a4f1e7e813c/shapefile?layers=4&spatialRefId=4326"
  },
  "fields": [
    {
      "choices": [],
      "label": "Central Complaint Number",
      "name": "CCN",
      "type": "text"
    },
    {
      "choices": [],
      "label": "Report Date",
      "name": "REPORT_DAT",
      "type": "date_time"
    },
    {
      "choices": [],
      "label": "Offense",
      "name": "OFFENSE",
      "type": "text"
    },
    {
      "choices": [],
      "label": "Ward",
      "name": "WARD",
      "type": "text"
    }
  ],
  "file_url": null,
  "geometry_type": "point",
  "has_records": true,
  "item_id": "f9cc541fc8c04106a05a1a4f1e7e813c",
  "layer_id": 4,
  "layer_name": "Crime Incidents - 2022",
  "layers": [],
  "license": "Creative Commons Attribution 4.0 International",
  "owner": "DCGISopendata",
  "page_url": "https://hub.arcgis.com/datasets/f9cc541fc8c04106a05a1a4f1e7e813c_4",
  "publisher": "Metropolitan Police Department",
  "record_count": 27162,
  "service_url": "https://maps2.dcgis.dc.gov/dcgis/rest/services/FEEDS/MPD/FeatureServer/4",
  "summary": "The dataset contains a subset of locations and attributes of incidents reported in the ASAP crime report database by the Metropolitan Police Department.",
  "tags": [
    "crime",
    "washington dc",
    "mpd"
  ],
  "title": "Crime Incidents in 2022",
  "type": "Feature Layer",
  "updated": "2025-08-13T17:27:07Z"
}

Get records

Pull a dataset's records (its rows), filtered by a field value, a date range or an advanced filter, sorted and with only the fields you choose.

Inputs

DatasetdatasettextRequired
The dataset's ID from 'Search datasets', or the address of its page on any ArcGIS Hub site.
Only where fieldmatch_fieldtext
Keep only records whose value in this field matches the next one.
Equalsmatch_valuetext
The value to keep, picked from the values the field holds or typed. For a date field, every record on that day matches.
Date fielddate_fieldtext
The date the From and To dates apply to.
Fromfrom_datedate
Only records on or after this date, in the date field.
Toto_datedate
Only records on or before this date, in the date field.
Advanced filterwheretext
A filter in ArcGIS's SQL style, combined with the filters above, for example POPULATION > 10000 AND STATE = 'TX'.
Fieldsfieldslist
The fields each record includes. Leave empty for all of them.
Sort byorder_bytext
The field to sort the records by.
Orderordertext
Which way to sort.One of: asc (Ascending (A to Z, oldest first, smallest first)), desc (Descending (Z to A, newest first, largest first)). Default: asc.
Limitlimitnumber
The most records to return (up to 5,000).From 1 to 5000. Default: 100.
Skipoffsetnumber
How many records to skip, to get the next batch. Use the previous step's next_offset.From 0 to 10000000. Default: 0.
Locationgeometrytext
Whether each record includes where it is: a latitude and longitude (the middle of a line or area), or its full shape.One of: none (Leave it out), location (Latitude and longitude), geojson (Full shape (GeoJSON)). Default: none.

Outputs

dataset_idtext
filtertext
has_moretrue/false
next_offsetnumber
offsetnumber
record_countnumber
recordslist
titletext
total_countnumber
Example output
{
  "dataset_id": "f9cc541fc8c04106a05a1a4f1e7e813c_4",
  "filter": "OFFENSE = 'HOMICIDE'",
  "has_more": true,
  "next_offset": 1,
  "offset": 0,
  "record_count": 1,
  "records": [
    {
      "CCN": "22075344",
      "OFFENSE": "HOMICIDE",
      "REPORT_DAT": "2022-11-29T05:00:00Z",
      "WARD": "1",
      "latitude": 38.9350728,
      "longitude": -77.0201289
    }
  ],
  "title": "Crime Incidents in 2022",
  "total_count": 203
}

Search datasets

Search the open data published on ArcGIS Hub by governments and organisations, across all Hub sites or within one, such as opendata.dc.gov.

Inputs

Search forquerytext
Words to look for in titles, descriptions and tags.
Hub sitesitetext
Search only one Hub site's catalogue, by its address. Leave empty to search all of ArcGIS Hub.
Typedataset_typetext
Only datasets of this type.One of: any (Any kind), records (Live tables and map layers (records you can pull)), csv (CSV files), shapefile (Shapefiles), geojson (GeoJSON files), kml (KML files), geodatabase (File geodatabases). Default: any.
Updated sinceupdated_sincedate
Only datasets updated on or after this date.
Sortsorttext
The order of the results.One of: relevance (Best match), updated (Recently updated), created (Newest). Default: relevance.
Open data onlyopen_data_onlytrue/false
Only datasets their publishers have shared as open data. Turn off to include every public item on ArcGIS. A Hub site's search is always its open data.Default: true.
Limitlimitnumber
The most datasets to return (up to 100).From 1 to 100. Default: 20.
Skipoffsetnumber
How many results to skip, to get the next page. Use the previous search's next_offset.From 0 to 10000. Default: 0.

Outputs

dataset_countnumber
datasetslist
has_moretrue/false
next_offsetnumber
sitetext
total_countnumber
total_is_estimatetrue/false
Example output
{
  "dataset_count": 1,
  "datasets": [
    {
      "created": "2022-01-03T15:37:50Z",
      "dataset_id": "f9cc541fc8c04106a05a1a4f1e7e813c",
      "file_url": null,
      "has_records": true,
      "owner": "DCGISopendata",
      "page_url": "https://opendata.dc.gov/datasets/f9cc541fc8c04106a05a1a4f1e7e813c",
      "publisher": "Metropolitan Police Department",
      "service_url": "https://maps2.dcgis.dc.gov/dcgis/rest/services/FEEDS/MPD/FeatureServer/4",
      "summary": "The dataset contains a subset of locations and attributes of incidents reported in the ASAP crime report database by the Metropolitan Police Department.",
      "tags": [
        "crime",
        "washington dc",
        "mpd"
      ],
      "title": "Crime Incidents in 2022",
      "type": "Feature Service",
      "updated": "2025-08-13T17:27:07Z",
      "views": 98316
    }
  ],
  "has_more": true,
  "next_offset": 1,
  "site": "opendata.dc.gov",
  "total_count": 39,
  "total_is_estimate": false
}

Summarize records

Count a dataset's records, or total, average or find the smallest or largest value of a field, overall or for each value of another field (for example, incidents per ward).

Inputs

DatasetdatasettextRequired
The dataset's ID from 'Search datasets', or the address of its page on any ArcGIS Hub site.
Statisticstatistictext
What to calculate.One of: count (Count of records), sum, avg (Average), min (Minimum), max (Maximum). Default: count.
Of fieldfieldtext
The field to calculate it from.Only when Statistic is Sum, Average, Minimum or Maximum.
For each value ofgroup_bytext
Calculate it separately for each value of this field. Leave empty for one overall result.
Only where fieldmatch_fieldtext
Keep only records whose value in this field matches the next one.
Equalsmatch_valuetext
The value to keep, picked from the values the field holds or typed. For a date field, every record on that day matches.
Date fielddate_fieldtext
The date the From and To dates apply to.
Fromfrom_datedate
Only records on or after this date, in the date field.
Toto_datedate
Only records on or before this date, in the date field.
Advanced filterwheretext
A filter in ArcGIS's SQL style, combined with the filters above, for example POPULATION > 10000 AND STATE = 'TX'.
Limitlimitnumber
The most groups to return, largest first (up to 1,000).From 1 to 1000. Default: 100.

Outputs

dataset_idtext
fieldtext
filtertext
group_bytext
group_countnumber
groupslist
statistictext
titletext
valuenumber
Example output
{
  "dataset_id": "f9cc541fc8c04106a05a1a4f1e7e813c_4",
  "field": null,
  "filter": "1=1",
  "group_by": "WARD",
  "group_count": 9,
  "groups": [
    {
      "group": "2",
      "value": 4794
    },
    {
      "group": "5",
      "value": 4497
    }
  ],
  "statistic": "count",
  "title": "Crime Incidents in 2022",
  "value": 27162
}

On this page