Quickstart
Send one anonymous observation request, read the response, and handle the first problems.
Send one anonymous request for the 2023 published case-count floor for New York County. The id case_count_floor_2023 is the example on the public observations operation. County 36061 is in the lower 48.
Use an HTTPS client. Skip the account and the API key. These client tabs stay in sync with the workflow guides and the REST pagination example: curl, Python httpx, R httr2, or TypeScript fetch. The choice remains after a reload.
Make a request
curl -fsS 'https://api.onehealthatlas.org/v1/observations?measure_id=case_count_floor_2023&geography_type=county&geography_id=36061&year=2023'curl -f hides error bodies. Drop -f when you need to read a problem response.
Try this request
This playground sends that anonymous GET through the docs site. It adds no API key and leaves the response unchanged.
Read the response
A successful body is a collection. Check before you read . Read value with unit.
Interpret with care
case_count_floor_2023 is a privacy-protected surveillance floor, in cases.
A case floor is not a diagnosis, a complete count, or an individual risk.
| Field | Meaning |
|---|---|
data | Observation records for this query. An empty array means this page has no rows. |
value_state | How to read value on each row. Check it before you read value. |
meta.next_page_token | Opaque continuation. null means this query is exhausted. Send it unchanged with the same filters. |
meta.response_at | When Atlas built the response, in UTC. It does not date the publisher update or the observation. |
meta.availability | Whether this selection has published . Read it before you use data. |
links.self | Link to this page. The contract allows null. |
Keep with the value you store. This sample is trimmed from a response for governed-2026-10-15-january-climate-prod. Read value and from your own response. A later release can change them.
Follow provenance
Copy and from the observation you received. Keep the reference with that row. The example uses human and human_confirmed_probable_case_floor_v1.
curl -fsS 'https://api.onehealthatlas.org/v1/sources/human'
curl -fsS 'https://api.onehealthatlas.org/v1/methodologies/human_confirmed_probable_case_floor_v1'Detail routes return data. An unknown id returns HTTP 404 RESOURCE_NOT_FOUND. A matching If-None-Match on a source or methodology returns HTTP 304 and an empty body. This observation collection ignores If-None-Match and returns HTTP 200.
Handle problems
Use this table for the quickstart URL, and for the same query with another county FIPS, period, or extra parameter. Handle an empty page, a bad request, and a retry before you look up the other codes.
The other codes and states are in Errors and retries: Value states, INVALID_REQUEST, UNSUPPORTED_FILTER, UNSUPPORTED_STRATIFICATION, QUERY_TOO_BROAD, RESOURCE_NOT_FOUND, RATE_LIMITED, HTTP 413, HTTP 414, HTTP 503, and Retries.
Next steps
Release notes for the pinned contract are in What's new.
What's new
See what changed in the public API.
Errors and retries
Look up a code, a retry, or a value state.
Indicators, measures, and observations
Choose a measure and read each value state.
Provenance and evidence
Cite the source, methodology, and release with the value.
REST API
Page a collection and read every problem code.
Workflow guides
Query, compare, and cite a county.
Open the workflow guides.
Last updated on