One Health Atlas documentation
Counties
View source

Download a county report

Download a county report

Error codes, retries, and value states are in Errors and retries.

Schemas: ProblemDetails.

GET
/v1/counties/{fips}/report.pdf
OpenAPI schema

Download a PDF report for one county.

Templates

templateWhat it returns
county-v3 (default)The two-page County Data Brief for the published gap score and Explorer follow-up. It ignores score-setting overrides, so a What-if request cannot change the published score, response category, recommendations, or questions.
county-v1The immutable earlier county report. It still binds score settings.
county-v2An opt-in report for selected observations. It reads canonical evidence, lineage, value states, and limitations.

Key parameters

ParameterWhat to send
dataset_versionOptional release to report on. county-v2 requires it.
period_start, period_end, measure_idcounty-v2 only. Send both dates and 1 to 20 measure IDs, repeated or comma-separated. county-v1 and county-v3 reject them with 422.

Caching

ETag and If-None-Match support 304. Published briefs can be cached for 300 seconds with revalidation. county-v2 responses must not be cached, and the API revalidates authoritative context before it answers 304.

Common problems

ResponseCause and what to do
404A county-v2 observation is unknown.
413The report exceeds the resource limits. Narrow the selection.
422The template is unknown, or observation selectors were sent to county-v1 or county-v3.
503county-v2 provenance is missing or mismatched, or the renderer failed or timed out. Retry later.
fips*Fips

County FIPS code: exactly five digits, sent as a string with leading zeros kept, for example 01001, not 1001. Connecticut uses planning-region codes such as 09110. A malformed value returns 422. A county not in the current release returns 404.

Match^\d{5}$
dataset_version?|

Data release to read, as a release_id. Omit it to use the current release. Copy a value from release_id in the metadata response. An unknown release returns 404.

period_start?|

Exact inclusive observation start for county-v2.

Formatdate
period_end?|

Exact inclusive observation end for county-v2.

Formatdate
measure_id?array<string>|

1–20 measure IDs; repeated or comma-separated for county-v2.

Itemsitems <= 20
template?Template

County report template. Accepted values are county-v3 (default; the two-page County Data Brief, which ignores score settings), county-v1, and county-v2 (requires dataset_version, period_start, period_end, and measure_id). A well-formed value that is not accepted returns 422.

Match^[a-z]+-v\d+$
Default"county-v3"
ecological_share?Ecological Share

Percent of the gap score weighted to ecological evidence (tick and pathogen signals). The rest goes to community vulnerability (social vulnerability, insurance access, and rurality). Use a multiple of 5 from 40 to 85. The default is 65. The published score always uses the default. Another value gives a what-if scenario, not the published score. A value outside the accepted range returns 422.

Multiple Of5
Range40 <= value <= 85
Default65
smooth_k?Smooth K

Smoothing constant for the human-case signal. It sets the reported incidence at which the human weakness signal falls to 50: a larger value keeps the signal high for more counties. Use a whole number from 5 to 200. The default is 50. The published score always uses the default. Another value gives a what-if scenario, not the published score. A value outside the accepted range returns 422.

Range5 <= value <= 200
Default50
missing_human_weakness?Missing Human Weakness

Human weakness signal (0-100) that Atlas assumes for a county with no published human case count or incidence. A missing count is not zero. Use a multiple of 5 from 40 to 90. The default is 75. The published score always uses the default. Another value gives a what-if scenario, not the published score. A value outside the accepted range returns 422.

Multiple Of5
Range40 <= value <= 90
Default75
low_incidence_breakpoint?|Deprecated

Deprecated. Do not send it. Any value returns 422. Use smooth_k to change how the human-case signal is smoothed.

Response Body

PDF attachment.

response?fileapplication/pdf
Formatbinary

Response Headers

  • Content-Type

    Schema string

    Media type of the body: `application/pdf`.

  • Cache-Control

    Schema string

    How long a client or shared cache can reuse the response: `public, max-age=300, must-revalidate`. The `county-v1` and `county-v3` templates send this value. The `county-v2` template sends `no-store`. While the API serves a fallback copy of its data, it replaces a `public` value with `private, no-store`.

  • ETag

    Schema string

    Opaque validator for this representation. Send it as `If-None-Match` to get an empty 304 when nothing changed. Send the value back exactly as you received it.

  • Content-Disposition

    Schema string

    Marks the body as a download and suggests the file name.

  • X-Request-ID

    Schema string

    Identifier for this request. Quote it when you ask for support. If you send a valid `X-Request-ID` request header, the API uses that value. Otherwise it generates one. A response that a shared cache replays can carry the identifier of the request that filled the cache.

Example Request
curl -X GET 'https://api.onehealthatlas.org/v1/counties/08001/report.pdf'
Example ResponseSchema

Response headers: Content-Type: application/pdf, Content-Disposition: attachment; filename="New_York_NY_AtlasBrief.pdf", a weak ETag, and Cache-Control: public, max-age=300, must-revalidate. The body is a binary PDF; only its first bytes are shown.

"%PDF-1.7"

Last updated on