> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# ArcGIS Online

> Search ArcGIS Online's public content (feature layers, map services, web maps, datasets) and read an item's metadata and data.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/arcgis.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=350b024c475949338400af6c11c4a77e)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Key optional

Endpoints

4

Auth

Key in query

[Vendor docs](https://developers.arcgis.com/rest/users-groups-and-items/search/)

## Setup

| Variable | | What it is |
| - | - | - |
| `ARCGIS_API_KEY` | some calls | optional ArcGIS access token or API key, for items not shared publicly |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* The token is only for restricted content; results include only the items the caller may access, so without one they are public items.
* Every call answers HTML unless f=json.
* An item's url field points to its own service (often on a different, per-organization server); querying that layer is outside this entry.
* Paging is 1-based: start and num (max 100); follow nextStart. total is exact up to 10,000.

## Endpoints

GET

Search items

Public maps, layers, apps and files matching a query, area or category.

[Open](#arcgis-items-search)

GET

Get an item

An item's metadata: title, type, owner, extent, access, tags and its service url.

[Open](#arcgis-items-get)

GET

Get an item's data

The item's data section: a web map's JSON, or the uploaded file itself.

[Open](#arcgis-items-data)

GET

Search groups

Groups (curated collections of items) matching a query.

[Open](#arcgis-groups-search)

### Search items

GET

`/search`

`arcgis.items.search`

Public maps, layers, apps and files matching a query, area or category.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search query in ArcGIS search syntax. One of q, bbox or categories is required. Example `wildfire`</td></tr>
    <tr><td>`bbox`</td><td>string</td><td>query</td><td>minx,miny,maxx,maxy in WGS84; matches items whose extent overlaps. Example `-125,32,-114,42`</td></tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exact field match, field:"value".
      </td>
    </tr>

    <tr>
      <td>
        `categories`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated full category paths, up to eight.
      </td>
    </tr>

    <tr>
      <td>
        `sortField`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        title, created, type, owner, modified, avgrating, numratings, numcomments or numviews.
      </td>
    </tr>

    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>asc (default) or desc. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-based index of the first result.
      </td>
    </tr>

    <tr><td>`num`</td><td>integer</td><td>query</td><td>Results per page, default 10, max 100. Example `20`</td></tr>

    <tr>
      <td>
        `countFields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Up to three of type, access, contentstatus, group, categories, to get aggregations.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>json, pjson or html (default html, so pass json). Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.arcgis.com/rest/users-groups-and-items/search/) · Same job: [data.gov.au](https://docs.webrouter.net/data-apis/data-gov-au.md#data-gov-au-datasets-search), [Latvian Open Data Portal (data.gov.lv)](https://docs.webrouter.net/data-apis/data-gov-lv.md#data-gov-lv-datasets-search), [data.gov.ua](https://docs.webrouter.net/data-apis/data-gov-ua.md#data-gov-ua-datasets-search), [Environment and Climate Change Canada (GeoMet-OGC-API)](https://docs.webrouter.net/data-apis/eccc-geomet.md#eccc-geomet-items-search), [Socrata (Tyler Data & Insights)](https://docs.webrouter.net/data-apis/socrata.md#socrata-catalog-search), [Tako](https://docs.webrouter.net/data-apis/tako.md#tako-graph-search)

```python Python theme={null}
router.call_data_api("arcgis.items.search", {'q': 'wildfire', 'bbox': '-125,32,-114,42', 'num': 20, 'f': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="arcgis.items.search", params={"q": "wildfire", "bbox": "-125,32,-114,42", "num": 20, "f": "json"})
```

### Get an item

GET

`/content/items/{itemId}`

`arcgis.items.get`

An item's metadata: title, type, owner, extent, access, tags and its service url.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `itemId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        32-character item id.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>json, pjson or html (default html, so pass json). Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.arcgis.com/rest/users-groups-and-items/item/) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

### Get an item's data

GET

`/content/items/{itemId}/data`

`arcgis.items.data`

The item's data section: a web map's JSON, or the uploaded file itself.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `itemId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        32-character item id.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Package items only: zip or unchanged. One of `zip`, `unchanged`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.arcgis.com/rest/users-groups-and-items/item-data/) · Same job: [data.gov.au](https://docs.webrouter.net/data-apis/data-gov-au.md#data-gov-au-datasets-search), [Latvian Open Data Portal (data.gov.lv)](https://docs.webrouter.net/data-apis/data-gov-lv.md#data-gov-lv-datasets-search), [data.gov.ua](https://docs.webrouter.net/data-apis/data-gov-ua.md#data-gov-ua-datasets-search), [Environment and Climate Change Canada (GeoMet-OGC-API)](https://docs.webrouter.net/data-apis/eccc-geomet.md#eccc-geomet-items-search), [Socrata (Tyler Data & Insights)](https://docs.webrouter.net/data-apis/socrata.md#socrata-catalog-search), [Tako](https://docs.webrouter.net/data-apis/tako.md#tako-graph-search)

> [!NOTE]
>
> * Returns the file with its own content type, so it may be binary.

### Search groups

GET

`/community/groups`

`arcgis.groups.search`

Groups (curated collections of items) matching a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search query. Example `living atlas`</td></tr>
    <tr><td>`sortField`</td><td>string</td><td>query</td><td>title, owner, created or modified. One of `title`, `owner`, `created`, `modified`</td></tr>
    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>asc (default) or desc. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-based index of the first result.
      </td>
    </tr>

    <tr>
      <td>
        `num`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 10, max 100.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>json, pjson or html (default html, so pass json). Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.arcgis.com/rest/users-groups-and-items/group-search/) · Same job: [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query), [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datasets-list)

```python Python theme={null}
router.call_data_api("arcgis.groups.search", {'q': 'living atlas', 'f': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="arcgis.groups.search", params={"q": "living atlas", "f": "json"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.