# 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.
