---
title: "Counties"
description: "Get county detail and download county PDF reports."
---
import { Tab, Tabs } from "fumadocs-ui/components/tabs";

Generated from the public OpenAPI contract.

Get county detail and download county PDF reports.

## Get county detail and provenance [#getCounty]

`GET /v1/counties/{fips}`

Operation ID: `getCounty`

[Parameters, responses, and schema](/docs/api-reference/counties/getCounty).

## Download a county report [#downloadCountyReport]

`GET /v1/counties/{fips}/report.pdf`

Operation ID: `downloadCountyReport`

[Parameters, responses, and schema](/docs/api-reference/counties/downloadCountyReport).

### Template selection

Choose `template` on `GET /v1/counties/{fips}/report.pdf`. The default is `county-v3`. Use a county FIPS in the lower 48 states or the District of Columbia. A scoring PDF is a review-priority report. An evidence PDF repeats canonical observations, lineage, value states, and limitations. Neither report is a diagnosis, an individual risk estimate, or a causal claim.

The default county-v3 brief uses published Surveillance Gap Score v1.1 with Smooth k=50 and ignores scenario overrides. Scoring and data-release methodologies remain distinct.

The same selector rules, with the requests checked against the published API, are in the [workflow guides](/docs/develop/workflows#download-a-county-report).

<Tabs groupId="atlas-county-report-template" items={["county-v1 scoring","county-v2 evidence"]} persist>
  <Tab value="county-v1 scoring">

`county-v1` is the scoring selector. `dataset_version` is optional. These score settings are optional and bind the scoring inputs:

| Parameter | Default | Bounds |
| --- | --- | --- |
| `ecological_share` | 65 | 40–85, multiple of 5 |
| `smooth_k` | 50 | 5–200 |
| `missing_human_weakness` | 75 | 40–90, multiple of 5 |

`period_start`, `period_end`, and `measure_id` are forbidden on `county-v1`. Sending one of them returns HTTP `422`. Checked on 18 October 2026 for FIPS `36061`:

```json
{
  "type": "https://onehealthatlas.org/problems/http-422",
  "title": "Request failed",
  "status": 422,
  "detail": "Observation context requires county-v2.",
  "instance": "/v1/counties/36061/report.pdf",
  "request_id": "example-request-id",
  "errors": null
}
```

An unknown registered-pattern template returns HTTP `422` with detail `The requested county report template is not available.` A template outside `^[a-z]+-v\d+$` returns HTTP `422` with detail `One or more request values are invalid.`

A successful county-v1 response uses `Cache-Control: public, max-age=300, must-revalidate`. `ETag` with `If-None-Match` can return `304`.

```sh
curl -fsS 'https://api.onehealthatlas.org/v1/counties/36061/report.pdf?template=county-v1'
```

  </Tab>
  <Tab value="county-v2 evidence">

`county-v2` is the evidence selector. It requires `dataset_version`, `period_start`, `period_end`, and `measure_id`. Pass the observation `release_id` as `dataset_version`. `period_start` and `period_end` are the exact inclusive dates. `measure_id` accepts 1–20 distinct ids, repeated or comma-separated.

A missing release, period, or measure list, a duplicate measure id, more than 20 ids, or a reversed period returns HTTP `422`. Checked on 18 October 2026:

```json
{
  "type": "https://onehealthatlas.org/problems/http-422",
  "title": "Request failed",
  "status": 422,
  "detail": "county-v2 requires release, exact period and distinct measures.",
  "instance": "/v1/counties/36061/report.pdf",
  "request_id": "example-request-id",
  "errors": null
}
```

An unknown measure returns HTTP `404` `RESOURCE_NOT_FOUND`. The contract also returns HTTP `503` when provenance is missing or mismatched, and HTTP `413` when the report exceeds resource limits.

Score settings are the county-v1 inputs above. A checked county-v2 request that also sent `ecological_share=65` still returned HTTP `200` and `Cache-Control: no-store`.

A successful county-v2 response uses `Cache-Control: no-store`. The service revalidates authoritative context before a cache response or `304`. `ETag` is still present.

Replace `RELEASE_ID` with the observation `release_id`:

```sh
curl -fsS 'https://api.onehealthatlas.org/v1/counties/36061/report.pdf?template=county-v2&dataset_version=RELEASE_ID&period_start=2023-01-01&period_end=2023-12-31&measure_id=case_count_floor_2023'
```

The same checked requests are in the [workflow guides](https://onehealthatlas.org/docs/develop/workflows#download-a-county-report).

  </Tab>
</Tabs>

## Get county surveillance situations [#getCountySurveillanceSituations]

`GET /v1/counties/{fips}/surveillance-situations`

Operation ID: `getCountySurveillanceSituations`

[Parameters, responses, and schema](/docs/api-reference/counties/getCountySurveillanceSituations).

## Get county surveillance review priority [#getCountyTier1Priority]

`GET /v1/counties/{fips}/tier1-surveillance-priority`

Operation ID: `getCountyTier1Priority`

[Parameters, responses, and schema](/docs/api-reference/counties/getCountyTier1Priority).

## Check surveillance priority availability [#checkCountyTier1Availability]

`GET /v1/counties/{fips}/tier1-surveillance-priority/availability`

Operation ID: `checkCountyTier1Availability`

[Parameters, responses, and schema](/docs/api-reference/counties/checkCountyTier1Availability).
