Get Started using a CDN

ArcGIS REST JS is hosted on unpkg. You can find URLs for individual packages in the API reference.

<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>ArcGIS REST JS</title>
  Open your console to see the demo.
  <!-- require polyfills for fetch and Promise from -->
  <script src=""></script>

  <!-- require ArcGIS REST JS libraries from -->
  <script src=""></script>

    /* when including ArcGIS REST JS all exports are available
    from the same arcgisRest global */
      .then(response => {