# x402datasource Enhanced Demographics

> x402datasource Enhanced Demographics is a paid API for AI agents from x402datasource.com, paid per call via x402, $0.05/call, status down (last checked 2026-10-12).

Returns detailed demographic, housing, education, employment, and income data for a US address or geographic coordinates within a configurable radius.

## Facts

- Endpoint: GET https://x402datasource.com/api/v1/enhanced-demographics?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402datasource-com-04045c19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HSRTWpHYM6nU-RtvXT3EG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402datasource-com-04045c19
```

Example prompt: Pull the detailed census demographics — population breakdown by race, gender, education, housing, and income — for the area within 3 miles of 1600 Pennsylvania Ave NW, Washington DC, using the 2023 ACS vintage.

## When to prefer this

Use this endpoint when you need comprehensive, multi-dimensional demographic data (demographics, housing, education, employment, income all in one call) for a specific US location. Prefer this over the sibling basic demographics endpoint when you need granular breakdowns beyond just population and median income. Ideal for real estate analysis, site selection, market research, or any enrichment workflow that needs census-derived neighborhood statistics.

## Known failure modes

- Address cannot be geocoded — returns error if the provided US address is unrecognizable
- Missing required address/lat/lon — returns validation error if neither address nor coordinates are provided
- Invalid vintage year — returns error if requested ACS vintage is not one of 2022, 2023, 2024
- Payment failure — returns 402 if USDC payment is not included or insufficient
- No census data available — sparse or unpopulated areas may return empty or null fields

## How this service works

Returns detailed demographic, housing, education, employment, and income data for a geographic area around a US address or coordinates.

## Output

A structured object containing detailed demographic counts and statistics for the specified geographic area, including male/female population, racial/ethnic breakdowns (white, Black, Asian, Hispanic), educational attainment (bachelor's, master's, doctorate), housing unit counts, owner-occupied housing, and income data derived from the ACS survey for the selected vintage year.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "address": "1600 Pennsylvania Avenue NW, Washington, DC 20500",
   "vintage": 2023,
   "radius_miles": 3
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude. Required if address is not provided."
      },
      "lon": {
       "type": "number",
       "description": "Longitude. Required if address is not provided."
      },
      "address": {
       "type": "string",
       "description": "Full US street address to geocode. Required if lat/lon are not provided."
      },
      "vintage": {
       "type": "integer",
       "description": "ACS data vintage year. Defaults to the latest available. Available: 2022, 2023, 2024"
      },
      "radius_miles": {
       "type": "number",
       "description": "Search radius in miles. Defaults to 3."
      },
      "radius_meters": {
       "type": "integer",
       "description": "Search radius in meters. Overrides radius_miles if provided."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "pop_male": {
         "type": "integer",
         "description": "Male population."
        },
        "pop_asian": {
         "type": "integer",
         "description": "Asian population."
        },
        "pop_black": {
         "type": "integer",
         "description": "Black population."
        },
        "pop_white": {
         "type": "integer",
         "description": "White population."
        },
        "pop_female": {
         "type": "integer",
         "description": "Female population."
        },
        "pop_25_plus": {
         "type": "integer",
         "description": "Population aged 25 and over."
        },
        "pop_masters": {
         "type": "integer",
         "description": "Population with master's degree."
        },
        "pop_hispanic": {
         "type": "integer",
         "description": "Hispanic population."
        },
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402datasource-com-04045c19/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402datasource.com](https://www.zero.xyz/host/x402datasource.com/llms.txt)
