ArcGIS REST JS is a collection of JavaScript modules for accessing location services, ArcGIS Online and ArcGIS Enterprise REST APIs.


Learn how to work with feature layers and feature services.

Geocode and search

Learn how to find addresses, businesses, and places with the geocoding service.

Route and directions

Learn how to find a route and directions and service areas with the routing service.

Demographic data

Learn how to get demographic data with the GeoEnrichment service.

Get started

To access the services, you need an developer account and an API key from your dashboard.

1. Sign up for a free developer account

Create a free account

2. Get an API key

Sign in to your developer dashboard

3. Quick start

Below is a simple example that shows the results of a request to obtain layer metadata. To access layer data:

  1. Open the code in .
  2. Replace the apiKey with your API key from the dashboard.
CDNES ModulesNode JS
Change line
<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>ArcGIS REST JS</title>
    body {
      font-family: monospace;
      color: white;
    pre {
      overflow: auto;
      padding: 1rem;
      background: #000000;
  <pre id="result"></pre>

  <!-- require ArcGIS REST JS libraries from -->
  <script src=""></script>
  <script src=""></script>
    /* when including ArcGIS REST JS all exports are available
    from the same arcgisRest global */

    const apiKey = "YOUR-API-KEY";

    const authentication = new arcgisRest.ApiKey({
      key: apiKey

    arcgisRest.request("", {
      .then(response => {
        document.getElementById("result").textContent = JSON.stringify(response, null, 2);




4. Tutorials

Follow step-by-step tutorials to learn more about how to integrate ArcGIS REST JS with other location services.

See all tutorials