Population statistics and U.S
agent-vending-production.up.railway.app/v1/us-demographics
Population statistics and U.S. Census demographics: ACS 5-year demographic and population statistics (income, education, labor, housing) with margins of error for a state, county, place or ZIP area; snapshot, compare 2 places, trend, catalog. Data: U.S. Census Bureau American Community Survey (ACS); not endorsed by the Census Bureau. Invalid input: HTTP 400/422, not charged. US Demographic Intelli
POST
https://agent-vending-production.up.railway.app/v1/us-demographicsUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-vending-production.up.railway.app/v1/us-demographics", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"geography":{"name":"California","type":"state"},"metrics":["total_population","median_age","median_household_income"],"mode":"snapshot","release":2023}),
});
console.log(await res.json());Example input
{
"geography": {
"name": "California",
"type": "state"
},
"metrics": [
"total_population",
"median_age",
"median_household_income"
],
"mode": "snapshot",
"release": 2023
}