Download a county report
Download a county report
Error codes, retries, and value states are in Errors and retries.
Schemas: ProblemDetails.
Download a PDF report for one county.
Templates
template | What 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-v1 | The immutable earlier county report. It still binds score settings. |
county-v2 | An opt-in report for selected observations. It reads canonical evidence, lineage, value states, and limitations. |
Key parameters
| Parameter | What to send |
|---|---|
dataset_version | Optional release to report on. county-v2 requires it. |
period_start, period_end, measure_id | county-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
| Response | Cause and what to do |
|---|---|
404 | A county-v2 observation is unknown. |
413 | The report exceeds the resource limits. Narrow the selection. |
422 | The template is unknown, or observation selectors were sent to county-v1 or county-v3. |
503 | county-v2 provenance is missing or mismatched, or the renderer failed or timed out. Retry later. |
fips*FipsCounty 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.
^\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.
dateperiod_end?|Exact inclusive observation end for county-v2.
datemeasure_id?array<string>|1–20 measure IDs; repeated or comma-separated for county-v2.
items <= 20template?TemplateCounty 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.
^[a-z]+-v\d+$"county-v3"smooth_k?Smooth KSmoothing 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.
5 <= value <= 20050missing_human_weakness?Missing Human WeaknessHuman 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.
540 <= value <= 9075low_incidence_breakpoint?|DeprecatedDeprecated. Do not send it. Any value returns 422. Use smooth_k to change how the human-case signal is smoothed.
PDF attachment.
response?fileapplication/pdfbinaryResponse Headers
Content-Type
Schema
stringMedia type of the body: `application/pdf`.
Cache-Control
Schema
stringHow 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
stringOpaque 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
stringMarks the body as a download and suggests the file name.
X-Request-ID
Schema
stringIdentifier 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.
curl -X GET 'https://api.onehealthatlas.org/v1/counties/08001/report.pdf'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