Api Endpoint

Location Compare

Compare U.S. locations across Census demographics, income, education, housing and workforce metrics in one call.

Open interactive test console

Offering

Provider
agent-vending-production.up.railway.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent-vending-production.up.railway.app/v1/location-compare
MIME type
Not provided
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
location comparison, compare counties, Census data, ACS, demographics

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x0b4242adf40726d9b09688030948176752d29924"
  }
]

Observed health

Status
Reachable
Latest latency
101 ms
Average latency
227 ms
HTTP status
405
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "locations": [
      {
        "name": "Ventura County",
        "state": "CA",
        "type": "county"
      },
      {
        "name": "Orange County",
        "state": "CA",
        "type": "county"
      },
      {
        "name": "San Diego County",
        "state": "CA",
        "type": "county"
      }
    ]
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "examples": [
            {
              "locations": [
                {
                  "name": "Ventura County",
                  "state": "CA",
                  "type": "county"
                },
                {
                  "name": "Orange County",
                  "state": "CA",
                  "type": "county"
                },
                {
                  "name": "San Diego County",
                  "state": "CA",
                  "type": "county"
                }
              ]
            },
            {
              "locations": [
                {
                  "name": "91362",
                  "type": "zcta"
                },
                {
                  "name": "93010",
                  "type": "zcta"
                }
              ],
              "metrics": [
                "median_household_income",
                "median_home_value",
                "median_age"
              ]
            }
          ],
          "properties": {
            "allow_mixed_geography_types": {
              "description": "Default false (mixed types refused, not charged)",
              "type": "boolean"
            },
            "include_benchmarks": {
              "description": "U.S./state reference values and national percentiles (default true)",
              "type": "boolean"
            },
            "locations": {
              "description": "2-10 geographies of the same type (mixed types only with allow_mixed_geography_types)",
              "items": {
                "additionalProperties": true,
                "description": "A U.S. geography by type plus name or GEOID. No Census table or variable IDs needed.",
                "properties": {
                  "county": {
                    "description": "County name or FIPS (tract only)",
                    "type": "string"
                  },
                  "geoid": {
                    "description": "Census GEOID alternative to name (county 5, place 7, tract 11 digits)",
                    "type": "string"
                  },
                  "name": {
                    "description": "e.g. \"Ventura County\", \"Thousand Oaks\", \"91362\", \"CA\", tract code",
                    "type": "string"
                  },
                  "state": {
                    "description": "State name, postal code or FIPS (county/place/tract by name)",
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "state",
                      "county",
                      "place",
                      "zcta",
                      "tract"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              },
              "maxItems": 10,
              "minItems": 2,
              "type": "array"
            },
            "metrics": {
              "description": "Default CORE_COMPARE (16 metrics) or a subset list",
              "oneOf": [
                {
                  "enum": [
                    "CORE_COMPARE"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "total_population",
                      "median_age",
                      "median_household_income",
                      "per_capita_income",
                      "poverty_rate",
                      "unemployment_rate",
                      "labor_force_participation_rate",
                      "bachelors_or_higher_pct",
                      "high_school_or_higher_pct",
                      "homeownership_rate",
                      "median_home_value",
                      "median_gross_rent",
                      "uninsured_rate",
                      "foreign_born_pct",
                      "under18_pct",
                      "65plus_pct"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          "required": [
            "locations"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "description": "HTTP 200 = completed result (charged). Refusals and errors are never charged: 400 INVALID_REQUEST (unknown/ambiguous geography, bad input), 422 NOT_SUPPORTED, 502 UPSTREAM_ERROR, 503 DATA_UNAVAILABLE, 500 INTERNAL_ERROR; all include charged=false.",
          "properties": {
            "benchmarks": {
              "type": "object"
            },
            "charged": {
              "type": "boolean"
            },
            "comparison": {
              "type": "array"
            },
            "data_vintage": {
              "type": "object"
            },
            "error": {
              "type": "object"
            },
            "locations": {
              "type": "array"
            },
            "methodology": {
              "type": "object"
            },
            "provenance": {
              "type": "array"
            },
            "status": {
              "type": "string"
            },
            "summary": {
              "type": "object"
            },
            "vintage_check": {
              "type": "object"
            },
            "warnings": {
              "type": "array"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}