Api Endpoint

Demographic Similarity

Find the U.S. places most demographically similar to a target geography using multivariate Census statistics.

Open interactive test console

Offering

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

Endpoint context

URL
https://agent-vending-production.up.railway.app/v1/demographic-similarity
MIME type
Not provided
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
demographic similarity, similar counties, lookalike markets, Census data, ACS

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
100 ms
Average latency
554 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": {
    "target": {
      "name": "Ventura County",
      "state": "CA",
      "type": "county"
    },
    "top_n": 10,
    "universe": "US_COUNTIES"
  },
  "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": [
            {
              "target": {
                "name": "Ventura County",
                "state": "CA",
                "type": "county"
              },
              "top_n": 10,
              "universe": "US_COUNTIES"
            },
            {
              "target": {
                "name": "Thousand Oaks",
                "state": "CA",
                "type": "place"
              },
              "top_n": 5,
              "universe": "US_PLACES_10K"
            }
          ],
          "properties": {
            "state": {
              "description": "State for STATE_* universes (default: target state)",
              "type": "string"
            },
            "target": {
              "additionalProperties": true,
              "description": "Target county, place or state",
              "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"
            },
            "top_n": {
              "description": "Default 10",
              "maximum": 25,
              "minimum": 1,
              "type": "integer"
            },
            "universe": {
              "description": "Peer universe of the same geography type (default by target type)",
              "enum": [
                "US_COUNTIES",
                "STATE_COUNTIES",
                "US_PLACES_10K",
                "US_PLACES_50K",
                "STATE_PLACES_10K",
                "US_STATES"
              ],
              "type": "string"
            }
          },
          "required": [
            "target"
          ],
          "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. Distance: smaller = more similar; no percent-identical score.",
          "properties": {
            "charged": {
              "type": "boolean"
            },
            "data_vintage": {
              "type": "object"
            },
            "error": {
              "type": "object"
            },
            "feature_bundle": {
              "type": "object"
            },
            "matches": {
              "type": "array"
            },
            "method": {
              "type": "object"
            },
            "provenance": {
              "type": "array"
            },
            "status": {
              "type": "string"
            },
            "target": {
              "type": "object"
            },
            "uncertainty": {
              "type": "object"
            },
            "universe": {
              "type": "object"
            },
            "warnings": {
              "type": "array"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}