{"id":20334882,"url":"https://github.com/mdb/archaeologist","last_synced_at":"2025-04-11T21:51:26.367Z","repository":{"id":6940947,"uuid":"8192519","full_name":"mdb/archaeologist","owner":"mdb","description":"A thin Node.js client for working with the ESRI ArcGIS Server REST API.","archived":false,"fork":false,"pushed_at":"2014-08-28T11:39:40.000Z","size":183,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T18:16:15.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-14T02:35:41.000Z","updated_at":"2019-04-11T02:20:22.000Z","dependencies_parsed_at":"2022-09-14T06:10:33.654Z","dependency_job_id":null,"html_url":"https://github.com/mdb/archaeologist","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Farchaeologist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Farchaeologist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Farchaeologist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Farchaeologist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/archaeologist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:38:28.579Z","updated_at":"2025-04-11T21:51:26.342Z","avatar_url":"https://github.com/mdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mdb/archaeologist.png?branch=master)](https://travis-ci.org/mdb/archaeologist)\n\n# Archaeologist\n\nA thin Node.js client for working with the [ESRI ArcGIS Server REST API](http://gis.phila.gov/ArcGIS/SDK/REST/index.html?catalog.html).\n\nThe ESRI ArgGIS Server Rest API is somewhat confusing. Archaeologist seeks to help.\n\n## Example Usage\n\nBasic usage:\n\n```javascript\nvar Arc = require('archaeologist');\nvar arc = new Arc({\n  apiHost: 'http://host.com',\n  apiPathBase: '/path/to/service'\n});\n\narc.get({where: \"SOMEFIELD='SomeValue'\"}, function (error, data) {\n  /*\n  performs a get request to:\n  http://host.com/path/to/service?where=SOMEFIELD='SomeValue'\u0026returnCountOnly=false\u0026returnIdsOnly=false\u0026returnGeometry=false\u0026outSR=4326\u0026outFields=*\u0026f=json\n  */\n\n  if (error) return error;\n  console.log(data);\n});\n```\n\nOverriding default response options:\n\n```javascript\nvar Arc = require('archaeologist');\nvar arc = new Arc({\n  apiHost: 'http://host.com',\n  apiPathBase: '/path/to/service'\n});\n\narc.get({\n  where: \"SOMEFIELD='SomeValue'\",\n  returnCountOnly: true,\n  outFields: ['somefield']\n}, function (error, data) {\n  /*\n  performs a get request to:\n  http://host.com/path/to/service?returnCountOnly=true\u0026returnIdsOnly=false\u0026returnGeometry=true\u0026maxAllowableOffset=\u0026outputSpatialReference=\u0026outFields=somefield\u0026where=SOMEFIELD='SomeValue'\u0026f=json\n  */\n\n  if (error) return error;\n  console.log(data);\n});\n```\n\n## Configuration\n\nView settings:\n\n```javascript\narc.settings\n```\n\nSpecifying new settings on instantiation:\n\n```javascript\nvar arc = new Arc({\n  apiHost: 'http://host.com',\n  apiPathBase: '/path/to/service',\n  defaultResultOptions: {\n    outFields: ['field', 'anotherField'],\n  }\n});\n```\n\nView original, default settings:\n\n```javascript\narc.defaultSettings\n\n/*\n{\n  apiHost: undefined,\n  apiPathBase: undefined,\n  defaultResultOptions: {\n    returnCountOnly: false,\n    returnIdsOnly: false,\n    returnGeometry: false,\n    maxAllowableOffset: '',\n    outSR: '4326',\n    outFields: '*',\n    f: 'json'\n  }\n}\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Farchaeologist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Farchaeologist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Farchaeologist/lists"}