Duaer

Get started

US Census ACS in Duaer

In Duaer: US Census American Community Survey 5-year: population, household income, age, home value, rent, and poverty by state or county. One successful search uses 1 credit.

What you get

Duaer US Census ACS reads one measure from the American Community Survey 5-year estimates (2020–2024) for every state, or for the counties of one state, highest first. Duaer holds the upstream API key; you only send your Duaer key.

Pick Duaer Data → US Census ACS in the node creator, or open the data market. Related: US federal agency budgets, World Bank indicators.

When to use it

  • Rank US states by median household income.
  • Find the counties in a state with the highest poverty rate.

When not to use it

Search on the canvas

  1. Open the node creator and pick Duaer Data → US Census ACS.
  2. Fill Measure (such as medianIncome). Optional: State (such as CA), Place Words.
  3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

Call the API

  • GET https://api.duaer.com/v1/data/census?measure=medianIncome
  • Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

Call skill

Same text as Copy skill.

---
name: duaer-census
description: >-
  Duaer US Census ACS. US Census American Community Survey 5-year: population, household income, age, home value, rent, and poverty by state or county.
  One successful search uses 1 Duaer credit.
---

# Duaer US Census ACS

Duaer US Census ACS reads one measure from the American Community Survey 5-year estimates (2020–2024) for every state, or for the counties of one state, highest first. Duaer holds the upstream API key; you only send your Duaer key.

## When to use

- Rank US states by median household income.
- Find the counties in a state with the highest poverty rate.

## When not to use

- Country comparisons. Use https://skills.duaer.com/world-bank.md.
- Federal spending. Use https://skills.duaer.com/usaspending.md.

## Call

`GET https://api.duaer.com/v1/data/census?measure=medianIncome`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `measure`, and optionally `state`.

- `measure` — `population`, `medianIncome`, `medianAge`, `medianHomeValue`, `medianRent`, or `povertyRate`. Default population.
- `state` — Optional. Two-letter code such as CA; rows are then its counties.
- `words` — Optional. Words in the place name, such as Los Angeles.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/census?measure=medianIncome` — states by median household income.
- `GET https://api.duaer.com/v1/data/census?measure=povertyRate&state=TX` — Texas counties by poverty rate.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `name`, `measure`, `value`, `unit` — place, measure, figure, and unit.
- `stateFips`, `countyFips` — FIPS codes.
- `year` — last year of the 5-year window.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/usaspending.md — Duaer US federal agency budgets
- https://skills.duaer.com/world-bank.md — Duaer World Bank indicators

Questions

How many credits does a US Census ACS search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

Which years does Duaer US Census ACS cover?

Duaer uses the ACS 5-year estimates for 2020–2024. Figures are five-year averages, good for comparing places, not single-year change.

In this section