# Invariant Earth API: full documentation > Git for the physical world. Send a US latitude and longitude and get back everything about that piece of land: parcels, utilities and grid, hazards, terrain, climate, land cover and the built environment, 220 fields from 86 sources. Every value carries its source URL, fetch time, dataset vintage and confidence. Index: https://docs.invariant-ai.com/llms.txt --- # Introduction > Git for the physical world. Send a latitude and longitude, get back everything about that piece of land, every value cited. Source: https://docs.invariant-ai.com/ An AI agent knows the internet. It does not know the ground. Ask a frontier model about a specific piece of land: - Who owns the parcel, and how is it zoned? - Is it in a floodplain, a wetland or critical habitat? - How far is the nearest substation, and at what voltage? - What is the seismic design category, and is the air district in nonattainment? It will guess. Invariant answers from the source. Every value comes back with the agency that holds it, a URL that fetches it again, when we read it, which release of the dataset it came from and how confident we are. That is the idea in one line: **Git for the physical world. You give us a coordinate, we give you everything about that land, with the commit behind every fact: source, URL, time and dataset version.** ## Four things behind one API One key, one catalog, and one way of citing sources. - [Data](https://docs.invariant-ai.com/api/fetch): Public facts at a point, in one schema: USGS, FEMA, EPA, EIA, NOAA, USFWS, FCC and open infrastructure maps. POST /v1/fetch - [Parcels](https://docs.invariant-ai.com/api/enrich): The parcel that contains the point and the fields read off its county record. POST /v1/enrich - [Catalog](https://docs.invariant-ai.com/api/meta-fields): Every field with its unit, its sources in fallback order, its cache life and what a null means. GET /v1/meta/fields - [Agents](https://docs.invariant-ai.com/agents): Tool definitions for Claude and OpenAI, plus llms.txt and a Markdown copy of every page. ## The catalog is mostly infrastructure - **Fields:** 220 across 7 layers, from 86 sources. - **Layers:** hazards (60), utilities (57), parcels (34), terrain (25), climate (19), built environment (17), land cover (8). The utilities layer is the deepest, because power is the first question for most sites: - nearest substation, its distance and maximum voltage - nearest transmission line, its voltage class, owner and status - transmission lines and the highest voltage within a radius - the electric utility territory, average industrial power price and eGRID subregion - proposed generators nearby and the active interconnection queue in the county The full list is always live: ```bash curl -s https://api.invariant-ai.com/v1/meta/fields | jq '.fields[] | {name, layer, unit, source}' ``` ## What we won't do If we cannot cite it, we do not return it. ## Coverage - United States only: latitude 18 to 72, longitude -180 to -65 (lower 48, Alaska, Hawaii and the territories). - One coordinate per request, 1 to 50 fields per call. - Some sources are regional. `air_district_name`, for example, is California only, and returns `absent` everywhere else. - A point outside the envelope returns `400 coord_out_of_bounds`. ## Start here - [Quickstart](https://docs.invariant-ai.com/quickstart): Get a key and make your first request in two minutes. - [Get an API key](https://docs.invariant-ai.com/get-api-key): Create a free key from the docs. No account needed. - [Screen a site](https://docs.invariant-ai.com/screen-a-site): Power, flood, wetlands, habitat and the parcel for one coordinate. - [API reference](https://docs.invariant-ai.com/api/fetch): Every endpoint, its request and response, and a live Try it panel. ## For AI agents Agents can read these docs and call the API without a person in the loop. Start at [`/llms.txt`](https://docs.invariant-ai.com/llms.txt), or load the whole reference from [`/llms-full.txt`](https://docs.invariant-ai.com/llms-full.txt). Every page is also served as Markdown: add `.md` to its URL. [Use with AI agents](https://docs.invariant-ai.com/agents) has tool definitions you can paste in as they are. --- # Quickstart > From no key to your first cited value in three steps. Source: https://docs.invariant-ai.com/quickstart ## 1. Get an API key Create a key on the [Get an API key](https://docs.invariant-ai.com/get-api-key) page with your email. It is shown once, so copy it, then keep it in an environment variable: ```bash export INVARIANT_API_KEY="ief_..." ``` ## 2. Pick a coordinate Any point in the United States, as decimal latitude and longitude (WGS84). For example, Ashburn, Virginia: ```text lat 39.0438, lng -77.4874 ``` ## 3. Fetch a field ```bash curl -s https://api.invariant-ai.com/v1/fetch \ -H "X-API-Key: $INVARIANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]}' ``` ```python import os, requests r = requests.post( "https://api.invariant-ai.com/v1/fetch", headers={"X-API-Key": os.environ["INVARIANT_API_KEY"]}, json={"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]}, timeout=30, ) r.raise_for_status() f = r.json()["fields"]["elevation"] print(f["value"], f["unit"], f["source"], f["confidence"]) ``` ```javascript const r = await fetch("https://api.invariant-ai.com/v1/fetch", { method: "POST", headers: { "X-API-Key": process.env.INVARIANT_API_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ lat: 39.0438, lng: -77.4874, fields: ["elevation"] }), }); const { fields } = await r.json(); console.log(fields.elevation.value, fields.elevation.source); ``` You get back the value with its source: ```json { "value": 89.63117218, "unit": "meters", "status": "ok", "source": "USGS_3DEP_COG", "confidence": "medium", "cached": false } ``` Ask for the same point again and `cached` is `true`: the answer comes from our 24 hour cache in a fraction of the time. ## Next - [POST /v1/fetch](https://docs.invariant-ai.com/api/fetch): Send requests from the browser with your key. - [Responses](https://docs.invariant-ai.com/responses): Every key in a field object, and how to handle nulls. --- # Authentication > Send your API key on every request that reads data. Source: https://docs.invariant-ai.com/authentication ## Send the key Use the `X-API-Key` header: ```bash curl -s https://api.invariant-ai.com/v1/fetch \ -H "X-API-Key: $INVARIANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]}' ``` `Authorization: Bearer ` works too. Send one or the other; two different keys in one request return `400 auth_conflict`. ## Which routes need a key | Route | Key | | --- | --- | | `POST /v1/fetch` | Required | | `GET /v1/keys/me`, `DELETE /v1/keys/me` | Required | | `POST /v1/keys` | Not needed | | `GET /v1/meta/fields` | Not needed | | `GET /healthz`, `GET /readyz` | Not needed | ## Keep keys safe - Keys start with `ief_`. Treat them like passwords: keep them in environment variables or a secret manager, not in code or front-end bundles. - We never store a key, only its SHA-256 hash, so we cannot recover one. Create a new key instead. - Revoke a key you no longer need with `DELETE /v1/keys/me`. It stops working within a minute everywhere. ## Auth errors | HTTP | `error` | Meaning | | --- | --- | --- | | 401 | `auth_missing` | No key on the request | | 401 | `auth_invalid` | Key not recognised, or revoked | | 400 | `auth_conflict` | Two different keys sent | | 503 | `auth_unavailable` | Key service briefly unavailable; retry | --- # Pricing > What a key costs today, which fields every key can read, and which fields need an operator key. Source: https://docs.invariant-ai.com/pricing ## Today - **Keys are free.** One email address, no account and no card. [Get an API key](https://docs.invariant-ai.com/get-api-key). - **No usage charge.** There is no billing on the API, so nothing is metered to your key. You are limited only by the request limits on [Limits and caching](https://docs.invariant-ai.com/limits). - **Paid plans are not published yet.** When they are, this page will list them before anything is charged. ## What every key can read 216 of the 220 fields in the [Field catalog](https://docs.invariant-ai.com/api/field-catalog) answer for any key, including every Regrid parcel field (owner, APN, address, zoning, boundary). Terrain, hazards, climate, land cover, the built environment and every utilities field except broadband are open too. [`POST /v1/enrich`](https://docs.invariant-ai.com/api/enrich) is open to every key as well. ## Operator-only fields 4 fields read a source whose terms are not yet cleared for public serving. They answer only for Invariant operator keys. Any other key gets the field back as `null` with `status` `failed` and the reason in `notes`, and the rest of the response is unaffected. | Source | Fields | Why | | --- | --- | --- | | FCC Broadband Data Collection | `fiber_provider_count`, `fiber_broadband_available`, `mobile_5g_coverage_class` | Rights for the copy we read are not recorded for public serving | | ASCE 7-22 wind map | `design_wind_speed_mph` | Reuse rights not recorded | ## Need operator access? Write to [pranav@invariant-ai.com](mailto:pranav@invariant-ai.com) with what you are building and roughly how many points a month you need. --- # Get an API key > Create a free key in seconds. It is shown once, so copy it before you leave this page. Source: https://docs.invariant-ai.com/get-api-key To create a key, call POST /v1/keys (shown below) or use the form at https://docs.invariant-ai.com/get-api-key. ## How it works 1. Enter your email and, if you like, a name for the key. 2. We create the key and show it once. We keep only its SHA-256 hash. 3. Send it on every request in the `X-API-Key` header. ## Limits - Up to **5 active keys** per email. - Up to **5 new keys per hour** from one network. - Lost a key? Create a new one. To revoke a key, call [`DELETE /v1/keys/me`](https://docs.invariant-ai.com/api/key-revoke) with it. ## From the command line ```bash curl -s -X POST https://api.invariant-ai.com/v1/keys \ -H "Content-Type: application/json" \ -d '{"email": "you@company.com", "name": "laptop"}' ``` --- # Screen a site > Power, flood, wetlands, habitat, hazards and the parcel for one coordinate, in one request, with a source behind every answer. Source: https://docs.invariant-ai.com/screen-a-site A first-pass site screen asks the same questions every time: is there power nearby, is the land buildable, and who owns it. This workflow answers them with one call to [`POST /v1/fetch`](https://docs.invariant-ai.com/api/fetch). ## 1. Pick the fields Choose up to 50 names from the [Field catalog](https://docs.invariant-ai.com/api/field-catalog). A typical screen: | Question | Fields | | --- | --- | | Power | `nearest_substation_distance_m`, `nearest_substation_max_voltage_kv`, `nearest_transmission_line_distance_m`, `nearest_transmission_line_voltage_kv`, `electric_utility_service_territory` | | Water and flood | `within_floodplain_polygon`, `intersects_wetland`, `nearest_wetland_distance_m` | | Constraints | `intersects_critical_habitat`, `intersects_protected_area`, `intersects_conservation_easement` | | Hazards | `seismic_design_category`, `in_air_quality_nonattainment`, `nearest_superfund_distance_m` | | Land | `elevation`, `slope_degrees`, `parcel_owner`, `parcel_zoning`, `parcel_area_m2` | ## 2. Send one request ```bash curl -s https://api.invariant-ai.com/v1/fetch \ -H "X-API-Key: $INVARIANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "lat": 39.0438, "lng": -77.4874, "fields": [ "nearest_substation_distance_m", "nearest_substation_max_voltage_kv", "nearest_transmission_line_distance_m", "nearest_transmission_line_voltage_kv", "electric_utility_service_territory", "within_floodplain_polygon", "intersects_wetland", "intersects_critical_habitat", "seismic_design_category", "in_air_quality_nonattainment", "elevation", "slope_degrees", "parcel_owner", "parcel_zoning" ] }' ``` Allow 30 seconds or more on the client. The first read of a point goes live to each agency; repeat reads come from cache for each field's TTL. ## 3. Read the answers Every field comes back as an object with the same keys. Read three of them before you use the value: - **`status`**: `ok` means a value, `absent` means the source authoritatively has nothing here (no wetland is a real answer), `failed` means we could not find out. - **`source_url`**: open it to check the value against the agency record. - **`confidence`** and **`dataset_vintage`**: how precise the value is and which release it came from. Fields that `failed` also appear in `partial_failures` with `retryable`. Retry those later; the rest of the response is still good. See [Responses and provenance](https://docs.invariant-ai.com/responses). ## 4. Add the parcel record Parcel fields in `/v1/fetch` come from the parcel layer. For fields read straight off the county's parcel record, such as county acreage, call [`POST /v1/enrich`](https://docs.invariant-ai.com/api/enrich) with the same coordinate. ## Next - [Field catalog](https://docs.invariant-ai.com/api/field-catalog): every field, grouped by layer. - [Limits and caching](https://docs.invariant-ai.com/limits): request sizes, rate limits and cache life. - [Use with AI agents](https://docs.invariant-ai.com/agents): give an agent this workflow as a tool. --- # Responses and provenance > Every field carries its source. Here is how to read each part of a response. Source: https://docs.invariant-ai.com/responses ## Response shape ```json { "lat": 39.0438, "lng": -77.4874, "fetched_at": "2026-11-22T03:26:14.083456Z", "fields": { "elevation": { "value": 89.63117218, "unit": "meters", "status": "ok", "source": "USGS_3DEP_COG", "source_url": "https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/current/n40w078/USGS_13_n40w078.tif", "confidence": "medium", "fetched_at": "2026-11-22T03:26:14.082945Z", "dataset_vintage": "USGS 3DEP 1/3 arc-second seamless DEM, current edition; tile n40w078; nominal resolution 10 m", "ttl_seconds": 86400, "cached": false, "notes": "metres; vertical datum NAVD88" } }, "partial_failures": [], "resolved_location": { "lat": 39.0438, "lng": -77.4874, "source": "coordinate" } } ``` ## Field object | Key | Type | Meaning | | --- | --- | --- | | `value` | number, string, boolean or null | The answer. `null` when `status` is not `ok`. | | `unit` | string | Unit of `value`, for example `meters`. | | `status` | `ok`, `absent`, `failed` | See below. | | `source` | string | Stable label of the source that answered, for example `USGS_3DEP_COG`. | | `source_url` | string | A URL that re-fetches this value from the agency. | | `confidence` | `high`, `medium`, `low`, `unknown` | How much to trust the value; the rule is per field. | | `fetched_at` | timestamp | When the source answered. Unchanged when served from cache. | | `dataset_vintage` | string or null | Which edition, resolution or acquisition the value came from. | | `ttl_seconds` | integer | How long the value is reasonable to reuse. | | `cached` | boolean | `true` when served from our cache. | | `notes` | string or null | Context such as the vertical datum, or why a value is missing. | ## Status | `status` | `value` | What happened | What to do | | --- | --- | --- | --- | | `ok` | present | The source answered. | Use it. | | `absent` | `null` | The source says it has no data at this point. | Treat as a real "no data here". It is safe to cache. | | `failed` | `null` | The source could not answer: timeout, outage or a bad response. | The field is also in `partial_failures`. Retry if `retryable` is `true`. Do not cache it. | > Never cache a failed field. A failed null means "we could not find out", not "there is nothing here". Retry it later. ## partial\_failures One entry per failed field, so you can retry only what failed: ```json "partial_failures": [ { "field": "elevation", "source": "USGS_EPQS", "error": "USGS_3DEP_COG: 3DEP tile read failed: TimeoutError; USGS_EPQS: EPQS timed out after 20 s", "retryable": true } ] ``` The request itself still returns `200`; the other fields are unaffected. ### When a source is down If a source fails with a retryable error three times in a row, the API stops calling it for 60 seconds. During that time its fields return `failed` straight away, with `retryable: true` and an error that says the source is being skipped. This means you don't wait out a timeout on every request while a provider is down. After 60 seconds one request tries the source again, and if it answers, normal service resumes. `GET /readyz` lists any skipped sources in `open_circuit_breakers`. --- # Limits and caching > Request limits, how the cache works, and what to expect from response times. Source: https://docs.invariant-ai.com/limits ## Request limits | Limit | Value | | --- | --- | | Fields per request | 1 to 50 | | Locations per request | 1 | | Coordinate bounds | lat 18 to 72, lng -180 to -65 | | New keys per network | 5 per hour | | Active keys per email | 5 | ## Caching Successful answers (`ok` and `absent`) are cached for each field's `ttl_seconds`, 24 hours for elevation. The cache key is the field plus the coordinate rounded to 5 decimal places, about 1.1 m, so two requests a few centimetres apart share an answer. - Cached responses have `cached: true` and keep the original `fetched_at`. - `failed` answers are never cached; the next request tries the source again. ## Response times Each field's sources are called in parallel, and each source is called once per request, however many fields read it. So a request takes about as long as its slowest source. On 2026-11-22, an uncached point took these times: | Request | Typical | Slowest seen | | --- | --- | --- | | one fast field, such as `elevation` or `tract_geoid` | 0.2–1.1 s | about 2 s | | `nearest_flowline_name` (USGS National Map) | 1–6 s | about 9 s | | a cached point | under 0.1 s | | **Request deadline: 12 seconds.** Any field without an answer by then comes back as `failed` with `retryable: true`. The other fields are returned as normal, so one slow provider never holds up the whole response. Retry the failed field a little later. When a provider is down, the API also skips it for 60 seconds after three failures in a row (see [Responses](https://docs.invariant-ai.com/responses)). Set your client timeout to at least 20 seconds. --- # FAQ > Short answers to the questions people and agents ask most about the Invariant Earth API. Source: https://docs.invariant-ai.com/faq ## What is the Invariant Earth API? Git for the physical world: a REST API from Invariant AI that returns public facts about one US coordinate, each with the source that produced it. You send `POST /v1/fetch` with a latitude, a longitude and the fields you want. Every value comes back with `source`, `source_url`, `fetched_at`, `dataset_vintage` and `confidence`. There are 220 fields across 7 layers today; [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields) is always the live list. ## How do I get the elevation of a latitude and longitude? Create a key on [Get an API key](https://docs.invariant-ai.com/get-api-key), then send: ```bash curl -s https://api.invariant-ai.com/v1/fetch \ -H "X-API-Key: $INVARIANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]}' ``` `fields.elevation.value` is the ground elevation in meters (89.6 m for that point in Ashburn, Virginia). The [Quickstart](https://docs.invariant-ai.com/quickstart) has Python and JavaScript versions. ## Is it free to get a key? Yes. A key takes one email address, either on the [Get an API key](https://docs.invariant-ai.com/get-api-key) page or with `POST /v1/keys`. There is no account to set up and no card. ## Where does the elevation data come from? The USGS 3D Elevation Program (3DEP). We read the 1/3 arc-second (about 10 m) seamless DEM straight from the USGS GeoTIFF tiles, and fall back to the USGS Elevation Point Query Service (EPQS) when a tile is missing or can't be read. Each response carries `source_url`: the tile itself, or for EPQS a link that asks USGS for the same value. ## How accurate is it? Values from the 1/3 arc-second tiles have about 10 m pixels, so `confidence` is `medium`. On the EPQS fallback, a point covered by 1 m lidar comes back `high`, and coarser data `low`. `dataset_vintage` names the product, tile or raster and resolution. See [elevation](https://docs.invariant-ai.com/fields/elevation). ## Which vertical datum is used? NAVD88 inside the conterminous United States. In Alaska, Hawaii and the territories the datum follows the local 3DEP source, and `notes` says so. ## Does it work outside the United States? No. Coordinates outside lat 18 to 72, lng -180 to -65 return `400 coord_out_of_bounds`. The lower 48, Alaska, Hawaii and the US territories are covered. ## Can I send many points in one request? Not yet. Each request takes one coordinate and 1 to 50 fields. For many points, send one request per point. ## How fast is a request? It usually isn't: a first read of the USGS tile took 0.4 to 1.1 seconds in our tests, and a cached repeat (24 hours) under 0.1 seconds with `cached: true`. The slow case is the EPQS fallback, which can take several seconds, so set a client timeout of at least 30 seconds. ## What happens when USGS is down? We try the second USGS source first. If that fails too, the request still returns `200`. The field comes back with `value: null`, `status: "failed"`, and an entry in `partial_failures` that says whether a retry makes sense. Failed answers are never cached. See [Responses](https://docs.invariant-ai.com/responses). ## Can AI agents use this API? Yes, and it was designed for them. There is an [`llms.txt`](https://docs.invariant-ai.com/llms.txt), a Markdown copy of every page, and copy-paste tool definitions for Claude and OpenAI on [Use with AI agents](https://docs.invariant-ai.com/agents). ## How do I cite a value in a report? Quote the value with its `source`, `dataset_vintage` and `fetched_at`, and link `source_url`. For example: 89.6 m, USGS 3DEP 1/3 arc-second DEM (tile n40w078), fetched 2026-11-22. ## Who do I contact? Email [pranav@invariant-ai.com](mailto:pranav@invariant-ai.com) and include the `X-Request-ID` from the response if it is about a specific call. --- # POST /v1/fetch > Per-field data fetch for one US coordinate, with full provenance. Source: https://docs.invariant-ai.com/api/fetch `POST https://api.invariant-ai.com/v1/fetch` Fetch returns the public fields you ask for at one US coordinate. Each value comes with its source. ```bash curl -s https://api.invariant-ai.com/v1/fetch \ -H "X-API-Key: $INVARIANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]}' ``` ```json { "lat": 39.0438, "lng": -77.4874, "fetched_at": "2026-11-22T03:26:14.083456Z", "fields": { "elevation": { "value": 89.63117218, "unit": "meters", "status": "ok", "source": "USGS_3DEP_COG", "source_url": "https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/current/n40w078/USGS_13_n40w078.tif", "confidence": "medium", "fetched_at": "2026-11-22T03:26:14.082945Z", "dataset_vintage": "USGS 3DEP 1/3 arc-second seamless DEM, current edition; tile n40w078; nominal resolution 10 m", "ttl_seconds": 86400, "cached": false, "notes": "metres; vertical datum NAVD88" } }, "partial_failures": [], "resolved_location": { "lat": 39.0438, "lng": -77.4874, "source": "coordinate" } } ``` Every value carries: - **`source` and `source_url`**: the agency and a URL that fetches the same value again. - **`fetched_at` and `dataset_vintage`**: when we read it, and which release of the dataset it came from. - **`confidence`**: `high`, `medium`, `low` or `unknown`. - **An explicit null**: a field the source cannot answer comes back as `null` with a reason, and the request still succeeds. ```bash curl --request POST \ --url https://api.invariant-ai.com/v1/fetch \ --header 'Content-Type: application/json' \ --header 'X-API-Key: ' \ --data '{ "lat": 39.0438, "lng": -77.4874, "fields": ["elevation"] }' ``` ```python import requests url = "https://api.invariant-ai.com/v1/fetch" payload = {"lat": 39.0438, "lng": -77.4874, "fields": ["elevation"]} headers = {"X-API-Key": "", "Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers, timeout=30) print(response.json()) ``` ```javascript const options = { method: 'POST', headers: {'X-API-Key': '', 'Content-Type': 'application/json'}, body: JSON.stringify({lat: 39.0438, lng: -77.4874, fields: ['elevation']}) }; fetch('https://api.invariant-ai.com/v1/fetch', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` Response 200: ```json { "lat": 39.0438, "lng": -77.4874, "fetched_at": "2026-11-22T03:26:14.083456Z", "fields": { "elevation": { "value": 89.63117218, "unit": "meters", "status": "ok", "source": "USGS_3DEP_COG", "source_url": "https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/current/n40w078/USGS_13_n40w078.tif", "confidence": "medium", "fetched_at": "2026-11-22T03:26:14.082945Z", "dataset_vintage": "USGS 3DEP 1/3 arc-second seamless DEM, current edition; tile n40w078; nominal resolution 10 m", "ttl_seconds": 86400, "cached": false, "notes": "metres; vertical datum NAVD88" } }, "partial_failures": [], "resolved_location": { "lat": 39.0438, "lng": -77.4874, "source": "coordinate" } } ``` Response 400: ```json { "detail": { "error": "fields_unknown", "message": "Unknown fields: slope. See GET /v1/meta/fields.", "unknown": [ "slope" ] } } ``` Response 401: ```json { "detail": { "error": "auth_missing", "message": "Send your API key in the X-API-Key header." } } ``` ## Authorizations - `X-API-Key` (string, header, required): Your API key, sent in the header. `Authorization: Bearer ` also works. [Get one free](https://docs.invariant-ai.com/get-api-key). ## Headers - `X-Request-ID` (string): Optional. Echoed back on the response; otherwise we generate one. ## Body - `lat` (number, required): Latitude, WGS84 decimal degrees. Required range: `18 <= x <= 72` - `lng` (number, required): Longitude, WGS84 decimal degrees. Required range: `-180 <= x <= -65` - `fields` (string[], required): Field names from [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields). Duplicates are ignored. Unknown keys in the body are rejected with `400 invalid_request`. Required array length: `1 - 50` elements ## Response - `fields` (object): One object per requested field, in request order: `value`, `unit`, `status`, `source`, `source_url`, `confidence`, `fetched_at`, `dataset_vintage`, `cached`. Explained in [Responses](https://docs.invariant-ai.com/responses). - `partial_failures` (object[]): Fields whose source could not answer, each with `field`, `source`, `error` and `retryable`. A failed source still returns `200`. - `resolved_location` (object): The coordinate the answer is for, with its `source`. - `lat` (number): Latitude as requested. - `lng` (number): Longitude as requested. - `fetched_at` (string): When this response was assembled, ISO 8601 UTC. ## A failed source ```json { "fields": { "elevation": { "value": null, "status": "failed", "source": "USGS_EPQS", "confidence": "unknown", "notes": "USGS_3DEP_COG: 3DEP tile read failed: TimeoutError; USGS_EPQS: EPQS timed out after 20 s" } }, "partial_failures": [ { "field": "elevation", "source": "USGS_EPQS", "error": "USGS_3DEP_COG: 3DEP tile read failed: TimeoutError; USGS_EPQS: EPQS timed out after 20 s", "retryable": true } ] } ``` ## Errors | HTTP | `error` | When | | --- | --- | --- | | 400 | `invalid_request` | Malformed body | | 400 | `coord_out_of_bounds` | Outside the US envelope | | 400 | `fields_unknown` | Unknown field name | | 401 | `auth_missing` / `auth_invalid` | No key, or key not recognised | Full list on [Errors](https://docs.invariant-ai.com/errors). --- # POST /v1/enrich > Fields read off the one parcel that contains a US coordinate. Source: https://docs.invariant-ai.com/api/enrich `POST https://api.invariant-ai.com/v1/enrich` Enrich finds the one parcel that contains your coordinate and returns the fields you ask for, read from that parcel's record. The first field is `gisacre`, the county's acreage. More fields will be added under the same endpoint. Enrich is open to every key and is not billed. Each parcel lookup is stored for 30 days, so asking for the same point again is fast. ```bash curl --request POST \ --url https://api.invariant-ai.com/v1/enrich \ --header 'Content-Type: application/json' \ --header 'X-API-Key: ' \ --data '{ "lat": 39.0438, "lng": -77.4874, "fields": ["gisacre"] }' ``` ```python import requests url = "https://api.invariant-ai.com/v1/enrich" payload = {"lat": 39.0438, "lng": -77.4874, "fields": ["gisacre"]} headers = {"X-API-Key": "", "Content-Type": "application/json"} print(requests.post(url, json=payload, headers=headers, timeout=30).json()) ``` ```javascript fetch('https://api.invariant-ai.com/v1/enrich', { method: 'POST', headers: {'X-API-Key': '', 'Content-Type': 'application/json'}, body: JSON.stringify({lat: 39.0438, lng: -77.4874, fields: ['gisacre']}) }).then(r => r.json()).then(console.log); ``` Response 200: ```json { "lat": 39.0438, "lng": -77.4874, "fetched_at": "2026-11-22T23:16:45.874776Z", "resolved_location": { "lat": 39.0438, "lng": -77.4874, "source": "coordinate" }, "parcel_match": { "status": "matched", "reason": null, "parcel": { "parcel_id": "5518d7e4-f3b4-4447-a750-923d3cc2e4d5", "apn": "085165792000", "address": "20702 ASHBURN RD", "match_type": "exact_intersect", "match_distance_m": 0.0 }, "candidates": [], "source": "REGRID", "source_url": "https://app.regrid.com/api/v2/parcels/point", "dataset_vintage": "Regrid nationwide parcels (paid API)", "cached": false }, "fields": { "gisacre": { "value": 0.37, "unit": "acres", "source": "REGRID", "source_url": "https://app.regrid.com/api/v2/parcels/point", "confidence": "medium", "fetched_at": "2026-11-22T23:16:45.272382Z", "dataset_vintage": "Regrid nationwide parcels (paid API)", "notes": "as supplied by the county in the parcel record (gisacre); not recomputed from the boundary" } }, "field_omissions": {} } ``` Response 400: ```json { "detail": { "error": "fields_unknown", "message": "Unknown enrich fields: owner_name. See GET /v1/enrich/fields.", "unknown": ["owner_name"] } } ``` ## Request body | Key | Type | Meaning | | --- | --- | --- | | `lat`, `lng` | number | WGS84 decimal degrees, inside the US envelope. Required. | | `fields` | string[] | Enrich field names from [`GET /v1/enrich/fields`](https://docs.invariant-ai.com/api/enrich-fields). Optional. | | `preset` | string[] | Named bundles: `parcel`, `zoning`, `buildings`, `valuation`, `legal`, `power`, `access`, `water`, `terrain`, `environment`, `climate`, `hazards`, `market`, `constraints`. Optional. | Presets expand first, then `fields` are added, and duplicates are dropped. Send neither to get every enrich field. Other keys are rejected. A preset with no fields built yet makes no parcel lookup, and `parcel_match.status` comes back as `not_attempted`. ## Response | Key | Meaning | | --- | --- | | `parcel_match.status` | `matched`: a parcel contains the point. `no_match`: no parcel contains it. `unavailable`: the parcel source was not asked or did not answer, which is not proof that there is no parcel. `not_attempted`: nothing selected is built yet. | | `parcel_match.parcel` | The matched parcel: `parcel_id`, `apn`, `address`, `match_type`, `match_distance_m`. | | `parcel_match.candidates` | A nearby parcel that does not contain the point. It is listed so you can check it, but its attributes are never returned for your point. | | `parcel_match.cached` | `true` when the parcel came from this service's cache. Parcels are cached for 30 days. | | `fields` | Only fields that have a value. Each one carries `value`, `unit`, `source`, `source_url`, `confidence`, `fetched_at`, `dataset_vintage` and `notes`. | | `field_omissions` | Every requested field without a value, with `state`, `reason` and `retryable`. | Omission states: | State | Meaning | | --- | --- | | `source_reported_absence` | The parcel matched, but its record has no value for this field. | | `no_parcel` | No parcel contains the point. | | `source_failure` | The parcel source failed. Retry when `retryable` is `true`. | A field is never returned as a silent `null`. It is either in `fields` or in `field_omissions`. The `Server-Timing` header reports the parcel lookup time (`parcel`, with `REGRID cache` when cached) and the handler total. --- # GET /v1/enrich/fields > The live list of fields and presets /v1/enrich can return. No key needed. Source: https://docs.invariant-ai.com/api/enrich-fields `GET https://api.invariant-ai.com/v1/enrich/fields` This is the live list of fields `/v1/enrich` can return, plus each preset and the fields it currently expands to. It's public, so no key is needed. ```bash curl -s https://api.invariant-ai.com/v1/enrich/fields ``` Response 200: ```json { "fields": [ { "name": "gisacre", "label": "County acres", "presets": [ "parcel" ], "type": "float", "unit": "acres", "source": "REGRID", "source_url": "https://regrid.com/api", "description": "Acreage of the parcel containing the point, as supplied by the county in its parcel record (Regrid attribute gisacre). C ...", "null_meaning": "Listed in field_omissions instead of fields. \"source_reported_absence\": the county record has no acr ..." } ], "presets": { "parcel": [ "gisacre" ], "zoning": [], "buildings": [], "valuation": [], "legal": [], "power": [], "access": [], "water": [], "terrain": [], "environment": [], "climate": [], "hazards": [], "market": [], "constraints": [] } } ``` ## Fields 33 fields are live today. | Field | Label | Presets | Type | Unit | Source | Meaning | | --- | --- | --- | --- | --- | --- | --- | | `address` | Address | parcel | string | | `REGRID` | Situs address of the parcel containing the point, as the county records it: the address of the land itself, not the owner's mailing address and not the address in the request. | | `gisacre` | County acres | parcel | float | acres | `REGRID` | Acreage of the parcel containing the point, as supplied by the county in its parcel record. County acreage can differ from the area of the drawn boundary (deeded versus GIS acres); it is reported as stated. | | `parcelnumb` | Parcel number | parcel | string | | `REGRID` | Assessor parcel number (APN) of the parcel containing the point, formatted as the county publishes it. Use parcelnumb\_no\_formatting to compare across sources. | | `owner` | Owner | parcel | string | | `REGRID` | Primary owner of the parcel as recorded by the county assessor. Owner names are as published (often upper case, sometimes with trust or LLC suffixes) and can lag a recent sale. | | `scity` | City | parcel | string | | `REGRID` | City of the parcel's site address as the county records it (a postal city, which can differ from the municipality that governs the land). | | `county` | County | parcel | string | | `REGRID` | County of the parcel's site, as named in the parcel record. | | `state2` | State | parcel | string | | `REGRID` | Two-letter state abbreviation of the parcel's site, as given in the parcel record. | | `mailadd` | Mailing street address | parcel | string | | `REGRID` | Street line of the owner's mailing address on the parcel record: where tax notices go, which is often not the parcel itself. | | `szip` | ZIP code | parcel | string | | `REGRID` | ZIP code of the parcel's site address as the county records it (five or nine digits). | | `mail_city` | Mailing city | parcel | string | | `REGRID` | City of the owner's mailing address on the parcel record. | | `mail_state2` | Mailing state | parcel | string | | `REGRID` | Two-letter state of the owner's mailing address on the parcel record. | | `mail_zip` | Mailing ZIP | parcel | string | | `REGRID` | ZIP code of the owner's mailing address on the parcel record. | | `zoning` | Zoning | zoning | string | | `REGRID` | Local zoning code of the parcel as the county or municipality publishes it (for example PD-OP or R-1). Codes are local and not standardized across jurisdictions. | | `parval` | Property value | valuation | float | USD | `REGRID` | Total assessed or appraised value of the parcel (land plus improvements) in US dollars, as the county reports it. The basis (market, assessed, appraised) varies by county; see parvaltype. | | `usedesc` | Property use | zoning | string | | `REGRID` | County label for how the property is used (for example Commercial, Vacant Land, Single Family), as published by the assessor. Labels are local and not standardized. | | `landval` | Land value | valuation | float | USD | `REGRID` | Value the county assigns to the land alone, in US dollars, on the same basis as parval. | | `improvval` | Building value | valuation | float | USD | `REGRID` | Value the county assigns to buildings and other improvements, in US dollars, on the same basis as parval. | | `saledate` | Last sale date | valuation | string | | `REGRID` | Date of the most recent recorded sale of the parcel, as published in the parcel record (ISO date text). | | `saleprice` | Last sale price | valuation | float | USD | `REGRID` | Price of the most recent recorded sale, in US dollars, as published in the parcel record. Some states do not disclose sale prices, so it is often missing. | | `yearbuilt` | Year built | buildings | integer | | `REGRID` | Year the main structure on the parcel was built, as the county records it. | | `taxamt` | Annual tax | valuation | float | USD | `REGRID` | Annual property tax billed for the parcel, in US dollars, as reported in the parcel record. | | `last_ownership_transfer_date` | Last transfer date | valuation | string | | `REGRID` | Date of the most recent ownership transfer recorded for the parcel. A transfer can follow the last sale (for example a deed into a trust). | | `numstories` | Stories | buildings | float | | `REGRID` | Number of stories of the main structure as the county records it; can be fractional (1.5 for a half story). | | `area_building` | Building area | buildings | integer | ft2 | `REGRID` | Total building area on the parcel in square feet, as the county records it. What it includes (finished, gross, basements) varies by county; see area\_building\_definition. | | `within_floodplain_polygon` | In 100-year floodplain | hazards | boolean | | `FEMA_NFHL` | True if the point is inside a FEMA National Flood Hazard Layer Special Flood Hazard Area (the published SFHA\_TF flag of the containing flood zone polygon; zone and DFIRM panel in notes). False means FEMA mapped a non-SFHA zone here, not that flooding cannot occur. | | `numunits` | Units | buildings | integer | | `REGRID` | Number of residential units on the parcel as the county records it. | | `struct` | Has structure | buildings | boolean | | `REGRID` | Whether the county records a structure on the parcel (true or false). Only a real boolean in the record counts; codes such as Y or 1 are not interpreted. | | `structno` | Structure count | buildings | integer | | `REGRID` | Number of structures on the parcel as the county records it. | | `qoz` | Opportunity Zone | market | string | | `REGRID` | Federal Qualified Opportunity Zone designation associated with the parcel, as joined by Regrid from the Treasury list. | | `owner2` | Second owner | parcel | string | | `REGRID` | Second recorded owner of the parcel, when the county lists more than one. | | `location_name` | Location name | parcel | string | | `REGRID` | A name associated with the parcel's location (for example a business or facility name), when the record carries one. | | `previous_owner` | Previous owner | parcel | string | | `REGRID` | Previous recorded owner (or grantor) of the parcel, when the county publishes it. | | `zoning_description` | Zoning description | zoning | string | | `REGRID` | Description of the parcel's local zoning code (for example Planned Development Office Park), as published with the parcel record. | ## Response keys | Key | Meaning | | --- | --- | | `name`, `label` | Use `name` in `fields` on `/v1/enrich`. | | `presets` | The presets that include this field. | | `type`, `unit` | Value type and unit. | | `source`, `source_url` | The parcel source and its home page. | | `description`, `null_meaning` | What the value means, and which omission states it can have. | | `presets` (top level) | Every preset and the fields it currently expands to. Some are still empty. | --- # GET /v1/meta/fields > The live list of fields /v1/fetch can return. No key needed. Source: https://docs.invariant-ai.com/api/meta-fields `GET https://api.invariant-ai.com/v1/meta/fields` The live list of fields `/v1/fetch` can return, with units, sources and what a null means. Public: no key needed. ```bash curl -s https://api.invariant-ai.com/v1/meta/fields ``` Response 200: ```json { "fields": [ { "name": "elevation", "layer": "terrain", "type": "float", "unit": "meters", "source": "USGS_3DEP_COG", "source_url": "https://www.usgs.gov/3d-elevation-program", "sources": [ "USGS_3DEP_COG", "USGS_EPQS" ], "ttl_seconds": 86400, "description": "Ground elevation in metres at the point from the USGS 3D Elevation Program (3DEP). Read from the 1/3 arc-second (about 10 m) seamless DEM tiles; where a tile is unavailable, from ... EPQS ...", "null_meaning": "status \"absent\": 3DEP has no elevation at this point ..." } ] } ``` ## Live catalog | Field | Layer | Unit | Source | | --- | --- | --- | --- | | `elevation` | terrain | meters | USGS\_EPQS | ## Response fields | Key | Meaning | | --- | --- | | `name` | Use this in `fields` on `/v1/fetch`. | | `layer` | Grouping: `terrain`, and more as fields are added. | | `type`, `unit` | Value type and unit. | | `source`, `source_url` | The primary source and its home page. | | `sources` | Every source tried, in order; later ones are fallbacks. | | `ttl_seconds` | How long an answer is cached. | | `description`, `null_meaning` | What the value means and what a null means. | --- # Field catalog > All 220 fields POST /v1/fetch can return, grouped by layer. Each name opens its own page with sources, units, cache life and what a null means. Source: https://docs.invariant-ai.com/api/field-catalog This page is built from the same registry the API serves, so it matches [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields). Ask for any of these names in the `fields` array of [`POST /v1/fetch`](https://docs.invariant-ai.com/api/fetch), up to 50 per call. ## Built environment 17 fields | Field | What it is | | --- | --- | | [`nearest_bridge_name`](https://docs.invariant-ai.com/fields/nearest_bridge_name) | Facility carried (NBI item 7, e.g. CLAIBORNE PKWY.) of the nearest FHWA National Bridge Inventory bridge (searched up to 200 km). | | [`nearest_major_road_class`](https://docs.invariant-ai.com/fields/nearest_major_road_class) | Overture class of that nearest major road: motorway, trunk, primary or secondary (searched 1 km, then 5 km). | | [`nearest_major_road_distance_m`](https://docs.invariant-ai.com/fields/nearest_major_road_distance_m) | Geodesic distance to the nearest point of the nearest Overture motorway / trunk / primary / secondary road within 5 km. | | [`nearest_major_road_name`](https://docs.invariant-ai.com/fields/nearest_major_road_name) | Name of the nearest major road (Overture motorway / trunk / primary / secondary) within 5 km. | | [`nearest_repowering_site_distance_m`](https://docs.invariant-ai.com/fields/nearest_repowering_site_distance_m) | Geodesic distance to the nearest EPA RE-Powering screened site (brownfield, landfill, mine or other contaminated/disturbed land) in EPA's live 2022 RE-Powering Mapper layer, searched up to 500 km; site name and program in notes. | | [`nearest_road_class`](https://docs.invariant-ai.com/fields/nearest_road_class) | Overture class of the nearest road segment within 500 m (motorway, trunk, primary, secondary, tertiary, residential, service, track, footway, path, ...). | | [`nearest_road_distance_m`](https://docs.invariant-ai.com/fields/nearest_road_distance_m) | Distance in metres to the nearest Overture road segment of any class (motorway to service road, track and path) within 500 m. | | [`nearest_road_name`](https://docs.invariant-ai.com/fields/nearest_road_name) | Primary name of the nearest Overture road segment (any class) within 500 m. | | [`nearest_road_surface`](https://docs.invariant-ai.com/fields/nearest_road_surface) | Overture surface of the nearest road segment within 500 m (paved, unpaved, gravel, ...). | | [`primary_building_footprint_sqm`](https://docs.invariant-ai.com/fields/primary_building_footprint_sqm) | Geodesic footprint area in square metres of the primary Overture building (containing the point, else nearest within 100 m), merged across tile edges. | | [`primary_building_height_m`](https://docs.invariant-ai.com/fields/primary_building_height_m) | Height in metres of the Overture building containing the point, or else the nearest within 100 m. | | [`primary_building_num_floors`](https://docs.invariant-ai.com/fields/primary_building_num_floors) | Number of floors of the primary Overture building (containing the point, else nearest within 100 m). | | [`primary_building_overture_class`](https://docs.invariant-ai.com/fields/primary_building_overture_class) | Overture building class of the primary building (e.g. | | [`roads_within_500m_count`](https://docs.invariant-ai.com/fields/roads_within_500m_count) | Number of Overture road segments (any class) within 500 m. | | [`total_road_length_within_500m_m`](https://docs.invariant-ai.com/fields/total_road_length_within_500m_m) | Total length in metres of Overture road segments (any class) inside the 500 m disk around the point, clipped to the disk. | | [`walkability_class`](https://docs.invariant-ai.com/fields/walkability_class) | EPA guide band for that score: Least walkable (≤5.75), Below average walkable (≤10.5), Above average walkable (≤15.25), Most walkable. | | [`walkability_index`](https://docs.invariant-ai.com/fields/walkability_index) | EPA National Walkability Index (NatWalkInd, 1 least to 20 most walkable) of the 2010 Census block group containing the point. | ## Climate 19 fields | Field | What it is | | --- | --- | | [`days_above_32c_annual_count`](https://docs.invariant-ai.com/fields/days_above_32c_annual_count) | Mean annual count of days with Tmax >= 32 C (89.6 F), 1991-2020, from NOAA nClimGrid-Daily (~4 km), Tmax rounded to hundredths of a degree first; requires all 30 complete years. | | [`design_wet_bulb_temperature_0_4pct_degc`](https://docs.invariant-ai.com/fields/design_wet_bulb_temperature_0_4pct_degc) | TMY-based approximation of the 0.4% cooling design wet bulb: the 99.6th percentile of hourly wet bulb over one NREL NSRDB GOES TMY year (tmy-2024), solved psychrometrically from dry bulb and dew point at the hour's station pressure. | | [`dni_annual_kwh_m2_day`](https://docs.invariant-ai.com/fields/dni_annual_kwh_m2_day) | Annual-average direct normal (beam) irradiance (kWh/m2/day) from the NREL Solar Resource API; drives CSP and tracking-system economics. | | [`ghi_annual_kwh_m2_day`](https://docs.invariant-ai.com/fields/ghi_annual_kwh_m2_day) | Annual-average global horizontal irradiance (kWh/m2/day) at the point from the NREL Solar Resource API (NSRDB-based modelled resource). | | [`mean_annual_dry_bulb_temperature_degc`](https://docs.invariant-ai.com/fields/mean_annual_dry_bulb_temperature_degc) | 1991-2020 annual mean temperature normal (degC, anntavg\_norm = mean of the twelve monthly normals) from NOAA U.S. Monthly Gridded Climate Normals v1.0 (NCEI 0245564) on the 1/24° (~4.6 km) nClimGrid grid, rounded to 0.1 as NOAA instructs. | | [`mean_annual_relative_humidity_pct`](https://docs.invariant-ai.com/fields/mean_annual_relative_humidity_pct) | Mean annual relative humidity (%): the mean of the hourly RH column from the same NSRDB GOES TMY download as the design wet bulb. | | [`mean_annual_snow_cover_days`](https://docs.invariant-ai.com/fields/mean_annual_snow_cover_days) | Mean days per water year (Oct-Sep) with snow on the ground (SNODAS modelled depth > 0 at 06:00 UTC), averaged over complete water years 2005-2026 at the ~1 km cell (NOAA NOHRSC SNODAS, NSIDC G02158 v1). | | [`mean_wind_speed_100m_ms`](https://docs.invariant-ai.com/fields/mean_wind_speed_100m_ms) | Mean hourly wind speed (m/s) at 100 m over 2007-2013 at the nearest NREL WIND Toolkit site (CONUS 2 km grid), equal weighting of all hours including leap days. | | [`mean_wind_speed_120m_ms`](https://docs.invariant-ai.com/fields/mean_wind_speed_120m_ms) | Mean hourly wind speed (m/s) at 120 m over 2007-2013 at the nearest NREL WIND Toolkit site (CONUS 2 km grid), equal weighting of all hours including leap days. | | [`mean_wind_speed_160m_ms`](https://docs.invariant-ai.com/fields/mean_wind_speed_160m_ms) | Mean hourly wind speed (m/s) at 160 m over 2007-2013 at the nearest NREL WIND Toolkit site (CONUS 2 km grid), equal weighting of all hours including leap days. | | [`optimal_fixed_tilt_degrees`](https://docs.invariant-ai.com/fields/optimal_fixed_tilt_degrees) | Best tested model setting, not an engineering optimum: the fixed tilt with the highest modelled annual AC energy among 13 PVWatts v8 runs at 0-60 degrees in 5-degree steps, same weather and system inputs as the capacity factor. | | [`prevailing_wind_direction_100m_cardinal`](https://docs.invariant-ai.com/fields/prevailing_wind_direction_100m_cardinal) | Meteorological wind-from direction (16 sectors, N, NNE, ...) at 100 m carrying the most available wind power over 2007-2013 at the nearest WTK site; share in notes. | | [`pv_capacity_factor_pct`](https://docs.invariant-ai.com/fields/pv_capacity_factor_pct) | Modelled first-year AC capacity factor (%) of a fixed-tilt open-rack PV system from NREL PVWatts v8 (1 kW DC standard module, tilt = |latitude|, azimuth 180, 14% losses, NSRDB weather). | | [`pv_specific_yield_kwh_per_kw`](https://docs.invariant-ai.com/fields/pv_specific_yield_kwh_per_kw) | Modelled annual AC energy per kW DC (kWh/kW) for the same PVWatts v8 fixed-tilt system (ac\_annual / system\_capacity). | | [`surface_albedo_annual`](https://docs.invariant-ai.com/fields/surface_albedo_annual) | Dimensionless 0-1 broadband ground albedo, annual mean of the 8760 hourly values of the NREL NSRDB GOES TMY (tmy-2024) at the nearest NSRDB site; drives bifacial PV rear-side gain. | | [`weibull_k_100m`](https://docs.invariant-ai.com/fields/weibull_k_100m) | Weibull shape k of hourly 100 m wind speed over 2007-2013 at the nearest WTK site: two-parameter maximum-likelihood fit with location 0 on positive speeds (calm hours excluded). | | [`wind_capacity_factor_pct`](https://docs.invariant-ai.com/fields/wind_capacity_factor_pct) | Modelled mean AC capacity factor (%) of a reference 115 m hub / 170 m rotor turbine at the nearest NREL reV land-based wind supply-curve cell (2024, reference access scenario, 2035 moderate; ~11.5 km cells). | | [`wind_least_cost_interconnect_distance_m`](https://docs.invariant-ai.com/fields/wind_least_cost_interconnect_distance_m) | NREL reV modelled spur distance (m) from the nearest supply-curve cell centroid to its nearest available electrical substation (2024 land-based wind, reference access scenario). | | [`wind_power_density_100m_wm2`](https://docs.invariant-ai.com/fields/wind_power_density_100m_wm2) | Mean wind power density (W/m2) at 100 m over 2007-2013 at the nearest WTK site: mean of 0.5\*rho\*v^3 with dry-air density p/(287.05\*(T+273.15)) from WTK 100 m pressure and temperature (not the cube of the mean speed). | ## Hazards 60 fields | Field | What it is | | --- | --- | | [`air_district_name`](https://docs.invariant-ai.com/fields/air_district_name) | Name of the California Air Resources Board air district containing the point (e.g. | | [`air_quality_co_classification`](https://docs.invariant-ai.com/fields/air_quality_co_classification) | Most severe EPA classification for carbon monoxide (1971 standard) within the selected status (e.g. | | [`air_quality_co_status`](https://docs.invariant-ai.com/fields/air_quality_co_status) | EPA Green Book status for carbon monoxide (1971 standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_lead_classification`](https://docs.invariant-ai.com/fields/air_quality_lead_classification) | Most severe EPA classification for lead (2008 standard) within the selected status (e.g. | | [`air_quality_lead_status`](https://docs.invariant-ai.com/fields/air_quality_lead_status) | EPA Green Book status for lead (2008 standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_maintenance_pollutants`](https://docs.invariant-ai.com/fields/air_quality_maintenance_pollutants) | Comma-separated exact standards whose mapped maintenance area contains the point. | | [`air_quality_no2_classification`](https://docs.invariant-ai.com/fields/air_quality_no2_classification) | Most severe EPA classification for nitrogen dioxide (1971 standard) within the selected status (e.g. | | [`air_quality_no2_status`](https://docs.invariant-ai.com/fields/air_quality_no2_status) | EPA Green Book status for nitrogen dioxide (1971 standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_nonattainment_pollutants`](https://docs.invariant-ai.com/fields/air_quality_nonattainment_pollutants) | Comma-separated exact standards (e.g. 8-Hour Ozone (2015 Standard)) whose mapped nonattainment area contains the point. | | [`air_quality_ozone_classification`](https://docs.invariant-ai.com/fields/air_quality_ozone_classification) | Most severe EPA classification for ozone (8-hour 2008 and 2015 standards) within the selected status (e.g. | | [`air_quality_ozone_status`](https://docs.invariant-ai.com/fields/air_quality_ozone_status) | EPA Green Book status for ozone (8-hour 2008 and 2015 standards) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_pm10_classification`](https://docs.invariant-ai.com/fields/air_quality_pm10_classification) | Most severe EPA classification for PM10 (1987 standard) within the selected status (e.g. | | [`air_quality_pm10_status`](https://docs.invariant-ai.com/fields/air_quality_pm10_status) | EPA Green Book status for PM10 (1987 standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_pm25_classification`](https://docs.invariant-ai.com/fields/air_quality_pm25_classification) | Most severe EPA classification for PM2.5 (2012 annual standard) within the selected status (e.g. | | [`air_quality_pm25_status`](https://docs.invariant-ai.com/fields/air_quality_pm25_status) | EPA Green Book status for PM2.5 (2012 annual standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_so2_classification`](https://docs.invariant-ai.com/fields/air_quality_so2_classification) | Most severe EPA classification for sulfur dioxide (2010 standard) within the selected status (e.g. | | [`air_quality_so2_status`](https://docs.invariant-ai.com/fields/air_quality_so2_status) | EPA Green Book status for sulfur dioxide (2010 standard) at the point: Nonattainment (preferred when both apply) or Maintenance. | | [`air_quality_worst_classification`](https://docs.invariant-ai.com/fields/air_quality_worst_classification) | Most severe classification (Marginal < Moderate < Serious < Severe < Extreme) among the nonattainment areas containing the point. | | [`brownfields_within_radius_count`](https://docs.invariant-ai.com/fields/brownfields_within_radius_count) | Number of distinct EPA ACRES (brownfields) program sites (by FRS registry ID) within 8 km. | | [`design_wind_speed_mph`](https://docs.invariant-ai.com/fields/design_wind_speed_mph) | ASCE 7-22 basic design wind speed (mph; 3-second gust, Risk Category II / 700-yr MRI, Exposure C) at the point, from the ASCE 7-22 wind map image service (gis.asce.org). | | [`fire_hazard_responsibility_area`](https://docs.invariant-ai.com/fields/fire_hazard_responsibility_area) | Responsibility area of that FHSZ polygon: SRA (State Responsibility Area) or LRA (Local Responsibility Area). | | [`fire_hazard_severity_zone_class`](https://docs.invariant-ai.com/fields/fire_hazard_severity_zone_class) | CAL FIRE OSFM Fire Hazard Severity Zone class at the point: Moderate, High, Very High or Non-Wildland. | | [`golden_eagle_nest_density_index`](https://docs.invariant-ai.com/fields/golden_eagle_nest_density_index) | USFWS predicted relative golden-eagle nest-site density (RND, 0-1) at the point from the 2019 Western Golden Eagle Team regional models (ServCat 111283). | | [`hail_annual_frequency`](https://docs.invariant-ai.com/fields/hail_annual_frequency) | Hail events per year, area-weighted over the containing Census tract (FEMA NRI HAIL\_AFREQ). | | [`high_hazard_dams_within_10km`](https://docs.invariant-ai.com/fields/high_hazard_dams_within_10km) | Number of distinct NID dams labelled High hazard potential within 10 km of the point. | | [`housing_units_density_per_km2`](https://docs.invariant-ai.com/fields/housing_units_density_per_km2) | Housing units per km2 of land (water excluded) across the same 2020 Census blocks intersecting 1 km around the point. | | [`housing_units_within_1km`](https://docs.invariant-ai.com/fields/housing_units_within_1km) | 2020 Census housing units summed over whole Census blocks intersecting 1 km around the point (TIGERweb HU100). | | [`in_air_quality_maintenance`](https://docs.invariant-ai.com/fields/in_air_quality_maintenance) | True if the point is inside a mapped EPA Green Book maintenance area (former nonattainment, redesignated) for any covered standard. | | [`in_air_quality_nonattainment`](https://docs.invariant-ai.com/fields/in_air_quality_nonattainment) | True if the point is inside a mapped EPA Green Book nonattainment area for any covered standard (ozone 2008/2015, PM2.5 2012, PM10 1987, CO 1971, SO2 2010, NO2 1971, lead 2008). | | [`landslide_susceptibility_index`](https://docs.invariant-ai.com/fields/landslide_susceptibility_index) | USGS slope-relief threshold landslide susceptibility (n10 model, Belair et al. | | [`lightning_annual_flash_days`](https://docs.invariant-ai.com/fields/lightning_annual_flash_days) | Days per year with a recorded lightning strike in the containing Census tract (FEMA NRI LTNG\_AFREQ); event-days, not a flash count. | | [`nearest_brownfield_distance_m`](https://docs.invariant-ai.com/fields/nearest_brownfield_distance_m) | Geodesic distance to the nearest distinct EPA ACRES (brownfields) program site (FRS) within 8 km. | | [`nearest_dam_distance_m`](https://docs.invariant-ai.com/fields/nearest_dam_distance_m) | Geodesic distance in metres to the nearest dam in the USACE National Inventory of Dams within 10 km. | | [`nearest_dam_hazard_potential`](https://docs.invariant-ai.com/fields/nearest_dam_hazard_potential) | USACE hazard-potential class of the nearest NID dam within 10 km (High, Significant, Low, Undetermined): the consequence if the dam failed, not its condition or failure probability. | | [`nearest_hazardous_facility_distance_m`](https://docs.invariant-ai.com/fields/nearest_hazardous_facility_distance_m) | Geodesic distance in metres to the nearest facility registered under EPA's Risk Management Program (RMP) within 10 km, from the EPA Facility Registry Service. | | [`nearest_hazardous_facility_name`](https://docs.invariant-ai.com/fields/nearest_hazardous_facility_name) | EPA FRS primary name of the nearest RMP-registered facility within 10 km, as published (upstream casing). | | [`nearest_rcra_tsd_distance_m`](https://docs.invariant-ai.com/fields/nearest_rcra_tsd_distance_m) | Geodesic distance (m) to the nearest currently operating RCRA treatment, storage or disposal facility within 8 km: RCRAInfo's Operating TSDF universe via EPA ECHO (legacy/closed TSDFs and generators excluded). | | [`nearest_superfund_distance_m`](https://docs.invariant-ai.com/fields/nearest_superfund_distance_m) | Geodesic distance to the nearest distinct EPA SEMS (Superfund) program site (FRS) within 8 km. | | [`nearest_ust_facility_distance_m`](https://docs.invariant-ai.com/fields/nearest_ust_facility_distance_m) | Geodesic distance to the nearest mapped EPA UST Finder underground storage tank facility (any status) within 8 km. | | [`no2_1hr_design_value_ppb`](https://docs.invariant-ai.com/fields/no2_1hr_design_value_ppb) | EPA NO2 1-hour (98th percentile, 2023-2025) design value at the nearest valid AQS monitor for that exact standard (2025 design-value year). | | [`no2_1hr_monitor_aqs_site_id`](https://docs.invariant-ai.com/fields/no2_1hr_monitor_aqs_site_id) | AQS site id (SS-CCC-NNNN) of that nearest valid NO2 1-hour (98th percentile, 2023-2025) monitor. | | [`no2_1hr_monitor_distance_m`](https://docs.invariant-ai.com/fields/no2_1hr_monitor_distance_m) | Geodesic distance in metres to that monitor. | | [`no2_annual_design_value_ppb`](https://docs.invariant-ai.com/fields/no2_annual_design_value_ppb) | EPA NO2 annual mean (2025) design value at the nearest valid AQS monitor for that exact standard (2025 design-value year). | | [`no2_annual_monitor_aqs_site_id`](https://docs.invariant-ai.com/fields/no2_annual_monitor_aqs_site_id) | AQS site id (SS-CCC-NNNN) of that nearest valid NO2 annual mean (2025) monitor. | | [`no2_annual_monitor_distance_m`](https://docs.invariant-ai.com/fields/no2_annual_monitor_distance_m) | Geodesic distance in metres to that monitor. | | [`open_lust_sites_within_1km_count`](https://docs.invariant-ai.com/fields/open_lust_sites_within_1km_count) | Number of distinct leaking underground storage tank releases within 1 km with status Open (EPA UST Finder). | | [`pm25_24hr_design_value_ugm3`](https://docs.invariant-ai.com/fields/pm25_24hr_design_value_ugm3) | EPA PM2.5 24-hour (98th percentile, 2023-2025) design value at the nearest valid AQS monitor for that exact standard (2025 design-value year). | | [`pm25_24hr_monitor_aqs_site_id`](https://docs.invariant-ai.com/fields/pm25_24hr_monitor_aqs_site_id) | AQS site id (SS-CCC-NNNN) of that nearest valid PM2.5 24-hour (98th percentile, 2023-2025) monitor. | | [`pm25_24hr_monitor_distance_m`](https://docs.invariant-ai.com/fields/pm25_24hr_monitor_distance_m) | Geodesic distance in metres to that monitor. | | [`pm25_annual_design_value_ugm3`](https://docs.invariant-ai.com/fields/pm25_annual_design_value_ugm3) | EPA PM2.5 annual mean (2023-2025) design value at the nearest valid AQS monitor for that exact standard (2025 design-value year). | | [`pm25_annual_monitor_aqs_site_id`](https://docs.invariant-ai.com/fields/pm25_annual_monitor_aqs_site_id) | AQS site id (SS-CCC-NNNN) of that nearest valid PM2.5 annual mean (2023-2025) monitor. | | [`pm25_annual_monitor_distance_m`](https://docs.invariant-ai.com/fields/pm25_annual_monitor_distance_m) | Geodesic distance in metres to that monitor. | | [`rcra_tsd_facilities_within_radius_count`](https://docs.invariant-ai.com/fields/rcra_tsd_facilities_within_radius_count) | Number of distinct currently operating RCRA TSD facilities (RCRAInfo Operating TSDF universe, via EPA ECHO) within 8 km inclusive; names in notes. | | [`seismic_design_category`](https://docs.invariant-ai.com/fields/seismic_design_category) | ASCE 7-22 Seismic Design Category (A-F) from the USGS seismic design web service, at the code-default site class D and risk category II (both in the notes with Ss, S1, SDS, SD1). | | [`seismic_pga_2pct_50yr_g`](https://docs.invariant-ai.com/fields/seismic_pga_2pct_50yr_g) | Peak ground acceleration (g) with 2% probability of exceedance in 50 years at Vs30=760 m/s, from the USGS 2018 National Seismic Hazard Model 0.05° grid point containing the coordinate (conterminous US). | | [`special_use_airspace_type`](https://docs.invariant-ai.com/fields/special_use_airspace_type) | Most restrictive FAA Special Use Airspace over the point: prohibited, restricted, warning, moa or alert; none when no SUA polygon covers it. | | [`superfund_sites_within_radius_count`](https://docs.invariant-ai.com/fields/superfund_sites_within_radius_count) | Number of distinct EPA SEMS (Superfund) program sites (by FRS registry ID) within 8 km. | | [`tornado_annual_frequency`](https://docs.invariant-ai.com/fields/tornado_annual_frequency) | Estimated tornado events per year in the containing Census tract (FEMA NRI TRND\_AFREQ). | | [`ust_facilities_within_1km_count`](https://docs.invariant-ai.com/fields/ust_facilities_within_1km_count) | Number of distinct UST Finder facilities within 1 km whose coordinates are street-level geocodes or state-sourced; postal/locality-centroid geocodes are excluded (count of excluded in notes). | | [`wildfire_annual_frequency`](https://docs.invariant-ai.com/fields/wildfire_annual_frequency) | Annual wildfire burn probability for the containing Census tract (FEMA NRI WFIR\_AFREQ), area-weighted over developed/agricultural land; a probability, not an event count. | ## Land cover 8 fields | Field | What it is | | --- | --- | | [`cdl_class`](https://docs.invariant-ai.com/fields/cdl_class) | USDA NASS Cropland Data Layer 2025 class at the 30 m cell (crop and non-crop classes, e.g. | | [`dominant_crop_5y`](https://docs.invariant-ai.com/fields/dominant_crop_5y) | Most frequent crop class at the 30 m cell over the last five USDA Cropland Data Layer editions (non-crop classes ignored; ties go to the crop seen most recently). | | [`is_cultivated`](https://docs.invariant-ai.com/fields/is_cultivated) | True if the 2025 CDL class at the 30 m cell is one of NASS's cultivated crop classes. | | [`land_use_class`](https://docs.invariant-ai.com/fields/land_use_class) | USFS LCMS land-use class at the 30 m cell for the newest annual map: Agriculture, Developed, Forest, Other, Rangeland or Pasture. | | [`lcms_class`](https://docs.invariant-ai.com/fields/lcms_class) | USFS Landscape Change Monitoring System (LCMS) land-cover class at the 30 m cell for the newest annual map (e.g. | | [`ndvi_change_5y`](https://docs.invariant-ai.com/fields/ndvi_change_5y) | Current NDVI minus the clear observation on the same tile and pixel closest to five years earlier (within 30 days, so the season matches). | | [`ndvi_current`](https://docs.invariant-ai.com/fields/ndvi_current) | Sentinel-2 L2A NDVI (-1 to +1) of the latest clear observation (SCL vegetation, bare soil, water or snow) of the 10 m pixel in the last 180 days, on one reference MGRS tile; scene id and date in notes. | | [`tree_canopy_pct`](https://docs.invariant-ai.com/fields/tree_canopy_pct) | NLCD Tree Canopy Cover percentage (0-100) at the 30 m cell, newest USFS annual product. | ## Parcels 34 fields | Field | What it is | | --- | --- | | [`blm_solar_application_land_status`](https://docs.invariant-ai.com/fields/blm_solar_application_land_status) | BLM 2024 Western Solar Plan (Record of Decision, Dec 2024) allocation at the point: available, avoidance, excluded, other, drecp\_cdca, western\_washington, or not\_blm\_solar\_planning\_area when no allocation polygon covers it. | | [`critical_habitat_listing_status`](https://docs.invariant-ai.com/fields/critical_habitat_listing_status) | ESA listing status (e.g. Endangered, Threatened) of the critical-habitat species. | | [`critical_habitat_species`](https://docs.invariant-ai.com/fields/critical_habitat_species) | Listed species the critical habitat is designated for, as common name (scientific name). | | [`critical_habitat_status`](https://docs.invariant-ai.com/fields/critical_habitat_status) | Designation status of the critical habitat containing the point: Final or Proposed. | | [`easement_acres`](https://docs.invariant-ai.com/fields/easement_acres) | GIS acreage of the easement containing the point (overlapping records are never summed). | | [`easement_holder`](https://docs.invariant-ai.com/fields/easement_holder) | Holder organization of the conservation easement(s) containing the point. | | [`easement_purpose`](https://docs.invariant-ai.com/fields/easement_purpose) | Stated deed purpose of the easement. PAD-US 4.1 publishes none, so this is always absent; the recorded instrument is required. | | [`easement_type`](https://docs.invariant-ai.com/fields/easement_type) | PAD-US designation type code of that easement (e.g. | | [`easement_year_established`](https://docs.invariant-ai.com/fields/easement_year_established) | Year the easement containing the point was established. | | [`intersects_conservation_easement`](https://docs.invariant-ai.com/fields/intersects_conservation_easement) | True if the point is inside a PAD-US 4.1 conservation easement. | | [`intersects_critical_habitat`](https://docs.invariant-ai.com/fields/intersects_critical_habitat) | True if the point is inside a USFWS ESA critical habitat polygon (Final or Proposed designation). | | [`intersects_protected_area`](https://docs.invariant-ai.com/fields/intersects_protected_area) | True if the point is inside a USGS PAD-US 4.1 Fee or Designation polygon (parks, refuges, wilderness, military lands, NGO preserves). | | [`parcel_address`](https://docs.invariant-ai.com/fields/parcel_address) | Situs address of that parcel. | | [`parcel_apn`](https://docs.invariant-ai.com/fields/parcel_apn) | County assessor parcel number (APN) of that parcel. | | [`parcel_area_m2`](https://docs.invariant-ai.com/fields/parcel_area_m2) | GIS area of that parcel in square metres (from Regrid ll\_gisacre or ll\_gissqft). | | [`parcel_boundary_geojson`](https://docs.invariant-ai.com/fields/parcel_boundary_geojson) | Parcel boundary as a GeoJSON geometry string (WGS84). | | [`parcel_data_source`](https://docs.invariant-ai.com/fields/parcel_data_source) | Where the parcel came from: regrid\_paid. | | [`parcel_geometry_wkt`](https://docs.invariant-ai.com/fields/parcel_geometry_wkt) | Parcel boundary as WKT (WGS84). | | [`parcel_id`](https://docs.invariant-ai.com/fields/parcel_id) | Regrid parcel id (ll\_uuid) of the parcel containing the point, else the nearest within 250 m. | | [`parcel_match_distance_m`](https://docs.invariant-ai.com/fields/parcel_match_distance_m) | Distance from the point to the matched parcel (0 for an exact intersect). | | [`parcel_match_radius_m`](https://docs.invariant-ai.com/fields/parcel_match_radius_m) | Search radius used for the nearest-parcel fallback (0 for an exact match). | | [`parcel_match_type`](https://docs.invariant-ai.com/fields/parcel_match_type) | exact\_intersect when the point is inside the parcel, nearest\_within\_radius for the 250 m fallback. | | [`parcel_owner`](https://docs.invariant-ai.com/fields/parcel_owner) | Owner of the parcel containing the point (not reported for a nearest-parcel match). | | [`parcel_zoning`](https://docs.invariant-ai.com/fields/parcel_zoning) | Zoning code of that parcel as published by Regrid. | | [`political_county`](https://docs.invariant-ai.com/fields/political_county) | County (or county equivalent, e.g. parish, borough) containing the point, e.g. Loudoun County. | | [`political_locality`](https://docs.invariant-ai.com/fields/political_locality) | Incorporated place (city, town, village) containing the point, e.g. | | [`political_region`](https://docs.invariant-ai.com/fields/political_region) | State (or DC / territory) containing the point, from current Census TIGERweb boundaries (the same boundaries Overture's US divisions use). | | [`protected_area_designation`](https://docs.invariant-ai.com/fields/protected_area_designation) | PAD-US designation type code (e.g. NF national forest, NP national park, NWR) of that most protective polygon. | | [`protected_area_gap_status`](https://docs.invariant-ai.com/fields/protected_area_gap_status) | GAP status (1 most protective for biodiversity … 4 no known mandate) of the most protective PAD-US polygon containing the point. | | [`protected_area_manager`](https://docs.invariant-ai.com/fields/protected_area_manager) | PAD-US manager name code (e.g. USFS, NPS, BLM, STAT) of that most protective polygon. | | [`protected_area_name`](https://docs.invariant-ai.com/fields/protected_area_name) | Unit name of the most protective (lowest GAP status) PAD-US Fee/Designation polygon containing the point. | | [`protected_area_public_access`](https://docs.invariant-ai.com/fields/protected_area_public_access) | PAD-US public access code of that polygon: OA open, RA restricted, XA closed, UK unknown. | | [`surface_management_agency`](https://docs.invariant-ai.com/fields/surface_management_agency) | Surface-managing agency of the BLM Surface Management Agency polygon containing the point: BLM, USFS, NPS, FWS, DOD, BOR, BIA, OTHER\_FEDERAL, STATE, PRIVATE\_OR\_UNKNOWN, or the publisher's codes LG (local), NTVALL (Alaska Native allotment), NTVPIC (Alaska Native lands). | | [`tract_geoid`](https://docs.invariant-ai.com/fields/tract_geoid) | 11-digit US Census tract GEOID (state + county + tract) containing the point, from the Census Geocoder's current vintage. | ## Terrain 25 fields | Field | What it is | | --- | --- | | [`aspect_cardinal`](https://docs.invariant-ai.com/fields/aspect_cardinal) | Slope aspect as one of eight directions (N, NE, E, SE, S, SW, W, NW) of the downhill direction, from the same computation as aspect\_degrees. | | [`aspect_degrees`](https://docs.invariant-ai.com/fields/aspect_degrees) | Slope aspect: compass bearing (0-360, clockwise from north) of the downhill direction at the point, from Horn's 3x3 method on the USGS 3DEP 1/3 arc-second DEM. | | [`bedrock_depth_cm`](https://docs.invariant-ai.com/fields/bedrock_depth_cm) | Depth to bedrock (cm) from the USDA STATSGO2 general soil map via Soil Data Access: muaggatt.brockdepmin (shallowest bedrock among components of 15%+ of the map unit). | | [`coast_distance_m`](https://docs.invariant-ai.com/fields/coast_distance_m) | Distance in metres to the nearest NOAA CUSP mapped shoreline line (ocean, estuary, tidal river, Great Lakes, marsh or man-made), from NOAA's Shoreline Data Explorer tiles. | | [`elevation`](https://docs.invariant-ai.com/fields/elevation) | The ground elevation at the point from the USGS 3D Elevation Program (3DEP). | | [`huc_12_name`](https://docs.invariant-ai.com/fields/huc_12_name) | Name of the USGS Watershed Boundary Dataset HUC-12 subwatershed containing the point; the 12-digit code is in the notes. | | [`intersects_nhd_area`](https://docs.invariant-ai.com/fields/intersects_nhd_area) | True if the point is inside a USGS NHDPlus HR NHDArea hydrographic polygon (stream/river area, canal/ditch, inundation area, wash, levee, ...); the polygon types are in the notes. | | [`intersects_wetland`](https://docs.invariant-ai.com/fields/intersects_wetland) | True if the point is inside a USFWS National Wetlands Inventory polygon (biological wetland map, not a jurisdictional determination). | | [`nearest_flowline_name`](https://docs.invariant-ai.com/fields/nearest_flowline_name) | GNIS name of the nearest USGS NHDPlus HR stream/river flowline (StreamRiver FType 460 or ArtificialPath 558, network and non-network layers) within 5 km; distance in the notes. | | [`nearest_waterbody_name`](https://docs.invariant-ai.com/fields/nearest_waterbody_name) | GNIS name of the nearest USGS NHD High Resolution waterbody (lake/pond, reservoir, swamp/marsh, estuary, playa or ice mass; the features NHDPlus HR distributes) within 5 km, searched in 500 m / 2 km / 5 km rings; type, permanent identifier and FDate in notes. | | [`nearest_wetland_distance_m`](https://docs.invariant-ai.com/fields/nearest_wetland_distance_m) | Geodesic distance in metres to the nearest NWI wetland polygon edge within 500 m; 0 inside a wetland. | | [`prime_farmland_classification`](https://docs.invariant-ai.com/fields/prime_farmland_classification) | SSURGO farmland class of the map unit collapsed to prime, prime\_if\_conditions\_met, statewide\_importance, unique, local\_importance or not\_prime (original text in notes). | | [`slope_degrees`](https://docs.invariant-ai.com/fields/slope_degrees) | Surface slope in degrees at the point, computed with Horn's 3x3 method on the USGS 3DEP 1/3 arc-second (about 10 m) DEM tile. | | [`soil_drainage_class`](https://docs.invariant-ai.com/fields/soil_drainage_class) | Natural drainage class (e.g. Well drained, Poorly drained) of the dominant component of the SSURGO map unit at the point. | | [`soil_hydrologic_group`](https://docs.invariant-ai.com/fields/soil_hydrologic_group) | Hydrologic soil group (A, B, C, D or dual such as A/D) of the dominant SSURGO component: runoff potential from low (A) to high (D). | | [`soil_map_unit_name`](https://docs.invariant-ai.com/fields/soil_map_unit_name) | Name of the SSURGO soil map unit containing the point (mapunit.muname). | | [`soil_restrictive_layer_depth_cm`](https://docs.invariant-ai.com/fields/soil_restrictive_layer_depth_cm) | Depth in cm to the shallowest restrictive layer (bedrock, duripan, etc.; kind in notes) of the dominant SSURGO component. | | [`soil_shrink_swell_class`](https://docs.invariant-ai.com/fields/soil_shrink_swell_class) | Shrink-swell potential (Low <3%, Moderate 3-6%, High 6-9%, Very High >=9% linear extensibility) of the surface horizon of the dominant SSURGO component. | | [`surface_water_permanence_pct`](https://docs.invariant-ai.com/fields/surface_water_permanence_pct) | JRC Global Surface Water occurrence at the ~30 m cell: percentage of valid Landsat observations 1984-2021 that saw water (v1.4). | | [`wetland_acres`](https://docs.invariant-ai.com/fields/wetland_acres) | Total acreage of the selected NWI wetland polygon (containing, else nearest within 500 m); not a share of any parcel. | | [`wetland_subtype`](https://docs.invariant-ai.com/fields/wetland_subtype) | Raw NWI Cowardin code (ATTRIBUTE, e.g. PFO1A) of the same selected wetland as wetland\_type. | | [`wetland_type`](https://docs.invariant-ai.com/fields/wetland_type) | Plain-English Cowardin classification of the NWI wetland containing the point, else the nearest within 500 m (e.g. | | [`wetlands_within_100m_count`](https://docs.invariant-ai.com/fields/wetlands_within_100m_count) | Number of NWI wetland polygons whose edge is within 100 m of the point. | | [`wetlands_within_500m_count`](https://docs.invariant-ai.com/fields/wetlands_within_500m_count) | Number of NWI wetland polygons whose edge is within 500 m of the point. | | [`within_floodplain_polygon`](https://docs.invariant-ai.com/fields/within_floodplain_polygon) | True if the point is inside a FEMA National Flood Hazard Layer Special Flood Hazard Area (the published SFHA\_TF flag of the containing flood zone polygon; zone and DFIRM panel in notes). | ## Utilities 57 fields | Field | What it is | | --- | --- | | [`antenna_structures_within_2km_count`](https://docs.invariant-ai.com/fields/antenna_structures_within_2km_count) | Number of FCC-registered antenna structures within 2 km. | | [`antenna_structures_within_500m_count`](https://docs.invariant-ai.com/fields/antenna_structures_within_500m_count) | Number of FCC-registered antenna structures within 500 m. | | [`avg_retail_electricity_price_industrial_usd_per_kwh`](https://docs.invariant-ai.com/fields/avg_retail_electricity_price_industrial_usd_per_kwh) | Industrial-sector average retail electricity price (USD/kWh) for the latest month in the point's state, EIA-861M (month and preliminary/final status in the notes). | | [`egrid_co2_output_rate_kg_per_mwh`](https://docs.invariant-ai.com/fields/egrid_co2_output_rate_kg_per_mwh) | Annual CO2-equivalent total-output emission rate (kg/MWh, SRC2ERTA) of that eGRID subregion, from EPA's eGRID2023 revision 2 table. | | [`egrid_subregion`](https://docs.invariant-ai.com/fields/egrid_subregion) | EPA eGRID subregion code (e.g. SRVC, ERCT, CAMX) whose eGRID2023 polygon contains the point, after checking EPA's multiple-subregion mask. | | [`electric_utility_service_territory`](https://docs.invariant-ai.com/fields/electric_utility_service_territory) | Name of the retail electric utility whose HIFLD (EIA-861 based) service territory contains the point, when exactly one does; EIA utility id and ownership type in notes. | | [`fiber_broadband_available`](https://docs.invariant-ai.com/fields/fiber_broadband_available) | Whether at least one ISP reports fiber (FTTP) mass-market availability in the FCC BDC H3 res-8 hexagon containing the point; an availability floor for the hexagon, not the parcel. | | [`fiber_provider_count`](https://docs.invariant-ai.com/fields/fiber_provider_count) | Count of distinct ISPs reporting fiber (FTTP) mass-market availability in the FCC BDC H3 res-8 hexagon containing the point (June 2024 release via Esri's Living Atlas copy). | | [`huc12_thermoelectric_consumptive_use_m3_per_day`](https://docs.invariant-ai.com/fields/huc12_thermoelectric_consumptive_use_m3_per_day) | Thermoelectric-power freshwater consumptive use (m3/day) summed over the USGS study plants assigned to the HUC-12 containing the point: USGS best-estimate 2020 values from the 2008-2020 reanalysis (Galanter et al. | | [`interconnection_queue_active_capacity_county_mw`](https://docs.invariant-ai.com/fields/interconnection_queue_active_capacity_county_mw) | Total capacity (MW) of active transmission-level generation and storage interconnection requests in the county containing the point (LBNL 'Queued Up', 2026 edition, queues through 2025-12-31; sum of published component MW). | | [`max_transmission_line_voltage_class_within_radius`](https://docs.invariant-ai.com/fields/max_transmission_line_voltage_class_within_radius) | Highest voltage-class band among all lines within ~2 km, ranking class-band-only lines alongside numeric ones. | | [`max_transmission_line_voltage_kv_within_radius`](https://docs.invariant-ai.com/fields/max_transmission_line_voltage_kv_within_radius) | Highest NUMERIC operating voltage (kV) among all transmission lines within ~2 km (transmission\_lines\_radius\_m). | | [`mobile_5g_coverage_class`](https://docs.invariant-ai.com/fields/mobile_5g_coverage_class) | Best modelled 5G-NR coverage tier any carrier reports for the FCC BDC H3 res-9 hexagon containing the point: '5G NR 35/3 In-Vehicle', '5G NR 35/3 Outdoor Stationary', '5G NR 7/1 In-Vehicle' or '5G NR 7/1 Outdoor Stationary' (computed from provider rows). | | [`nearest_airport_distance_m`](https://docs.invariant-ai.com/fields/nearest_airport_distance_m) | Geodesic distance to that airport's reference point (not the runway edge or obstruction surfaces). | | [`nearest_airport_name`](https://docs.invariant-ai.com/fields/nearest_airport_name) | Name of the nearest operational FAA airport (aerodrome; public or private use; heliports and seaplane bases excluded) within 50 km, from the FAA's live NASR-derived airport layer; identifier and use in notes. | | [`nearest_antenna_structure_distance_m`](https://docs.invariant-ai.com/fields/nearest_antenna_structure_distance_m) | Geodesic distance to the nearest FCC-registered antenna structure within 2 km (constructed, current registrations at any height; ASR covers structures needing FAA notice). | | [`nearest_antenna_structure_height_m`](https://docs.invariant-ai.com/fields/nearest_antenna_structure_height_m) | Overall height above ground (m) of that nearest structure, as registered. | | [`nearest_antenna_structure_owner`](https://docs.invariant-ai.com/fields/nearest_antenna_structure_owner) | Owner entity name of that nearest structure (single FCC owner record); owners recorded as individuals are not named. | | [`nearest_antenna_structure_type`](https://docs.invariant-ai.com/fields/nearest_antenna_structure_type) | FCC ASR structure-type code of that nearest structure (TOWER, GTOWER guyed, LTOWER lattice, MTOWER monopole, B building, BANT antenna on building, …). | | [`nearest_gas_pipeline_distance_m`](https://docs.invariant-ai.com/fields/nearest_gas_pipeline_distance_m) | Distance in meters to the nearest EIA interstate natural-gas pipeline. | | [`nearest_groundwater_well_depth_to_water_m`](https://docs.invariant-ai.com/fields/nearest_groundwater_well_depth_to_water_m) | Latest depth to water below land surface (USGS parameter 72019, feet converted at 0.3048 m/ft) at the nearest USGS monitoring location within 15 km that has such a reading, from a national snapshot of the USGS Water Data API. Often a historical reading; location, date, approval and qualifier in notes. | | [`nearest_port_name`](https://docs.invariant-ai.com/fields/nearest_port_name) | Name of the nearest BTS principal port (port statistical area polygon; distance 0 when the point is inside it), searched up to 5,000 km; the distance is in the notes. | | [`nearest_power_plant_capacity_mw`](https://docs.invariant-ai.com/fields/nearest_power_plant_capacity_mw) | Nameplate capacity in megawatts of the nearest power plant. | | [`nearest_power_plant_distance_m`](https://docs.invariant-ai.com/fields/nearest_power_plant_distance_m) | Geodesic distance in meters to the nearest EIA Atlas power plant. | | [`nearest_power_plant_name`](https://docs.invariant-ai.com/fields/nearest_power_plant_name) | Name of the nearest electric power-generating facility (EIA Atlas). | | [`nearest_power_plant_primary_fuel`](https://docs.invariant-ai.com/fields/nearest_power_plant_primary_fuel) | Primary fuel of the nearest power plant (Natural Gas, Coal, Nuclear, Solar, Wind, Hydro, etc.). | | [`nearest_proposed_generator_capacity_mw`](https://docs.invariant-ai.com/fields/nearest_proposed_generator_capacity_mw) | Nameplate capacity (MW) of that nearest planned generator; not available supply. | | [`nearest_proposed_generator_distance_m`](https://docs.invariant-ai.com/fields/nearest_proposed_generator_distance_m) | Geodesic distance to the nearest generator in the Planned and Planned\_PR sheets of the pinned monthly EIA-860M edition (planned or under construction); plant/generator ids in notes. | | [`nearest_proposed_generator_status`](https://docs.invariant-ai.com/fields/nearest_proposed_generator_status) | EIA-860M status of that nearest planned generator (e.g. | | [`nearest_public_water_system_name`](https://docs.invariant-ai.com/fields/nearest_public_water_system_name) | SDWIS name of the active community water system whose EPA service-area polygon contains the point (identified by that polygon's exact PWSID; despite the legacy word 'nearest', no distance ranking is done). | | [`nearest_rail_line_distance_m`](https://docs.invariant-ai.com/fields/nearest_rail_line_distance_m) | Geodesic distance to the nearest usable BTS NTAD / FRA North American Rail Network line segment (searched up to 200 km); abandoned, removed, trail and out-of-service segments (NET A, R, T, X) are excluded. | | [`nearest_substation_distance_m`](https://docs.invariant-ai.com/fields/nearest_substation_distance_m) | Geodesic distance in metres to the nearest mapped electric substation within 10 km (HIFLD Electric Substations, EIA-maintained re-host). | | [`nearest_substation_max_voltage_kv`](https://docs.invariant-ai.com/fields/nearest_substation_max_voltage_kv) | Maximum voltage (MAX\_VOLT, kV) of the nearest mapped substation within 10 km. | | [`nearest_substation_status`](https://docs.invariant-ai.com/fields/nearest_substation_status) | Reported operational status of the nearest mapped substation within 10 km, as published (e.g. | | [`nearest_transmission_line_distance_m`](https://docs.invariant-ai.com/fields/nearest_transmission_line_distance_m) | Distance in meters to the nearest EIA Atlas transmission line. | | [`nearest_transmission_line_owner`](https://docs.invariant-ai.com/fields/nearest_transmission_line_owner) | Owner/operator of the nearest line (e.g. "ONCOR ELECTRIC DELIVERY CO.") from source OWNER; null when unpublished. | | [`nearest_transmission_line_status`](https://docs.invariant-ai.com/fields/nearest_transmission_line_status) | Operating status of the nearest line: "IN SERVICE", "UNDER CONSTRUCTION", "INACTIVE", or null when unpublished. | | [`nearest_transmission_line_voltage_basis`](https://docs.invariant-ai.com/fields/nearest_transmission_line_voltage_basis) | How the nearest transmission line's voltage is known: numeric (published kV), class\_band (only a VOLT\_CLASS band) or not\_published. | | [`nearest_transmission_line_voltage_class`](https://docs.invariant-ai.com/fields/nearest_transmission_line_voltage_class) | Voltage-class band of the nearest line (e.g. | | [`nearest_transmission_line_voltage_kv`](https://docs.invariant-ai.com/fields/nearest_transmission_line_voltage_kv) | Operating voltage (kV) of the single nearest EIA/HIFLD transmission line. | | [`nearest_urban_area_distance_m`](https://docs.invariant-ai.com/fields/nearest_urban_area_distance_m) | Geodesic distance in metres to the nearest 2020 Census Urban Area boundary; 0 when the point is inside one (exact containment check). | | [`nearest_usgs_gage_daily_discharge_cfs`](https://docs.invariant-ai.com/fields/nearest_usgs_gage_daily_discharge_cfs) | Latest daily-mean discharge (ft^3/s) at that gage, as published (usually provisional); the date and approval status are in the notes. | | [`nearest_usgs_gage_distance_m`](https://docs.invariant-ai.com/fields/nearest_usgs_gage_distance_m) | Geodesic distance in metres to that gage. | | [`nearest_usgs_gage_id`](https://docs.invariant-ai.com/fields/nearest_usgs_gage_id) | Identifier (USGS-########) of the nearest active USGS stream gage within 10 km that reported a daily-mean discharge in the last 7 days. | | [`nearest_usgs_gage_name`](https://docs.invariant-ai.com/fields/nearest_usgs_gage_name) | Name of that gage (e.g. POTOMAC RIVER AT POINT OF ROCKS, MD). | | [`nearest_utility_solar_facility_capacity_mw`](https://docs.invariant-ai.com/fields/nearest_utility_solar_facility_capacity_mw) | AC nameplate capacity (MW, p\_cap\_ac) of that nearest USPVDB project; DC capacity is never substituted. | | [`nearest_utility_solar_facility_distance_m`](https://docs.invariant-ai.com/fields/nearest_utility_solar_facility_distance_m) | Geodesic distance to the representative point of the nearest USGS USPVDB large-scale solar PV project (searched up to 1000 km). | | [`nearest_wind_project_capacity_mw`](https://docs.invariant-ai.com/fields/nearest_wind_project_capacity_mw) | Capacity (MW, p\_cap) of the wind project the nearest turbine belongs to. | | [`nearest_wind_turbine_distance_m`](https://docs.invariant-ai.com/fields/nearest_wind_turbine_distance_m) | Geodesic distance to the nearest turbine in the USGS U.S. Wind Turbine Database (searched up to 1000 km). | | [`nearest_wind_turbine_hub_height_m`](https://docs.invariant-ai.com/fields/nearest_wind_turbine_hub_height_m) | Hub height (m, t\_hh) of that nearest turbine. | | [`nearest_wind_turbine_total_height_m`](https://docs.invariant-ai.com/fields/nearest_wind_turbine_total_height_m) | Total height to blade tip (m, t\_ttlh) of that nearest turbine. | | [`public_water_system_population_served`](https://docs.invariant-ai.com/fields/public_water_system_population_served) | Population served, as published on the EPA community water system service-area polygon that contains the point. | | [`surface_water_supply_use_index_huc12`](https://docs.invariant-ai.com/fields/surface_water_supply_use_index_huc12) | USGS surface-water supply-and-use index (0 = no apparent limitation, 1 = total depletion of the local supply) for the HUC-12 containing the point: mean of the publisher's monthly values for water years 2010-2020 (CONUS). | | [`transmission_lines_within_radius_count`](https://docs.invariant-ai.com/fields/transmission_lines_within_radius_count) | Count of EIA/HIFLD transmission segments within ~2 km (transmission\_lines\_radius\_m). | | [`water_service_area_provenance`](https://docs.invariant-ai.com/fields/water_service_area_provenance) | How the containing service-area boundary was produced, as published: symbology class (e.g. | | [`water_system_name`](https://docs.invariant-ai.com/fields/water_system_name) | Name (PWS\_Name) of the community water system whose service-area polygon contains the point; PWSID in notes. | | [`within_water_service_area`](https://docs.invariant-ai.com/fields/within_water_service_area) | Whether the point is inside a mapped EPA community water system service-area polygon. | --- # POST /v1/keys > Create an API key. No key needed to call this. Source: https://docs.invariant-ai.com/api/keys `POST https://api.invariant-ai.com/v1/keys` Creates a key for an email address and returns it once. We keep only its SHA-256 hash, so store the key when you get it. ```bash curl -s -X POST https://api.invariant-ai.com/v1/keys \ -H "Content-Type: application/json" \ -d '{"email": "you@company.com", "name": "laptop"}' ``` ```python import requests r = requests.post("https://api.invariant-ai.com/v1/keys", json={"email": "you@company.com", "name": "laptop"}, timeout=30) print(r.json()["key"]) ``` Response 201: ```json { "key": "ief_8cd6a1201bee09fc72e3053651b33f876feea6273de5fbd5", "key_id": "key_3f9a1c2b7d41", "key_prefix": "ief_8cd6a120", "email": "you@company.com", "name": "laptop", "created_at": "2026-11-22T04:10:00.000000+00:00" } ``` Response 409: ```json { "detail": { "error": "too_many_keys", "message": "you@company.com already has 5 active keys. Revoke one with DELETE /v1/keys/me first." } } ``` Response 429: ```json { "detail": { "error": "rate_limited", "message": "Too many keys created from this network. Try again later." } } ``` ## Body | Field | Type | Required | Notes | | --- | --- | --- | --- | | `email` | string | Yes | A valid email address. Stored lower-cased. | | `name` | string | No | A label for the key, up to 64 characters. | ## Response `201 Created` | Key | Meaning | | --- | --- | | `key` | The API key. Shown only in this response. | | `key_id` | Stable id for the key, safe to log. | | `key_prefix` | First 12 characters of the key, safe to display. | | `email`, `name`, `created_at` | What you sent, and when the key was made. | > Shown once. We cannot show key again. If you lose it, create a new key and revoke the old one. ## Errors | HTTP | `error` | When | | --- | --- | --- | | 400 | `invalid_request` | Missing or invalid email, or an unknown body key. | | 409 | `too_many_keys` | The email already has 5 active keys. | | 429 | `rate_limited` | 5 keys per hour from one network. See the `Retry-After` header. | --- # GET /v1/keys/me > Describe the key you are calling with. Source: https://docs.invariant-ai.com/api/key-me `GET https://api.invariant-ai.com/v1/keys/me` Returns the id, prefix, owner and status of the key on the request. Useful for checking which key a deployment is using without printing it. ```bash curl -s https://api.invariant-ai.com/v1/keys/me \ -H "X-API-Key: $INVARIANT_API_KEY" ``` Response 200: ```json { "key_id": "key_3f9a1c2b7d41", "key_prefix": "ief_8cd6a120", "email": "you@company.com", "name": "laptop", "created_at": "2026-11-22T04:10:00.000000+00:00", "revoked": false } ``` Response 401: ```json { "detail": { "error": "auth_invalid", "message": "API key not recognised or revoked." } } ``` ## Headers | Header | Notes | | --- | --- | | `X-API-Key` | The key to describe. `Authorization: Bearer ` also works. | ## Response | Key | Meaning | | --- | --- | | `key_id` | Stable id for the key. | | `key_prefix` | First 12 characters of the key. | | `email`, `name` | Who the key belongs to, and its label. | | `created_at` | When it was created. | | `revoked` | Always `false` here; a revoked key gets `401`. | --- # DELETE /v1/keys/me > Revoke the key you are calling with. Source: https://docs.invariant-ai.com/api/key-revoke `DELETE https://api.invariant-ai.com/v1/keys/me` Revokes the key on the request. It stops working within a minute on every server. This cannot be undone; create a new key if you need one. ```bash curl -s -X DELETE https://api.invariant-ai.com/v1/keys/me \ -H "X-API-Key: $INVARIANT_API_KEY" ``` Response 200: ```json { "key_id": "key_3f9a1c2b7d41", "revoked": true } ``` Response 401: ```json { "detail": { "error": "auth_invalid", "message": "API key not recognised or revoked." } } ``` ## Headers | Header | Notes | | --- | --- | | `X-API-Key` | The key to revoke. | ## Response | Key | Meaning | | --- | --- | | `key_id` | The revoked key's id. | | `revoked` | `true`. | --- # Errors > Request errors use HTTP status codes and one JSON shape. Source failures are not errors. Source: https://docs.invariant-ai.com/errors ## Error shape ```json { "detail": { "error": "coord_out_of_bounds", "message": "(51.5, -0.12) is outside the US envelope: lat [18.0, 72.0], lng [-180.0, -65.0]." } } ``` `detail.error` is a stable code to branch on; `detail.message` is for people. A malformed body returns `invalid_request` with one entry in `detail.problems` per problem. `loc` is the path to the bad value: ```json { "detail": { "error": "invalid_request", "message": "Request body is not valid.", "problems": [ { "loc": [ "body", "lat" ], "msg": "Input should be a valid number, unable to parse string as a number" }, { "loc": [ "body", "fields" ], "msg": "Field required" } ] } } ``` ## Codes | HTTP | `error` | When | | --- | --- | --- | | 400 | `invalid_request` | Body is not valid JSON for the endpoint: missing `fields`, wrong types, unknown keys. `detail.problems` lists each problem. | | 400 | `coord_out_of_bounds` | Coordinate outside lat 18 to 72, lng -180 to -65. | | 400 | `fields_unknown` | A field name is not in [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields). `detail.unknown` lists them. | | 400 | `auth_conflict` | Two different keys on one request. | | 401 | `auth_missing` | No API key. | | 401 | `auth_invalid` | Key not recognised or revoked. | | 409 | `too_many_keys` | The email already has 5 active keys. | | 429 | `rate_limited` | Too many keys created from one network. Honour `Retry-After`. | | 503 | `auth_unavailable` | Key service briefly unavailable. Retry. | ## Source failures are not errors If a source is slow or down, the request still returns `200`. The affected field has `status: "failed"` and appears in `partial_failures`. See [Responses](https://docs.invariant-ai.com/responses). ## Request IDs Every response has an `X-Request-ID` header. Send your own to correlate with your logs; include it when you contact us. --- # Use with AI agents > Everything an agent needs to find this API, read the docs and call /v1/fetch on its own. Source: https://docs.invariant-ai.com/agents The API was built with agents as first-class callers. Responses are plain JSON, every value carries the URL it came from, and a missing value is an explicit `null` with a reason, so a model never has to guess whether a gap is real. ## Docs an agent can read | What | URL | | --- | --- | | Index of every page, for LLMs | [`/llms.txt`](https://docs.invariant-ai.com/llms.txt) | | All docs in one Markdown file | [`/llms-full.txt`](https://docs.invariant-ai.com/llms-full.txt) | | Any page as Markdown | Add `.md` to the URL, for example [`/quickstart.md`](https://docs.invariant-ai.com/quickstart.md). The home page is [`/index.md`](https://docs.invariant-ai.com/index.md). | | Markdown by content negotiation | Send `Accept: text/markdown` to any page URL. | | Live field catalog, JSON, no key | `GET https://api.invariant-ai.com/v1/meta/fields` | Pointing a coding agent at the API? Paste `https://docs.invariant-ai.com/llms-full.txt` into its context. That file holds the whole reference. ## Rules for agents 1. Get a key with `POST /v1/keys` and the user's real email address. Ask the user for it; never invent one. The key is shown once, so store it (an environment variable such as `INVARIANT_API_KEY` is the convention). 2. Call `GET /v1/meta/fields` to learn which field names exist. It needs no key. 3. Call `POST /v1/fetch` with `lat`, `lng` (WGS84 decimal degrees, US only) and a `fields` array. Send the key in `X-API-Key`. Use a client timeout of 30 seconds or more. 4. Read `status` on each field. `ok` means use `value`. `absent` means the source has no data at that point, which is a real answer. `failed` means the source did not answer: retry later if `partial_failures[].retryable` is `true`, and do not report it as "no data". 5. When you tell a person a value, give the `source`, the `source_url` and the `dataset_vintage` with it. That lets them check the number against the agency. 6. One coordinate per request. For many points, send one request per point. ## Tool definition for Claude Pass this in `tools` on the Anthropic Messages API: ```json { "name": "invariant_fetch", "description": "Get cited public data for one US coordinate from the Invariant Earth API. Returns any of 220 fields (parcels, power and grid, hazards, terrain, climate, land cover, built environment; list them with GET /v1/meta/fields), each with its source URL, dataset vintage and confidence. US only: lat 18 to 72, lng -180 to -65.", "input_schema": { "type": "object", "properties": { "lat": { "type": "number", "minimum": 18, "maximum": 72, "description": "Latitude, WGS84 decimal degrees" }, "lng": { "type": "number", "minimum": -180, "maximum": -65, "description": "Longitude, WGS84 decimal degrees" }, "fields": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 50, "description": "Field names from GET /v1/meta/fields, for example [\"elevation\"]" } }, "required": [ "lat", "lng", "fields" ] } } ``` ## Tool definition for OpenAI The same tool for function calling with the OpenAI Chat Completions API: ```json { "type": "function", "function": { "name": "invariant_fetch", "description": "Get cited public data for one US coordinate from the Invariant Earth API. Returns any of 220 fields (parcels, power and grid, hazards, terrain, climate, land cover, built environment; list them with GET /v1/meta/fields), each with its source URL, dataset vintage and confidence. US only.", "parameters": { "type": "object", "properties": { "lat": { "type": "number", "description": "Latitude, WGS84 decimal degrees, 18 to 72" }, "lng": { "type": "number", "description": "Longitude, WGS84 decimal degrees, -180 to -65" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Field names, for example [\"elevation\"]" } }, "required": [ "lat", "lng", "fields" ] } } } ``` ## Run the tool Whatever model asks for the call, your code makes it the same way: ```python import os, requests API = "https://api.invariant-ai.com" def invariant_fetch(lat: float, lng: float, fields: list[str]) -> dict: r = requests.post( f"{API}/v1/fetch", headers={"X-API-Key": os.environ["INVARIANT_API_KEY"]}, json={"lat": lat, "lng": lng, "fields": fields}, timeout=30, ) if r.status_code != 200: # 400 and 401 carry a stable code in detail.error; hand it back to the model return {"error": r.json().get("detail", r.text)} return r.json() ``` Return the whole JSON to the model. It needs `status`, `source_url` and `partial_failures` to answer honestly. ## A system prompt line that works ```text When you need ground elevation for a US location, call invariant_fetch with fields ["elevation"]. Report the value in meters with its source_url and dataset_vintage. If status is "failed", say the source did not answer and retry later; if "absent", say USGS has no elevation at that point. ```