{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/locationlists-com/json-schema/locationlists-com-post-api-x402-query-request-schema.json",
  "title": "PostApiX402QueryRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/locationlists-com-openapi-generated.yml#/components/schemas/PostApiX402QueryRequest",
  "type": "object",
  "properties": {
    "dataset": {
      "type": "string",
      "description": "Slug of a single dataset to query"
    },
    "datasets": {
      "type": "array",
      "description": "List of dataset slugs to query together"
    },
    "category": {
      "type": "string",
      "description": "Category name (e.g. \"retail\") instead of a specific dataset"
    },
    "near": {
      "type": "object",
      "description": "Location filter with place or zip and radius_miles"
    },
    "total": {
      "type": "integer",
      "description": "Maximum number of rows to return across all datasets"
    },
    "limit": {
      "type": "integer",
      "description": "Maximum rows to return (used in examples)"
    },
    "state": {
      "type": "string",
      "description": "State filter (two‑letter code)"
    },
    "city": {
      "type": "string",
      "description": "City filter"
    },
    "where": {
      "type": "array",
      "description": "Column filter objects, e.g. [{\"field\":\"revenue_amt\",\"op\":\"gt\",\"value\":2000000}]"
    }
  }
}