# US Wealth Barometer (States & Counties, Census ACS) (`researchdata/us-wealth-barometer`) Actor

One transparent prosperity index per US state and county from the Census Bureau's American Community Survey (ACS 5-year 2020-2024): income, poverty, unemployment, education and home value. No API key, documented method.

- **URL**: https://apify.com/researchdata/us-wealth-barometer.md
- **Developed by:** [Research Analyst](https://apify.com/researchdata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 region scoreds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Wealth Barometer (States & Counties, Census ACS)

One transparent prosperity index per US state and county from the Census Bureau's American Community Survey (ACS 5-year 2020-2024): median household income, per-capita income, poverty, unemployment, education, median home value and rent. No API key, documented method.

> **Beta:** the upstream API response format is parsed defensively. Please open an issue with an example if a field comes back empty.

### Why use it

- Site selection and market sizing for retail, services and field sales
- Real-estate and investment screening by county
- Data journalism and research: one clean county table instead of eight ACS downloads
- AI agents: one structured call for 'how wealthy is this county?'

No API keys, no scraping of HTML – the actor talks to the official public API, handles paging,
rate limits and retries, and returns flat JSON you can export as CSV/Excel or call from code,
Make, Zapier, n8n or AI agents (Apify MCP server).

### Input

| Field | Title | Description |
|---|---|---|
| `level` | Level | 'county' = all ~3,200 counties and county equivalents; 'state' = 50 states, DC and Puerto Rico. |
| `states` | States | Names, abbreviations or FIPS codes, e.g. California, CA, 06. Empty = all. |
| `regions` | Regions | Optional filter: part of a name (e.g. Harris), a state abbreviation or a FIPS prefix (e.g. 06037). |
| `indexIncludesHomeValue` | Include home value in the index | On (default): median home value is a component (weight 15 %, higher = wealthier). Off: the index uses income, education, poverty and unemployment only. |
| `maxResults` | Max rows | Upper limit of returned rows (cost control). |

Example input:

```json
{
  "level": "county",
  "states": [
    "CA"
  ],
  "indexIncludesHomeValue": true,
  "maxResults": 500
}
```

### Output (one dataset item per result)

```json
{
  "level": "county",
  "key": "06085",
  "name": "Santa Clara County",
  "state": "California",
  "stateCode": "06",
  "stateAbbr": "CA",
  "population": 1902047,
  "medianHouseholdIncomeUsd": 164281,
  "medianHouseholdIncomeMoeUsd": 1955,
  "perCapitaIncomeUsd": 80312,
  "povertyRatePct": 7.1,
  "unemploymentRatePct": 4.9,
  "bachelorsOrHigherPct": 56.5,
  "medianGrossRentUsd": 2857,
  "medianHomeValueUsd": 1490600,
  "dataRelease": "ACS 2024 5-year (2020-2024)",
  "wealthIndex": 92.1,
  "wealthTier": "very high",
  "indexBasis": "income+education+homeValue+poverty+unemployment",
  "indexRank": 83
}
```

#### Status values

`wealthIndex` = weighted mean of percentile ranks (0-100, higher = wealthier): median household income 35 %, poverty rate 25 % (inverted), bachelor's degree or higher 15 %, median home value 15 % (optional, on by default) and unemployment rate 10 % (inverted). Missing components are left out and the weights renormalised; `indexBasis` lists the components used; no income = no index. `wealthTier`: very high ≥ 80, high ≥ 60, medium ≥ 40, low ≥ 20, very low. Percentiles are computed against all counties (or all states), not against your filter. `medianHouseholdIncomeMoeUsd` is the ACS margin of error (90 % confidence); small counties can be very imprecise. `povertyRatePct` = persons below the poverty level / persons for whom poverty status is determined; `unemploymentRatePct` = unemployed / civilian labor force; `bachelorsOrHigherPct` = adults 25+ with bachelor's, master's, professional or doctoral degree. The key-value store holds `TIERS` (JSON: regions per tier and median index per state).

### Use with AI agents (Apify MCP server)

Add the Apify MCP server (`https://mcp.apify.com`) to Claude, Cursor or any MCP client and enable this actor
(`researchdata/us-wealth-barometer`). The agent can then call it directly: describe what you need, the agent fills the input
fields above, runs the actor and reads the dataset. Because results are flat JSON with explicit nulls, an agent can
use them without extra parsing. Set a maximum cost per run to keep agent calls capped.

### Pricing

Pay per event: **$0.003 per `region-scored`** (region scored). You only pay for results you get;
set a max cost per run to cap spending.
Higher Apify plans get automatic volume discounts: Bronze −10 %, Silver −20 %, Gold −30 %.

#### Cost example

At $0.003 per result: 50 results ≈ $0.15, 1,000 results ≈ $3.00.
Set a maximum cost per run in the run options to cap spending.

### Limits

- ACS 5-year estimates are survey-based averages over 2020-2024, not current values; small counties have wide margins of error (see the margin-of-error column).
- The index is a relative ranking, not a valuation. Do not use it as the sole basis for financial decisions.
- Data are read through the third-party Census Reporter API; if it is unavailable the run fails with a clear message. ZIP-code (ZCTA) and census-tract levels are not included yet.
- Connecticut: the Census Bureau replaced counties by planning regions in recent ACS releases; rows follow what the release publishes. Puerto Rico (municipios) is part of the county ranking pool; filter it out with `states` if you only want the 50 states and DC (percentiles still use the full pool).

### FAQ

**Does it need a Census API key?**\
No. The actor reads the official ACS tables through Census Reporter, which needs no key.

**Which year is it?**\
The latest ACS 5-year release available at run time (currently 2020-2024); every row carries `dataRelease`.

**Is this a net-worth measure?**\
No. It is a relative prosperity ranking built from income, education, poverty, unemployment and home values, not household wealth.

**Which levels are available?**\
States (incl. DC and Puerto Rico) and counties. ZIP codes and tracts may follow.

### Data source & terms

U.S. Census Bureau, American Community Survey 5-year estimates 2020-2024 (public domain), read through the Census Reporter API (censusreporter.org), which serves the official ACS tables without an API key. Please cite the U.S. Census Bureau. Please respect the data provider's terms and cite the original resource in publications.
This actor is an independent tool and is not affiliated with or endorsed by the data provider.

# Actor input Schema

## `level` (type: `string`):

'county' = all ~3,200 counties and county equivalents; 'state' = 50 states, DC and Puerto Rico.

## `states` (type: `array`):

Names, abbreviations or FIPS codes, e.g. California, CA, 06. Empty = all.

## `regions` (type: `array`):

Optional filter: part of a name (e.g. Harris), a state abbreviation or a FIPS prefix (e.g. 06037).

## `indexIncludesHomeValue` (type: `boolean`):

On (default): median home value is a component (weight 15 %, higher = wealthier). Off: the index uses income, education, poverty and unemployment only.

## `maxResults` (type: `integer`):

Upper limit of returned rows (cost control).

## Actor input object example

```json
{
  "level": "county",
  "states": [
    "CA"
  ],
  "indexIncludesHomeValue": true,
  "maxResults": 500
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `tiers` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "states": [
        "CA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("researchdata/us-wealth-barometer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "states": ["CA"] }

# Run the Actor and wait for it to finish
run = client.actor("researchdata/us-wealth-barometer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "states": [
    "CA"
  ]
}' |
apify call researchdata/us-wealth-barometer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,researchdata/us-wealth-barometer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rP4dbnZTVgLRs7ZeD/builds/ubQBGIXpL2SJURaIb/openapi.json
