{
  "mcp": {
    "url": "https://data.leadspanic.com/mcp",
    "transport": "Streamable HTTP (stateless, JSON responses)",
    "tools": [
      "neighborhood",
      "area",
      "fit"
    ],
    "payment": "Tools are paid per call at the same prices as the REST endpoints. A tools/call without payment gets an HTTP 402 challenge; pay it and retry the same call with the credential. Invalid arguments are never charged."
  },
  "name": "Leadspanic neighborhood data API",
  "description": "Who lives where in the U.S., by census tract: 85,381 tracts clustered into 63 neighborhood personas, plus which personas buy which local services. Built for AI agents doing local market research, site selection and campaign planning.",
  "payment": {
    "protocol": "MPP (Machine Payments Protocol, HTTP 402). Spec: https://mpp.dev",
    "methods": [
      "stripe card (Shared Payment Token)",
      "API key (prepaid credits)"
    ],
    "currency": "usd",
    "api_key": {
      "header": "Authorization: Bearer lp_live_<43 characters>",
      "how_to_get_one": "Contact us for a key: https://leadspanic.com",
      "billing": "Each call debits prepaid credits at the price listed for the endpoint; a call that fails on our side or finds no data is refunded.",
      "idempotency": "Optional Idempotency-Key request header (1 to 128 printable ASCII characters): a repeat of the same call is not charged twice.",
      "response_headers": [
        "X-Leadspanic-Usage-Id",
        "X-Leadspanic-Balance-Cents"
      ]
    }
  },
  "endpoints": {
    "neighborhood": {
      "method": "GET",
      "path": "/v1/neighborhood",
      "doors": [
        "anonymous",
        "account"
      ],
      "price_usd": "0.50",
      "api_key_price_usd": "0.10",
      "summary": "Who lives at a U.S. point: the census-tract persona, income, age, and lifestyle profile.",
      "description": "Look up who lives at one U.S. coordinate: the census tract, its median income and age, and the Leadspanic neighborhood persona (one of 63) with its lifestyle profile and best marketing channels. Use it to describe a specific address or site.",
      "params": {
        "lat": "latitude (required)",
        "lon": "longitude (required)"
      },
      "input": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": 17,
            "maximum": 72,
            "description": "Latitude of a U.S. point (17 to 72)."
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": -64,
            "description": "Longitude of a U.S. point (-180 to -64)."
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false
      }
    },
    "area": {
      "method": "GET",
      "path": "/v1/area",
      "doors": [
        "anonymous",
        "account"
      ],
      "price_usd": "0.50",
      "api_key_price_usd": "0.25",
      "summary": "Customer mix within a radius: population, dominant persona, and every persona present with its share of tracts.",
      "description": "Summarize the neighborhood mix within 1 to 10 miles of a U.S. point: population, the dominant persona, and every persona present with its share of census tracts. Use it to size up a trade area before choosing where to advertise or open.",
      "params": {
        "lat": "latitude (required)",
        "lon": "longitude (required)",
        "radius_miles": "1-10, default 3"
      },
      "input": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": 17,
            "maximum": 72,
            "description": "Latitude of a U.S. point (17 to 72)."
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": -64,
            "description": "Longitude of a U.S. point (-180 to -64)."
          },
          "radius_miles": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "default": 3,
            "description": "Radius in whole miles, 1 to 10 (default 3)."
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false
      }
    },
    "fit": {
      "method": "GET",
      "path": "/v1/fit",
      "doors": [
        "anonymous",
        "account"
      ],
      "price_usd": "0.50",
      "api_key_price_usd": "0.25",
      "summary": "Which personas in a radius are most likely to buy a given local service, ranked by propensity.",
      "description": "Rank the personas around a U.S. point by how likely they are to buy a given local service (for example Home Services / Roofing), weighted by their share of the area. Use it to judge whether a market suits a service business.",
      "params": {
        "lat": "latitude (required)",
        "lon": "longitude (required)",
        "radius_miles": "1-10, default 3",
        "category": "service category, e.g. \"Home Services\" (required)",
        "sub_category": "e.g. \"Roofing\" (required)"
      },
      "input": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": 17,
            "maximum": 72,
            "description": "Latitude of a U.S. point (17 to 72)."
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": -64,
            "description": "Longitude of a U.S. point (-180 to -64)."
          },
          "radius_miles": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "default": 3,
            "description": "Radius in whole miles, 1 to 10 (default 3)."
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "Service category, e.g. \"Home Services\"."
          },
          "sub_category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "Service sub-category, e.g. \"Roofing\"."
          }
        },
        "required": [
          "lat",
          "lon",
          "category",
          "sub_category"
        ],
        "additionalProperties": false
      }
    }
  },
  "example": "GET https://data.leadspanic.com/v1/area?lat=35.2271&lon=-80.8431&radius_miles=3",
  "human_site": "https://leadspanic.com",
  "terms": "https://leadspanic.com/legal/terms-of-service"
}