New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@urbankitstudio/atlas

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urbankitstudio/atlas

JS SDK for the UrbanKit County Parcel REST API Atlas: 494 counties across all 50 US states and DC, 494 verified public ArcGIS REST endpoints for county parcel data, with searchable field metadata, sample queries and license info, plus verified city code-v

Source
npmnpm
Version
0.6.39
Version published
Weekly downloads
1K
-56.04%
Maintainers
1
Weekly downloads
 
Created
Source

@urbankitstudio/atlas

Socket Badge

JS SDK for the UrbanKit County Parcel REST API Atlas — a curated index of public ArcGIS REST endpoints for US county parcel data, with searchable field metadata, sample queries, and license info.

Use it to:

  • Look up the parcel REST endpoint for a given US county (e.g. Kane County, IL).
  • Discover which fields are searchable on each endpoint (PIN, owner name, address).
  • Build deep-links into the UrbanKit parcel lookup tool.

The data is the same set powering urbankitstudio.com/parcel-atlas, bundled offline so your code does not need to make a runtime network request.

Install

npm i @urbankitstudio/atlas

Works in Node.js (>=18) and modern bundlers (Vite, webpack, esbuild, Rollup, Next.js, Remix). Ships ESM + CJS with full TypeScript types. No runtime dependencies. sideEffects: false.

Quick start

1. List populated states

import { listStates } from "@urbankitstudio/atlas";

const populated = listStates().filter((s) => s.populated);
// [{ slug: "arizona", name: "Arizona", abbrev: "AZ", countyCount: 1, ... }, ...]

2. Look up a county by slug

import { findCounty } from "@urbankitstudio/atlas";

const kane = findCounty("illinois", "kane-county");
if (kane) {
  console.log(kane.endpoints[0].url);
  // → https://gis.kanecountyil.gov/...

  const pin = kane.endpoints[0].searchFields.find((f) => f.name === "PIN");
  console.log(pin?.label);
  // → "Parcel Identification Number (PIN)"
}

findState, findCounty and listCountiesByState look a state up by its slug, and a two-letter abbreviation is also accepted, so findCounty("IL", "kane-county") finds Kane too. The 50 states and DC read as their slug, by the same rule as the hosted MCP server and the REST API, and any other input is read as a slug unchanged, so "pr" finds nothing.

3. Look up a county by FIPS code

import { findCountyByFips } from "@urbankitstudio/atlas";

const kane = findCountyByFips("17089"); // 5-digit county FIPS (state + county)
if (kane) {
  console.log(kane.county, kane.stateSlug);
  // → Kane illinois
}
// Unknown, malformed, or non-5-digit input returns undefined (never throws).
import { findCounty, buildParcelLookupDeepLink } from "@urbankitstudio/atlas";

const kane = findCounty("illinois", "kane-county")!;
const link = buildParcelLookupDeepLink(kane.endpoints[0]);
// → https://urbankitstudio.com/tools/parcel-lookup?endpoint=https%3A%2F%2F...

// Pass the county record as well and its primary layer (endpoints[0]), when
// that layer refuses typed search or several counties share it, links to the
// county's own page, which scopes it. Any other endpoint keeps the generic link:
const alachua = findCounty("florida", "alachua-county")!;
buildParcelLookupDeepLink(alachua.endpoints[0], undefined, alachua);
// → https://urbankitstudio.com/tools/parcel-lookup/florida/alachua-county

