---
title: "API reference"
description: "Generated from the pinned public Atlas OpenAPI contract, with spec version, source, and the raw schema."
---
import { EndpointDeliveryBadge } from "@/features/docs/endpoint-delivery-badge";

This page is generated from the public OpenAPI contract. It is not a second hand-maintained endpoint catalog. Tags, operation IDs, parameters, schemas, examples, and errors are rendered from that contract by the native OpenAPI reference.

## Spec version and source

| Label | Value |
| --- | --- |
| OpenAPI version | `3.1.0` |
| Application version | `0.1.0` |
| HTTP contract | `/v1` |
| Source repository | `Caraway-Labs/one-health-lyme-gap-atlas-api` |
| Source commit | `4bc001bb6c03d16aef80762174691fdf9b898707` |
| Source file | `openapi.json` |
| Checksum | `c8e0b42feb019eabc4ee0033e7501d5134c946c74750432f7bd5a1ee32a44618` |

Application version `0.1.0` identifies the OpenAPI `info.version` field. The HTTP contract is `/v1`. Those identifiers are different. This reference build is identified by the source commit and checksum.

Raw spec: [OpenAPI schema](https://api.onehealthatlas.org/openapi.json).

Pinned source: [Caraway-Labs/one-health-lyme-gap-atlas-api@4bc001bb6c03d16aef80762174691fdf9b898707](https://github.com/Caraway-Labs/one-health-lyme-gap-atlas-api/blob/4bc001bb6c03d16aef80762174691fdf9b898707/openapi.json).

## Downloads

Import the pinned contract into a client, or download the file the reference was generated from.

- [Raw OpenAPI schema](https://api.onehealthatlas.org/openapi.json).
- [Pinned contract](/downloads/atlas-public-openapi.json). Commit `4bc001bb6c03d16aef80762174691fdf9b898707`. Checksum `c8e0b42feb019eabc4ee0033e7501d5134c946c74750432f7bd5a1ee32a44618`.
- [Checksum and commit](/downloads/atlas-public-openapi.provenance.json).
- [Postman collection](/downloads/atlas.postman_collection.json). Generated from the pinned contract. The collection variable `baseUrl` is `https://api.onehealthatlas.org`.

## Servers

- `https://api.onehealthatlas.org` (Production)

## External documentation

[Atlas documentation and developer guides](https://onehealthatlas.org/docs)

**Governed Atlas analytics, metadata, and provenance**

Read-only JSON API for county and state Lyme disease surveillance,
public-health context, and the sources behind them. It is for developers, analysts, and
public-health practitioners. The base URL is
`https://api.onehealthatlas.org`, and public reads need no API key.

## Quickstart
Get the 2023 case-count floor for New York County (FIPS `36061`):

```bash
curl 'https://api.onehealthatlas.org/v1/observations?measure_id=case_count_floor_2023&geography_type=county&geography_id=36061&year=2023'
```

The response is trimmed to the fields that matter. The values are an example:

```json
\{
  "data": [\{
    "measure_id": "case_count_floor_2023",
    "geography": \{"geography_type": "county", "geography_id": "36061"},
    "value": 1114.0, "value_state": "OBSERVED", "unit": "cases",
    "source_label": "CDC Lyme surveillance", "release_id": "...",
    "limitations": ["..."]
  }],
  "meta": \{"next_page_token": null, "availability": "AVAILABLE"},
  "links": \{"self": null}
}
```

## Responses
Collections return `data` (the items), `meta` (paging, `availability`, `release_id`,
response time), and `links`. A single resource returns `data`.

## Pagination
`page_size` defaults to 100 (maximum 500). Send `meta.next_page_token` as `page_token`,
unchanged and with the same filters. A `null` token means there are no more pages.

## Errors
Errors use RFC 9457 `application/problem+json` with a stable `code` and a `request_id`
to quote when you ask for support. A query that selects more than 10,000 results is
rejected with 400 `QUERY_TOO_BROAD`, not truncated.

## Response headers and caching
Every response has `Content-Type` and `X-Request-ID`; quote the ID when you ask for
support. Each `200` lists its other headers. Cache lifetimes run from 60 seconds to one
year. Detail resources, geometry, and PDF reports return an `ETag`; send it as
`If-None-Match` to get an empty `304`. Other operations always return the full body.

## Rate limits and retries
Metadata, provenance, observation, and geography availability reads are limited per client
address to 60 requests a minute and 5 at once. Other operations have a separate, higher
limit. These defaults can change, and Atlas publishes no per-key quota. A `429` or `503`
can carry `Retry-After` in seconds; wait that long. Without it, wait 1 second, double
after each failure up to 60 seconds, add jitter, and stop after a few attempts. Do not
retry a `400`, `404`, or `422`.

## Interpreting results
Read each value with its `value_state`, source, methodology version, `release_id`, and
`limitations`. Atlas results are not a diagnosis. Atlas results are not an estimate of
an individual's risk. Surveillance floors are minimum counts, not complete incidence.
Null, zero, suppressed, and no linked record mean different things. The response time
shows when Atlas built the response. It does not show when the publisher last updated
the data.

## Stability
`/v1` is the contract version, and the application version is separate. Optional fields
may be added within V1. Breaking changes follow a published deprecation plan.
Release notes: [API changelog](/docs/develop/changelog).


## Operations

### Canonical Evidence

#### discovery

List the indicators and measures you can query.

- [`GET /v1/indicators`](/docs/api-reference/discovery/listIndicators) — List indicators — `listIndicators`
- [`GET /v1/indicators/{indicator_id}`](/docs/api-reference/discovery/getIndicator) — Get an indicator — `getIndicator`
- [`GET /v1/measures`](/docs/api-reference/discovery/listMeasures) — List measures — `listMeasures`
- [`GET /v1/measures/{measure_id}`](/docs/api-reference/discovery/getMeasure) — Get a measure — `getMeasure`

#### observations

Query measure values for counties, each with an explicit `value_state`.

- [`GET /v1/observations`](/docs/api-reference/observations/listObservations) — Query county observations — `listObservations`

#### provenance

Look up the sources and methodologies behind a value, with versions.

- [`GET /v1/methodologies/{methodology_id}`](/docs/api-reference/provenance/getMethodology) — Get a methodology — `getMethodology`
- [`GET /v1/sources`](/docs/api-reference/provenance/listSources) — List sources — `listSources`
- [`GET /v1/sources/{source_id}`](/docs/api-reference/provenance/getSource) — Get a source — `getSource`

#### geographies

Validate a county or state FIPS code. Atlas does not yet publish place records, so these operations return HTTP 200 with `availability` set to `UNAVAILABLE`.

- [`GET /v1/geographies/{geography_type}/{geography_id}`](/docs/api-reference/geographies/getGeography) — Get geography identity — `getGeography` <EndpointDeliveryBadge />
- [`GET /v1/geographies/{geography_type}/{geography_id}/availability`](/docs/api-reference/geographies/checkGeographyAvailability) — Check county geography availability — `checkGeographyAvailability`

### Atlas Analytics/Reports

#### atlas

Get release metadata, scores, rankings, and map geometry.

- [`GET /v1/atlas/geometry`](/docs/api-reference/atlas/getAtlasGeometry) — Get county map geometry — `getAtlasGeometry`
- [`GET /v1/atlas/map-values`](/docs/api-reference/atlas/getAtlasMapValues) — Get map values by county — `getAtlasMapValues`
- [`GET /v1/atlas/metadata`](/docs/api-reference/atlas/getAtlasMetadata) — Get release metadata — `getAtlasMetadata`
- [`GET /v1/atlas/ranking.csv`](/docs/api-reference/atlas/downloadAtlasRanking) — Download county rankings as CSV — `downloadAtlasRanking`
- [`GET /v1/atlas/scores`](/docs/api-reference/atlas/getAtlasScores) — Get county gap scores — `getAtlasScores`

#### counties

Get county detail and download county PDF reports.

- [`GET /v1/counties/{fips}`](/docs/api-reference/counties/getCounty) — Get county detail and provenance — `getCounty`
- [`GET /v1/counties/{fips}/report.pdf`](/docs/api-reference/counties/downloadCountyReport) — Download a county report — `downloadCountyReport`
- [`GET /v1/counties/{fips}/surveillance-situations`](/docs/api-reference/counties/getCountySurveillanceSituations) — Get county surveillance situations — `getCountySurveillanceSituations`
- [`GET /v1/counties/{fips}/tier1-surveillance-priority`](/docs/api-reference/counties/getCountyTier1Priority) — Get county surveillance review priority — `getCountyTier1Priority`
- [`GET /v1/counties/{fips}/tier1-surveillance-priority/availability`](/docs/api-reference/counties/checkCountyTier1Availability) — Check surveillance priority availability — `checkCountyTier1Availability`

#### states

Download state PDF reports.

- [`GET /v1/states/{state}/report.pdf`](/docs/api-reference/states/downloadStateReport) — Download a state report — `downloadStateReport`
- [`GET /v1/states/{state}/review`](/docs/api-reference/states/getStateReview) — Review a state's county evidence — `getStateReview`

Component schemas: [Schemas](/docs/api-reference/schemas) (57).
