Skip to content

@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.7.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.7.3/dist/bundled/request.umd.min.js"  integrity="sha512-i/2GghEwn1m2o3+lMGMqsG0hR72sxon9CTk3rdfKSnIf5ZyqqjgdLfvHiujGYRS5vo4vc9MxdbXLkVB/yXxOJQ=="> </script>

Exports

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