@esri/arcgis-rest-request

Common methods and utilities for ArcGIS REST JS packages.

Install

Use dark colors for code blocksCopy
1
npm install @esri/arcgis-rest-request

Import

@esri/arcgis-rest-request is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
1
import * as requestTools from "@esri/arcgis-rest-request"
Use dark colors for code blocksCopy
1
const requestTools = require("@esri/arcgis-rest-request");

CDN

You can use @esri/arcgis-rest-request as an ES Module from the esm.run CDN.

Use dark colors for code blocksCopy
1
2
3
<script type="module">
  import * as requestTools from "https://esm.run/@esri/arcgis-rest-request@4.2.3";
</script>

You can also use @esri/arcgis-rest-request from a script tag. All exports will be added to a global arcgisRest object.

Use dark colors for code blocksCopy
1
2
3
4
<script
  src="https://unpkg.com/@esri/arcgis-rest-request@4.2.3/dist/bundled/request.umd.min.js"
  integrity="sha512-bsrIB9+E7zPTAkH4m9xEq1M9zjinqocAgFzrkyEPfW6+S9LvVm7BT2PlZXNTaftu7HJpCuOdQmNEr0wJBuFFuA==">
</script>

Exports

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.