{
  "openapi": "3.0.1",
  "info": {
    "title": "US Insurance Agents Scraper (33 State DOI & NAIC Registries)",
    "description": "Stream licensed US insurance agents, agencies, and surplus lines brokers from 33 official state DOI registries (TX, FL, ME & 30 NAIC SBS states). Extracts normalized lines of authority (LOAs), expiring license renewal triggers, E.164 phones & CAN-SPAM compliant emails in 512 MB RAM.",
    "version": "1.0",
    "x-build-id": "fWG5hbbBzw1rDEjWK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~us-insurance-agents-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-us-insurance-agents-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/vesper_studio~us-insurance-agents-leads/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-us-insurance-agents-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/vesper_studio~us-insurance-agents-leads/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-us-insurance-agents-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "states": {
            "title": "States (DOI jurisdictions)",
            "type": "array",
            "description": "Two-letter US state/DC codes to extract from official public DOI registries: TX (Texas TDI Socrata), FL (Florida DFS Bulk CSV), ME (Maine Bureau of Insurance), and 30 NAIC State Based Systems (SBS) states. When multiple states are selected, maxItems is balanced across them.",
            "items": {
              "type": "string",
              "enum": [
                "TX",
                "FL",
                "ME",
                "AL",
                "AK",
                "AZ",
                "AR",
                "CT",
                "DC",
                "DE",
                "HI",
                "ID",
                "IL",
                "IA",
                "KS",
                "MD",
                "MA",
                "MO",
                "MT",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NC",
                "ND",
                "OK",
                "OR",
                "RI",
                "SC",
                "TN",
                "VT",
                "WV",
                "WI"
              ],
              "enumTitles": [
                "Texas (TDI Open Data)",
                "Florida (FLDFS Bulk Registry)",
                "Maine (PFR Bureau of Insurance)",
                "Alabama (NAIC SBS)",
                "Alaska (NAIC SBS)",
                "Arizona (NAIC SBS)",
                "Arkansas (NAIC SBS)",
                "Connecticut (NAIC SBS)",
                "District of Columbia (NAIC SBS)",
                "Delaware (NAIC SBS)",
                "Hawaii (NAIC SBS)",
                "Idaho (NAIC SBS)",
                "Illinois (NAIC SBS)",
                "Iowa (NAIC SBS)",
                "Kansas (NAIC SBS)",
                "Maryland (NAIC SBS)",
                "Massachusetts (NAIC SBS)",
                "Missouri (NAIC SBS)",
                "Montana (NAIC SBS)",
                "Nebraska (NAIC SBS)",
                "New Hampshire (NAIC SBS)",
                "New Jersey (NAIC SBS)",
                "New Mexico (NAIC SBS)",
                "North Carolina (NAIC SBS)",
                "North Dakota (NAIC SBS)",
                "Oklahoma (NAIC SBS)",
                "Oregon (NAIC SBS)",
                "Rhode Island (NAIC SBS)",
                "South Carolina (NAIC SBS)",
                "Tennessee (NAIC SBS)",
                "Vermont (NAIC SBS)",
                "West Virginia (NAIC SBS)",
                "Wisconsin (NAIC SBS)"
              ]
            },
            "default": [
              "TX",
              "FL"
            ]
          },
          "linesOfAuthority": {
            "title": "Lines of Authority (LOA)",
            "type": "array",
            "description": "Filter by normalized insurance lines of authority (e.g. life, health, property, casualty, surplus_lines). Leave empty to include all lines.",
            "items": {
              "type": "string",
              "enum": [
                "life",
                "health",
                "property",
                "casualty",
                "surplus_lines",
                "personal_lines",
                "variable_contracts",
                "title",
                "credit",
                "adjuster",
                "limited_lines",
                "managing_general_agent"
              ],
              "enumTitles": [
                "Life",
                "Health / Accident & HMO",
                "Property",
                "Casualty",
                "Surplus Lines",
                "Personal Lines P&C",
                "Variable Contracts / Annuities",
                "Title",
                "Credit",
                "Adjuster",
                "Limited Lines / Specialty",
                "Managing General Agent (MGA)"
              ]
            },
            "default": []
          },
          "activeOnly": {
            "title": "Active licenses only",
            "type": "boolean",
            "description": "Exclude inactive, expired, cancelled, or revoked licenses.",
            "default": true
          },
          "expiringWithinDays": {
            "title": "Expiring within N days (renewal signal)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional renewal/switch intent filter: keep only licenses (or FL CE renewal cycles) expiring between today and today + N days. Maine does not publish expiration dates and is skipped when this is set."
          },
          "hasEmailOnly": {
            "title": "Only leads with email",
            "type": "boolean",
            "description": "Return only leads that have a non-empty email after applying personalEmailPolicy. Texas TDI does not publish emails and is skipped when this is enabled.",
            "default": false
          },
          "hasAgencyNameOnly": {
            "title": "Only agencies / leads with agency name",
            "type": "boolean",
            "description": "Return only licensed insurance agencies/entities or producers with an associated agencyName.",
            "default": false
          },
          "personalEmailPolicy": {
            "title": "CAN-SPAM B2B personal email policy",
            "enum": [
              "mask",
              "exclude",
              "include"
            ],
            "type": "string",
            "description": "Controls handling of personal/consumer webmail & ISP addresses (gmail.com, yahoo.com, hotmail.com, aol.com, etc.) for B2B CAN-SPAM compliance. 'mask' (default) sets personal emails to null while keeping the license record; 'exclude' drops any record with a personal email; 'include' retains personal emails as published.",
            "default": "mask"
          },
          "city": {
            "title": "City filter (optional)",
            "type": "string",
            "description": "Optional city name or comma-separated city names (case-insensitive, e.g. \"Houston\" or \"Miami, Tampa\")."
          },
          "zip": {
            "title": "ZIP or prefix filter (optional)",
            "type": "string",
            "description": "Optional 5-digit ZIP code or 3-digit ZIP prefix (or comma-separated list, e.g. \"770\" or \"33101\")."
          },
          "sbsEnrichDetails": {
            "title": "Enrich NAIC SBS email & agency details",
            "type": "boolean",
            "description": "For NAIC SBS states, fetch official licensee summary endpoints to retrieve corporate email, full lines of authority, and affiliated agency name. Automatically enabled when hasEmailOnly is true.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of normalized agent/agency leads to deliver across all selected states. Strict Pay-Per-Event budget control via affordable_leads() may stop earlier.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}