{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mapsharvest-com/json-schema/mapsharvest-com-scrape-request-schema.json",
  "title": "ScrapeRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mapsharvest-com-openapi.yml#/components/schemas/ScrapeRequest",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Query"
    },
    "states": {
      "type": "string",
      "maxLength": 20000,
      "minLength": 1,
      "title": "States"
    },
    "cities": {
      "type": "string",
      "maxLength": 100000,
      "title": "Cities"
    },
    "max_results_per_city": {
      "type": "integer",
      "maximum": 500.0,
      "minimum": 1.0,
      "title": "Max Results Per City",
      "default": 60
    },
    "max_total_results": {
      "type": "integer",
      "maximum": 1000000.0,
      "minimum": 1.0,
      "title": "Max Total Results"
    },
    "workers": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Workers",
      "default": 4
    },
    "category_filter": {
      "type": "string",
      "maxLength": 200,
      "title": "Category Filter"
    },
    "related_categories": {
      "type": "string",
      "maxLength": 1000,
      "title": "Related Categories"
    },
    "resume_job_id": {
      "type": "string",
      "maxLength": 64,
      "title": "Resume Job Id"
    },
    "preset": {
      "type": "string",
      "maxLength": 64,
      "title": "Preset"
    },
    "fields": {
      "type": "string",
      "maxLength": 1000,
      "title": "Fields"
    },
    "webhook_url": {
      "type": "string",
      "maxLength": 2048,
      "title": "Webhook Url"
    },
    "webhook_fields": {
      "items": {},
      "type": "array",
      "title": "Webhook Fields"
    },
    "webhook_trigger": {
      "type": "string",
      "maxLength": 20,
      "title": "Webhook Trigger",
      "default": "manual"
    },
    "campaign_id": {
      "type": "string",
      "maxLength": 64,
      "title": "Campaign Id"
    },
    "name": {
      "type": "string",
      "maxLength": 200,
      "title": "Name"
    },
    "country": {
      "type": "string",
      "maxLength": 20,
      "title": "Country",
      "default": "us"
    },
    "min_rating": {
      "type": "number",
      "title": "Min Rating"
    },
    "min_reviews": {
      "type": "integer",
      "title": "Min Reviews"
    },
    "max_reviews": {
      "type": "integer",
      "title": "Max Reviews"
    },
    "require_website": {
      "type": "boolean",
      "title": "Require Website",
      "default": false
    },
    "exclude_website": {
      "type": "boolean",
      "title": "Exclude Website",
      "default": false
    },
    "require_phone": {
      "type": "boolean",
      "title": "Require Phone",
      "default": false
    },
    "exclude_phone": {
      "type": "boolean",
      "title": "Exclude Phone",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "query",
    "states"
  ]
}