For single-address owner lookups in the browser, the free [Owner Lookup](https://urbankitstudio.com/tools/owner-lookup) tool reads the same county layers this package indexes.

API

FunctionReturns
listStates()StateIndexEntry[] — all 50 states and DC + populated flag
findState(stateSlug)StateFile | undefined
findCounty(stateSlug, countySlug)CountyRecord | undefined
findCountyByFips(fips)CountyRecord | undefined — match by 5-digit county FIPS
listCountiesByState(stateSlug)CountyRecord[]
buildParcelLookupDeepLink(endpoint, base?, county?)URL string into the UrbanKit lookup tool; with county, the county route when the endpoint is that county's flagged or shared primary layer
canonicalLayerUrl(url)one key per layer: host + path, scheme, default port, query, fragment, a trailing /query and case folded away
offersAttributeSearch(endpoint)false when the layer refuses a where clause (attributeSearch: "unsupported"); query it by geometry instead
countyOffersAttributeSearch(county)true when any of the county's layers takes a where clause
offersPagination(endpoint)false when the layer refuses resultRecordCount and resultOffset (supportsPagination: false); send one request without them, see below
slugify(s), countySlugFromName(s)string helpers matching the atlas slug convention
statePath(slug), countyPath(state, county)URL paths under /parcel-atlas
listCities(filter?)CitySummary[] — every covered city, narrowed by state, kind (violations, permits, zoning) or countySlug
findCity(ref, state?)CitySummary[] — by slug, name, "Name, ST" or alias; 0, 1 or many (an ambiguous name is a list)
getCityProperty(slug), getCityZoning(slug)CityPropertyRecord | undefined, CityZoningRecord | undefined — the registry records; county records' relatedPropertyCitySlug / relatedZoningCitySlug resolve here
cityDatasets(slug, kind?)CityDatasetDescriptor[] — provider, endpoint, lookup mode, columns, scope where, field map, status buckets, freshness, query template, sample query and a query note
buildCityQuery(dataset, street)the URL urbankitstudio.com sends for that dataset and street (on a table that splits the address into columns, the street name is derived first; see below); null when the lookup needs a point or a parcel id first
citiesForCounty(stateSlug, countySlug)CitySummary[] — the covered cities inside one atlas county
cityPath(slug, kind)URL path of the city's page under /tools/property-report or /tools/zoning-cases
pausedAnswer(entry, record, page?)CountyPausedAnswer — the coverage block (status: "paused") the hosted API returns for a county paused by its terms or a law; which counties are paused is live data at GET https://urbankitstudio.com/api/atlas/status (paused)
accessBlocks(entry, flag), flagsFor(preset), pausedFlags(flags), presetOf(flags)the seven surface flags (ACCESS_FLAGS: paid_lookup, paid_enrich, paid_bulk, paid_lists, free_site_lookup, free_site_lists, free_discovery) and the presets paid-off, paid-lists-off, all-off (PRESET_FLAGS); accessBlocks says whether one surface is paused for a county

The full typed root is also exported as atlas:

import { atlas } from "@urbankitstudio/atlas";

atlas.version;          // string
atlas.lastUpdated;      // ISO date
atlas.totals;           // { states, counties, endpoints }
atlas.byStateSlug;      // Map<stateSlug, StateFile>

City datasets: code violations, building permits, zoning cases

The package also bundles the two city registries behind urbankitstudio.com/tools/property-report and urbankitstudio.com/tools/zoning-cases: for each covered city, the public open-data endpoint (Socrata, ArcGIS, CKAN or CARTO) that serves its code violations, building permits or zoning cases, the column an address search runs against, the date column, any filter that is part of the dataset's definition, and the field map the site renders from. buildCityQuery returns the exact URL the site sends, so what you fetch is what a visitor to the page fetches.

import { findCity, cityDatasets, buildCityQuery } from "@urbankitstudio/atlas";

const [dallas] = findCity("Dallas, TX");          // [] when not covered, many when ambiguous
for (const ds of cityDatasets(dallas.slug, "permits")) {
  const url = buildCityQuery(ds, "Commerce");      // the street line only; a name alone matches the most
  if (url) {
    const rows = await (await fetch(url)).json();  // you run the query; this package never fetches
    console.log(ds.provider, ds.freshness.lastVerified, rows.length);
  } else {
    console.log(ds.queryTemplate);                 // a point or parcel lookup: {LON},{LAT} placeholder
  }
}

Three lookup modes appear in dataset.lookup. address is a case-insensitive substring match on dataset.addressField (the common case); the street is escaped for the provider's SQL by buildCityQuery, which is why an address lookup carries no paste-in template, and the LIKE wildcards % and _ stay active as they do on the site. A dataset that sets houseNumberSpaceRuns (only Orlando's, whose tables store two or three spaces after the house number: 4274 TATUM ST) also matches the space after a leading house number as a run of one to four spaces, or the spacing as typed, and nothing else, so 4274 Tatum St finds them but not 4274 OLD TATUM ST; every other dataset matches the spacing as typed. When dataset.addressParts lists more columns than addressField (Dallas violations store str_num, str_prefix, str_nam, str_suffix), the name column holds the street name alone, so buildCityQuery matches the derived name: the typed house number comes off, then a leading directional when the table has a direction column, then one trailing street type when it has a type column (a strip that would leave a lone letter, no letter or digit, or only a direction or type word a leading directional exposed, as N St would become St, is not applied past the house number: 100 N St sends N St, 100 % and 100 E are sent as typed, while 100 Court St sends Court, and 2600 South Blvd sends South where the table has a type column); streetForDataset returns that name, and every row on the street comes back for you to filter by house number. A dataset that keeps the house number in its own column (streetNumberField: Los Angeles violations, Fort Worth permits, Scottsdale violations) matches the number on that column and the name on addressField; a street typed without a number gets the same trimming, so Funtier Ct is matched as Funtier and South St as South. location means the docket is published on parcel shapes with no address column (Denver, Charlotte): geocode the address yourself and put the WGS84 point into queryTemplate where {LON},{LAT} stands. parcel (New York) is keyed by parcel id; queryNote spells out the two joins. scopeWhere, when present, is part of the dataset's definition and belongs in every query. freshness.lastVerified is the date the registry entry was last checked by hand and latestRecordDate, when present, the newest record seen then. Socrata throttles anonymous callers, so send your own X-App-Token header for volume.

