{"schemaVersion":1,"resourceType":"connector","slug":"arcgis","name":"ArcGIS","catalog":"arcgis","description":"Live ArcGIS feature queries, server summaries and raster sampling from service URLs worldwide","language":"TypeScript","categories":["geo"],"repository":"https://github.com/Query-farm/vgi-arcgis","license":"0BSD","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.7.0","publishedAt":"2026-11-25T06:05:08Z","url":"https://github.com/Query-farm/vgi-arcgis/releases/tag/v0.7.0"},"links":{"html":"https://query.farm/products/orchard/connectors/arcgis/","llms":"https://query.farm/products/orchard/connectors/arcgis/llms.txt","markdown":"https://query.farm/products/orchard/connectors/arcgis/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/arcgis.json","objects":"https://query.farm/products/orchard/api/v1/connectors/arcgis/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=arcgis&q={query}"},"authentication":{"mode":"optional","guidance":"Public ArcGIS services need no credentials; add them only for token-secured services.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"arcgis","description":"Credentials for token-secured ArcGIS REST services (ArcGIS Server, ArcGIS Enterprise and ArcGIS Online) read by arcgis_query: a pre-generated ArcGIS token, an ArcGIS username and password, or an ArcGIS OAuth app's client_id and client_secret. Give it a SCOPE (a URL prefix such as 'https://host/arcgis/rest/services/') so it is only sent to that server; the longest matching scope wins.","documentation":"https://developers.arcgis.com/documentation/security-and-authentication/","parameters":[{"name":"token","type":"VARCHAR","required":false,"redact":true,"description":"A pre-generated ArcGIS token (from the server's generateToken page, or an ArcGIS Online API key), sent as the token parameter as is. Generate it with client=requestip, or with referer https://github.com/Query-farm/vgi-arcgis. It is not renewed when it expires."},{"name":"username","type":"VARCHAR","required":false,"redact":false,"description":"ArcGIS Server, ArcGIS Enterprise or ArcGIS Online user name; exchanged with password for a token at the server's token service (authInfo.tokenServicesUrl of <server>/rest/info)."},{"name":"password","type":"VARCHAR","required":false,"redact":true,"description":"Password of username. Sent only to the server's token service, over HTTPS."},{"name":"client_id","type":"VARCHAR","required":false,"redact":false,"description":"Client ID of an ArcGIS OAuth application (ArcGIS Online or an ArcGIS Enterprise portal: Content > the app item > Settings), used with client_secret for the client-credentials flow."},{"name":"client_secret","type":"VARCHAR","required":false,"redact":true,"description":"Client secret of the OAuth application named by client_id. Sent only to the portal's oauth2/token endpoint, over HTTPS."}],"requiredBy":[],"createSql":"CREATE SECRET arcgis (\n    TYPE arcgis,\n    token         '<ARCGIS_TOKEN>',  -- secret\n    username      '<username>',\n    password      '<ARCGIS_PASSWORD>',  -- secret\n    client_id     '<client_id>',\n    client_secret '<ARCGIS_CLIENT_SECRET>'  -- secret\n);"}]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'arcgis' AS arcgis (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-arcgis'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'arcgis' AS arcgis (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-arcgis:0.7.0'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'arcgis' AS arcgis (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-arcgis@v0.7.0'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'arcgis' AS arcgis (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-arcgis:0.7.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-arcgis","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=arcgis","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'arcgis' AS arcgis (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-arcgis'\n);","attachOptions":[{"name":"url","type":"VARCHAR","description":"ArcGIS REST URL to expose as tables: a services directory (.../arcgis/rest/services or a folder), a service (.../FeatureServer or .../MapServer) or a single layer (.../FeatureServer/0); or an ArcGIS Hub / Open Data site (https://<site>, one schema per service in its catalog) or one of its dataset pages (https://<site>/datasets/<id>, resolved to the REST layer or service). Omit it to use the ArcGIS query, summary and imagery functions without catalog views.","required":false,"default":null},{"name":"precision","type":"INTEGER","description":"Decimal places kept in returned coordinates (ArcGIS geometryPrecision), 0-15. 7 is about 1 cm in longitude/latitude.","required":false,"default":"7"},{"name":"token","type":"VARCHAR","description":"A pre-generated ArcGIS token for token-secured services, sent as the token parameter on requests to the ATTACH url's server only (credentials require url). Not renewed: when it expires, attach again. Pass it as token getenv('ARCGIS_TOKEN') to keep it out of the SQL text.","required":false,"default":null},{"name":"username","type":"VARCHAR","description":"ArcGIS Server, ArcGIS Enterprise or ArcGIS Online user name. With password, the worker generates tokens at the server's token service (from <server>/rest/info) and renews them before they expire.","required":false,"default":null},{"name":"password","type":"VARCHAR","description":"Password for username, sent only to the server's token service over HTTPS. Pass it as password getenv('ARCGIS_PASSWORD').","required":false,"default":null},{"name":"client_id","type":"VARCHAR","description":"Client ID of an ArcGIS OAuth application (ArcGIS Online or an ArcGIS Enterprise portal). With client_secret, the worker gets app tokens with the OAuth client-credentials flow and renews them.","required":false,"default":null},{"name":"client_secret","type":"VARCHAR","description":"Client secret of the OAuth application named by client_id, sent only to the portal's oauth2/token endpoint over HTTPS. Pass it as client_secret getenv('ARCGIS_CLIENT_SECRET').","required":false,"default":null}],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Count the parcels in Covington, Virginia (FIPS 51580); the filter runs on the ArcGIS server","sql":"SELECT LOCALITY, count(*) AS parcels FROM arcgis.main.arcgis_query('https://vginmaps.vdem.virginia.gov/arcgis/rest/services/VA_Base_Layers/VA_Parcels/FeatureServer/0') WHERE FIPS = '51580' GROUP BY ALL","requiresCredentials":null,"note":null,"objects":[{"name":"arcgis.main.arcgis_query","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/arcgis/#obj-main-arcgis_query","markdown":"https://query.farm/products/orchard/connectors/arcgis/objects/table_function.bWFpbg.YXJjZ2lzX3F1ZXJ5.md","json":"https://query.farm/products/orchard/api/v1/connectors/arcgis/objects/table_function.bWFpbg.YXJjZ2lzX3F1ZXJ5.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:12:39+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.7.0","sample":{"columns":["LOCALITY","parcels"],"types":["VARCHAR","BIGINT"],"rows":[["Covington City",5811]],"more":false}},"artifact":null},"objects":{"total":4,"index":"https://query.farm/products/orchard/api/v1/connectors/arcgis/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=arcgis&q={query}"},"agentTasks":["Count New York counties at https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/State_County/MapServer/1 using a server-side count without downloading features. New York's STATE FIPS is 36.","Using https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/State_County/MapServer/1, count non-null OBJECTID values grouped by STATE for New York (36), computing the statistic on the server. Return exactly the columns group_value and statistic_value, ordered by group_value.","Sample elevation in meters at longitude -77.0365, latitude 38.8977 from https://elevation.nationalmap.gov/arcgis/rest/services/3DEPElevation/ImageServer using the imagery function. Save the answer as a temporary table white_house_elevation with one DOUBLE column elevation_m.","Using the arcgis worker, how many parcels does the Virginia statewide parcel layer (https://vginmaps.vdem.virginia.gov/arcgis/rest/services/VA_Base_Layers/VA_Parcels/FeatureServer/0) have in Covington City (FIPS 51580)? Save the answer as a temporary table covington_parcels with one BIGINT column parcels.","Which Virginia independent city has the most land parcels per square mile? Count parcels per FIPS code on the server from the statewide parcel layer (https://vginmaps.vdem.virginia.gov/arcgis/rest/services/VA_Base_Layers/VA_Parcels/FeatureServer/0, field FIPS) and divide by each city's AREASQMI from the cities and counties layer (https://vginmaps.vdem.virginia.gov/arcgis/rest/services/VA_Base_Layers/VA_Admin_Boundaries/FeatureServer/1, where cities have JURISTYPE 'CI' and STCOFIPS is the FIPS code). Save the answer as a temporary table densest_city with one row and one VARCHAR column name holding the city's NAME.","Using the cities and counties layer at https://vginmaps.vdem.virginia.gov/arcgis/rest/services/VA_Base_Layers/VA_Admin_Boundaries/FeatureServer/1, which is larger by area: Covington or Buena Vista? Return only the winning city's NAME column."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-arcgis","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":1,"passed":1,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-arcgis@v0.7.0","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:09:55+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}