/arcgis-sdks-and-apis-plugin:build-with-arcgis-rest-jsfrom arcgis-sdks-and-apis-plugin
Provides modular JavaScript wrappers for the ArcGIS REST API, handling authentication, feature services, geocoding, routing, portal operations, and more in Node.js and browsers.
Ships in arcgis-sdks-and-apis-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ArcGIS REST JS is a suite of compact, modular JavaScript wrappers for the ArcGIS REST API that runs in Node.js and modern browsers. It handles authentication workflows and includes packages for developer credentials, feature services, portal operations, elevation, geocoding, demographics, places, routing, basemap sessions, and generic REST API requests. "ArcGIS REST JS" is synonymous with "REST JS" in this skill and in general.
Use ArcGIS REST JS for programmatic access to ArcGIS resources and operations from a browser or Node.js environments using a modular, package-based API instead of manually composing REST requests; and managing, building, and handling authentication objects, classes, request objects, and error objects for ArcGIS services.
Choose packages related to user task:
@esri/arcgis-rest-request@esri/arcgis-rest-feature-service@esri/arcgis-rest-geocoding@esri/arcgis-rest-places@esri/arcgis-rest-routing@esri/arcgis-rest-demographics@esri/arcgis-rest-portal@esri/arcgis-rest-developer-credentials@esri/arcgis-rest-basemap-sessionsIf the application's development requirements are unclear, use the gather-arcgis-application-requirements skill to review project context and clarify consequential unknowns before proceeding. Then apply this skill's technology-specific guidance, reusing requirements already clear from the request or project.
Developers must have one of the following ArcGIS accounts to create applications: ArcGIS Location Platform (free), or ArcGIS Online or ArcGIS Enterprise with a Creator, Professional, or Professional Plus user type. The account's user type, role, and privileges provide access to different resources and operations.
DO NOT SKIP: Refer to the follow-arcgis-authentication-patterns skill for ArcGIS authentication requirements, including the appropriate type of authentication for different audiences, use cases, and types of application. If the skill is not available, search the project for any existing authentication patterns, and if none are found, query the Esri MCP server for developer documentation for authentication best practices.
Refer to the installation guide via MCP or doc query for instructions and code samples on how to install ArcGIS REST JS in a client browser or node.js environment. Prefer ESM over CommonJS. Use CDN setup when appropriate.
Try to infer requirements based on existing project files and the wording of the prompt. If uncertain, ask for clarification before proceeding.
Use CDN setup with an import map to load ArcGIS REST JS modules in a browser environment without a bundler. CDN setup with a script tag is also possible, and the loaded packages will be added each individually as a property to globalThis.arcgisRest.
Use NPM to install ArcGIS REST JS in a Node.js environment or when using a bundler:
npm install @esri/arcgis-rest-js
Import the desired modules from @esri/arcgis-rest-js as the following example:
import { request } from "@esri/arcgis-rest-js";
For existing applications, ensure that the installed version of ArcGIS REST JS is compatible with your project. If upgrading from an older version, review the Release Notes and Migration Docs for any breaking changes or required code modifications. Update your import statements and usage patterns as necessary to align with the current version of the library.
Installing this skill individually does not configure Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation). Add that server at https://developers-mcp.arcgis.com/mcp using your client's MCP settings, or install the full ArcGIS SDKs and APIs plugin (arcgis-sdks-and-apis-plugin). If the MCP server is unavailable, consult the linked official Esri documentation.
Documentation should be queried using the Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation):
https://developers-mcp.arcgis.com/mcp
Use the search_esri_developer_docs tool to surface authoritative documentation pages with arcgis-rest-js as the focus_area parameter in addition to a specified search_term. Use the fetch_esri_developer_doc tool with the page_url parameter set to return the full content of a documentation page in Markdown format.
Clearly indicate any recommendations and assumptions that are not grounded in the official documentation. If the MCP server is unavailable, consult official documentation URLs below.
Official references - Use the Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation) for all documentation lookup. Fall back to fetching documentation URLs if it is unavailable.
ArcGIS REST JS Introduction - Use this for a quick overview of the purpose, capabilities, and contents of ArcGIS REST JS as a library, tool, and product. Ideal for basic queries about REST JS
ArcGIS REST JS API reference - Use for quick reference and technical lookup, and during implementation for all ArcGIS REST JS packages, classes, interfaces, types, enums, implementation details, and configuration steps. Use for discovering and confirming function signatures, options, parameters, and return contracts. Prefer this documentation as the ultimate source of truth for developing applications with REST JS.
ArcGIS REST JS GitHub Repo - Source code to the open source ArcGIS REST JS library.
Authentication - Use this link for examples of using ArcGIS REST JS to authenticate and sign in with an API key, or ApiKeyManager, ArcGISIdentityManager, or ApplicationCredentialsManager classes for API key, user, or app credentials authentication on a browser or node.js server environment.
Installation - Use this link for instructions on how to install ArcGIS REST JS in your project.
Create an API key - Use this link for examples how to use REST JS to create an API key programmatically.
Release Notes and Migration Docs - Use this link for new release notes, and migration guide instructions between versions, and for troubleshooting version regressions, incompatibilities, breaking changes, and core updates.
System Requirements - Use this when troubleshooting and verifying system compatibility prerequisites for REST JS.
Data, Datasets and Open Data - Use this to find resources for data sources, open data, test data, layers, map layers, feature layers, services, free, public, and private datasets.
Errors and Error Handling - Use this for a basic summary of the different errors in REST JS and how to handle them effectively.
Querying Data with Feature Services - Use this link for an overview of data services and for examples of using arcgis-rest-feature-service to query features from a data service, hosted data service, feature service, and feature layer.
Geocoding - Use this link for an overview of geocoding and for examples of using arcgis-rest-geocoding for geocoding, address search, autosuggest, and reverse geocoding.
Routing - Use this link for an overview of routing and for examples of using arcgis-rest-routing to find routes, directions, and service areas.
Places - Use this link for an overview of the places API and for examples of using arcgis-rest-places to discover and search places nearby, on a map.
Data Enrichment - Use this link for an overview of data enrichment and how to use arcgis-rest-demographics to access global demographic data, and the ArcGIS GeoEnrichment service.
Elevation - Use this link for examples of using arcgis-rest-elevation to find the elevation of points or locations on a map.
Spatial Analysis - Use this link for an overview and code examples to perform spatial analysis.
Before recommending implementation steps, gather:
Agent guidance and security requirements:
For ArcGIS REST JS, provide validation steps that can be used by the agent to verify its work. This should include:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub esri/esri-developer-agent-skills --plugin arcgis-sdks-and-apis-plugin15 skills in this plugin
/build-with-arcgis-and-cesiumjsBuild and troubleshoot browser-based 3D mapping apps with CesiumJS and ArcGIS. Use for ArcGIS basemaps, terrain, feature and map services, I3S/scene layers, geocoding, routing, places, and spatial analysis. Guide setup, authentication, ArcGIS REST JS integration, coordinate handling, attribution, and performance using current Esri documentation./build-with-arcgis-and-openlayersUse to build, extend, and troubleshoot browser based mapping applications with OpenLayers and ArcGIS services. Covers how to combine OpenLayers with ArcGIS basemaps, feature services, vector or raster tiles, location services, geocoding, routing, places, elevation, or secure ArcGIS resources. Includes ESM setup, ol-mapbox-style, ArcGIS REST JS, API keys and OAuth, projections, queries and pagination, styling, popups, editing, attribution, and performance./build-with-arcgis-api-for-pythonUse when working with ArcGIS API for Python (ArcGIS Python API, Python API for ArcGIS, Esri Python API), the arcgis Python package/library/module, or arcgis-mapping (arcgis.map). Covers scripts/notebooks, setup, authentication, Spatially Enabled DataFrames (SEDF), queries/edits, publishing, portal administration, cloning/dependencies, Web Maps/Web Scenes, analysis, geocoding, routing and arcgis.ai for ArcGIS Online, Enterprise and Location Platform. Not for ArcPy-only tasks or non-Python SDKs./build-with-arcgis-maplibreUse for displaying maps in a browser environment with MapLibre GL JS and ArcGIS services with @esri/maplibre-arcgis: Render ArcGIS basemaps, styles, sessions, feature layers, vector tiles, queries, and location services with authentication. Covers install, setup, debug, documentation, best practices, guidelines, explanations, and validation./build-with-arcgis-maps-sdk-for-dotnetUse this skill when building or extending native GIS applications with ArcGIS Maps SDK for .NET. Choose it for WPF or WinUI apps on Windows, or .NET MAUI apps for Windows, Android, iOS, and Mac Catalyst. Follow its guidance to set up and license the SDK, configure authentication, display 2D maps and 3D scenes, use ArcGIS Online, ArcGIS Enterprise, or ArcGIS Location Platform maps and services, and implement location, offline workflows, geocoding, routing, spatial analysis, editing, and synchronization. Use it for SDK-specific architecture, toolkit integration, validation, and platform considerations; consult follow-esri-authentication-patterns to select an authentication model./build-with-arcgis-maps-sdk-for-flutterUse this skill to build, extend, debug, and explain native iOS and Android apps with ArcGIS Maps SDK for Flutter. Guide SDK setup, authentication, maps and scenes, layers, location, offline workflows, and optional Toolkit widgets.Other plugins' skills for the same job