Owner names: the property field maps name no owner or taxpayer column, and the zoning field maps carry column names only (never values). Owner lookups are the atlas's county layers, not these datasets.

status is a publish-time claim, not a live signal

This package ships static JSON and makes no network calls, so status and lastVerified on every endpoint describe what was true when the version you installed was published. status: "live" means a check passed before publish — not that the endpoint is up right now. A county can go down the day after a release and every installed copy keeps saying "live" until the next one.

The distinction is not hypothetical: on 2026-08-04 a county was being served as "live" from its registry entry while the liveness probe had it down that same afternoon.

For the current answer, ask the health endpoint — no API key, refreshed every two hours:

import { LIVE_STATUS_URL } from "@urbankitstudio/atlas";

const res = await fetch(`${LIVE_STATUS_URL}?fips=17089`);
const health = await res.json();
// { ok: true, found: true, county_fips: "17089",
//   status: "ok" | "degraded" | "down" | "unknown",
//   consecutive_failures, last_ok_at, checked_at }

Two cases to handle rather than ignore:

  • found: false means no observation exists — the county may be untracked or never probed. It is not a statement that the endpoint is healthy.
  • A 503 means the health store itself was unreachable. Also not a health claim.

Treat both as unknown. Neither should render as "up".

Omit ?fips= to get every tracked county in one call.

Some layers refuse pagination

An endpoint may carry supportsPagination: false and a maxRecordCount. That layer answers any resultRecordCount or resultOffset, in any letter case, with HTTP 200 and an error body instead of rows:

{"error":{"code":400,"message":"Pagination is not supported."}}

Check offersPagination(endpoint) before adding either parameter. When it is false, send one request without them. The layer returns at most maxRecordCount rows and sets exceededTransferLimit when more matched, so narrow the where clause or the geometry instead of paging. The endpoint's sampleQuery already has that shape. maxRecordCount is what the layer declared when it was registered; the response's exceededTransferLimit is the authority on whether a result was cut.

import { findCountyByFips, offersPagination } from "@urbankitstudio/atlas";

const endpoint = findCountyByFips("17089")!.endpoints[0];
const params = new URLSearchParams({ where: "1=1", outFields: "*", f: "json" });
if (offersPagination(endpoint)) params.set("resultRecordCount", "100");

