# US Site Selection

> US Site Selection is a paid API for AI agents from agent-vending-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Rank and score U.S. geographic locations (states, counties, places, or ZCTAs) against buyer-defined Census and economic criteria with transparent weighting.

## Facts

- Endpoint: POST https://agent-vending-production.up.railway.app/v1/site-selection?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-site-selection-b7cecdb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LKBZPOdO1FsaTFGpEOCSd

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 us-site-selection-b7cecdb0 -d '<json body>'
```

Example prompt: Using Census and economic data, rank the top 10 U.S. counties in Texas by a mix of wage growth over 3 years, labor force participation, and median household income — weight wage growth highest, and only include counties with population over 50,000.

## When to prefer this

Use this endpoint when you need to objectively rank multiple U.S. locations against a custom set of economic, demographic, labor, or housing metrics with user-defined importance weights. It is ideal for site selection, market entry analysis, workforce hub identification, or any decision requiring transparent, criteria-based geographic scoring rather than raw data lookup or simple filtering.

## Known failure modes

- Invalid or unsupported metric name returns a validation error
- Geography type incompatible with selected data source (e.g. census_and_economy requires county) returns an error
- Filters that eliminate all candidates return an empty result set
- top_n exceeding 25 is rejected
- Missing required criteria array may return unranked or error response
- Unsupported state abbreviation or geography scope combination returns an error

## How this service works

Pay-per-call machine utilities for autonomous agents.

## Output

A ranked list of up to 25 U.S. geographic locations with composite scores and per-metric breakdowns, filtered by any hard constraints supplied, ordered from best to worst match against the caller-defined criteria and weights.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "candidate",
    "search"
   ],
   "type": "string"
  },
  "top_n": {
   "type": "integer",
   "maximum": 25,
   "minimum": 1,
   "description": "SEARCH mode; default 10"
  },
  "search": {
   "type": "object",
   "required": [],
   "properties": {
    "state": {
     "type": "string",
     "description": "county/place searches only"
    },
    "geography_type": {
     "enum": [
      "state",
      "county",
      "place",
      "zcta"
     ],
     "type": "string",
     "description": "census_and_economy: county only"
    },
    "min_population": {
     "type": "number",
     "description": "places >= 10,000; ZCTAs >= 5,000"
    }
   },
   "additionalProperties": false
  },
  "filters": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "metric",
     "operator",
     "value"
    ],
    "properties": {
     "value": {
      "type": "number",
      "description": "Percent metrics in percent (5 = 5%)"
     },
     "metric": {
      "type": "string",
      "description": "Any criteria metric name"
     },
     "operator": {
      "enum": [
       ">=",
       "<=",
       ">",
       "<"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 10,
   "description": "Optional hard filters applied before ranking"
  },
  "vintage": {
   "enum": [
    "ACS 2023 5-Year"
   ],
   "type": "string"
  },
  "criteria": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "metric",
     "preference"
    ],
    "properties": {
     "metric": {
      "enum": [
       "population",
       "median_age",
       "median_household_income",
       "per_capita_income",
       "poverty_rate",
       "unemployment_rate",
       "labor_force_participation",
       "bachelors_or_higher",
       "high_school_or_higher",
       "homeownership_rate",
       "median_home_value",
       "median_gross_rent",
       "uninsured_rate",
       "foreign_born_rate",
       "under_18_rate",
       "age_65_plus_rate",
       "laus_unemployment_rate",
       "labor_force",
       "employed_people",
       "qcew_employment",
       "qcew_employment_growth_1y",
       "qcew_employment_growth_3y",
       "qcew_employment_growth_5y",
       "average_annual_pay",
       "average_weekly_wage",
       "wage_growth_1y",
       "wage_growth_3y",
       "wage_growth_5y",
       "real_gdp",
       "nominal_gdp",
       "real_gdp_per_capita"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "CANDIDATE",
  "status": "OK",
  "results": [
   {
    "rank": 1,
    "metrics": {
     "average_annual_pay": {
      "value": 77892,
      "percentile": 97.09,
      "contribution": 0.728,
      "reference_period": "2023"
     }
    },
    "geography": {
     "name": "Orange County, California",
     "geoid": "06059",
     "geo_type": "county"
    },
    "site_score": 59.73,
    "close_score": false,
    "explanation": [
     "Ranked #1 under supplied criteria (SiteScore 59.73 of 100)."
    ],
    "category_scores": {
     "WAGES": 2.91,
     "REGIONAL_INCOME": 98.03,
     "BUSINESS_ACTIVITY": 89.67,
     "LOCAL_LABOR_MARKET": 48.3
    },
    "category_contributions": {
     "WAGES": 0.728,
     "REGIONAL_INCOME": 24.507,
     "BUSINESS_ACTIVITY": 22.4185,
     "LOCAL_LABOR_MARKET": 12.0741
    }
   }
  ],
  "data_scope": "census_and_economy",
  "methodology": {
   "score_meaning": "Relative fit under the buyer's supplied criteria and weights."
  },
  "site_selection_version": "2.0",
  "scoring_reference_period": 2023
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-site-selection-b7cecdb0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-vending-production.up.railway.app](https://www.zero.xyz/host/agent-vending-production.up.railway.app/llms.txt)
