@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 Skypack CDN.

Use dark colors for code blocksCopy
   
1
2
3
<script type="module">
  import * as requestTools from "https://cdn.skypack.dev/@esri/arcgis-rest-request@4.0.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.0.3/dist/bundled/request.umd.min.js"
  integrity="sha512-Ymiq/9/DRdBpPN34O0hPJkmXPiBRy20S+3NsUtsjV5/a0BJ+yWMAyIpepYBDMqmC1EgWX8+v4LNwtDU34WHqQw==">
</script>

Exports

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