An absent supportsPagination means the layer pages; true is never written.

addedAt is the one date that never moves

A county may carry addedAt (YYYY-MM-DD): the date it entered the atlas. It is optional, because counties added before 2026-10-05 carry none, and it is the only date here that is not re-stamped: lastVerified moves on every re-verification, so a county verified yesterday can look brand new. When you need to know whether a county is new to the atlas rather than recently checked, read addedAt and fall back to the oldest lastVerified only when it is absent.

Coverage today

The atlas bundles 494 counties across all 50 US states and DC (494 verified endpoints), covering the largest counties in each state, every county in Mississippi and 98 of North Carolina's 100. Call listStates() to enumerate the full set.

Every state has at least one county on record, and 467 of the 494 carry a verified endpoint. The other 27 have hasPublicRest: false and an empty endpoints array, with a coverage block that gives the reason code and one sentence to show as is, notes with the detail, and a contact for the county office. The reasons vary. A county sells its owner data, runs no public query service, puts one behind a login or under terms that bar us from serving it, publishes a layer without owner names or with them blank, or runs a service that is down, stale or technically unusable. They ship rather than being omitted, so findCounty() still resolves them, and coverageAnswer() turns any of them into the answer the hosted MCP server and the REST API give. Check hasPublicRest rather than assuming every county has an endpoint; totals.countiesWithEndpoint gives the queryable count directly.

The city registries cover 30 cities with code-violation or building-permit datasets, 19 with zoning-case datasets. Call listCities() for the current set.

Counties and cities are added as their public endpoints are verified. Package versions bump when data refreshes — pin to a minor range (^0.x) to receive new counties and cities without breaking changes.

The live, browseable atlas lives at urbankitstudio.com/parcel-atlas.

Socket flags urlStrings — that's the atlas, not a leak

Socket's supply-chain scanner flags this package for urlStrings: code and data containing many literal URLs. That flag is doing its job correctly, and the answer is not to hide the URLs — they are the product. Every one is a public, government-run ArcGIS REST endpoint for county parcel data, plus the two urbankitstudio.com URLs this SDK references for live status (LIVE_STATUS_URL, above) and parcel-lookup deep links. The package does not call any of them itself; it hands them to you as data (sideEffects: false, zero runtime dependencies).

Socket also flags unpopularPackage — a download-count signal, not a code issue, that install growth resolves on its own.

Attribution

The parcel layers the atlas points to belong to their publishers. These publishers require or request credit when their data is reused, and each record listed here ends its notes with the same Credit: line.

RecordsPublisher's termsCredit
co-el-paso, co-jefferson, co-arapahoe, co-adams, co-douglas, co-larimer, co-boulder, co-weld, co-mesa, co-park (the State of Colorado's Colorado_Public_Parcels service)The service's copyright text names this statement as sufficientState of Colorado Public parcels were accessed on 2026-10-17 from https://gis.colorado.gov/public/rest/services/Address_and_Parcel
md-montgomeryReuse allowed, attribution requestedMontgomery County Planning Department (M-NCPPC)
md-prince-georgesReuse allowed, attribution requestedPrince George's County Planning Department (M-NCPPC)
nc-wakeCC BY 4.0Wake County (Wake County GIS, Wake County Revenue)
ca-sonomaCC BY-SA 3.0 USCounty of Sonoma
ca-sacramentoCC BY 4.0 in the county's catalog (the item itself says public domain)Sacramento County GIS
dc-district-of-columbiaCC BY 4.0District of Columbia

License

MIT — see LICENSE. © 2026 UrbanKit Studio.

This package's atlas dataset (the open discovery layer — county → REST endpoint mappings and field metadata) is provided under MIT. Live, always-fresh and enriched data — geocoding, address→parcel resolution, bulk enrichment, and the data-availability SLA — are the paid UrbanKit Studio API.

Keywords

parcel

FAQs

Package last updated on 18 Oct 2026

Related posts