One Health Atlas documentation
View source

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

Client
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.

API playground
Anonymous read-only GET. The status, body, and headers below are the response from the public API.
Endpoint
Example

Five-digit county FIPS. 36061 is New York County.

No request sent yet.

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.

FieldMeaning
dataObservation records for this query. An empty array means this page has no rows.
value_stateHow to read value on each row. Check it before you read value.
meta.next_page_tokenOpaque continuation. null means this query is exhausted. Send it unchanged with the same filters.
meta.response_atWhen Atlas built the response, in UTC. It does not date the publisher update or the observation.
meta.availabilityWhether this selection has published . Read it before you use data.
links.selfLink 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.

Client
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.

Last updated on