{
  "openapi": "3.0.1",
  "info": {
    "title": "Financial Advisor & Broker Scraper - FINRA + SEC",
    "description": "Scrape U.S. financial advisers, brokers & firms from FINRA BrokerCheck + SEC IAPD: search by name, list every rep at a firm, or pull full reports. Registrations, exams, employment history, disclosures, branch addresses, phones & lead scores. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "V9Ti9xEurbOJL7Wx0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~financial-advisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-financial-advisor-scraper",
        "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/scrapesage~financial-advisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-financial-advisor-scraper",
        "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/scrapesage~financial-advisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-financial-advisor-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "searchIndividuals",
              "searchFirms",
              "firmRoster",
              "individualDetails",
              "firmDetails",
              "startUrls"
            ],
            "type": "string",
            "description": "Search individuals (brokers/advisers) by name or keyword, search firms, list every rep at a firm (firm roster), pull full reports by CRD, or paste BrokerCheck/IAPD profile URLs.",
            "default": "searchIndividuals"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Names or keywords to search. For individuals: a person's name (e.g. `John Smith`). For firms: a firm name or keyword (e.g. `Morgan Stanley`, `wealth management`). One per row.",
            "items": {
              "type": "string"
            }
          },
          "firms": {
            "title": "Firms (names or CRD numbers) — for Firm roster",
            "type": "array",
            "description": "Firm names or CRD numbers whose ENTIRE roster of registered reps you want. E.g. `Edward Jones`, `LPL Financial`, or a CRD like `250`. One per row. (Mode: Firm roster.)",
            "items": {
              "type": "string"
            }
          },
          "crdNumbers": {
            "title": "Individual CRD numbers — for Individual reports",
            "type": "array",
            "description": "Individual CRD numbers to pull full reports for (employment history, exams, registered states, disclosures). One per row. (Mode: Individual reports by CRD.)",
            "items": {
              "type": "string"
            }
          },
          "firmCrdNumbers": {
            "title": "Firm CRD numbers — for Firm reports",
            "type": "array",
            "description": "Firm CRD numbers to pull full firm reports for (registrations, ownership, disclosures, address, phone). One per row. (Mode: Firm reports by CRD.)",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Profile URLs",
            "type": "array",
            "description": "BrokerCheck or IAPD profile URLs, e.g. `https://brokercheck.finra.org/individual/summary/2860031` or `https://adviserinfo.sec.gov/firm/summary/107342`. Also accepts `individual 1234` / `firm 5678`. (Mode: Profile URLs.)",
            "items": {
              "type": "string"
            }
          },
          "regulator": {
            "title": "Regulator / dataset",
            "enum": [
              "both",
              "broker",
              "adviser"
            ],
            "type": "string",
            "description": "Which registry to query. Both = FINRA BrokerCheck + SEC IAPD (widest coverage). Brokers = FINRA registered reps & broker-dealers. Advisers = SEC/state investment advisers (RIAs).",
            "default": "both"
          },
          "stateFilter": {
            "title": "State filter (2-letter codes)",
            "type": "array",
            "description": "Keep only records whose primary office is in these U.S. states, e.g. `CA`, `TX`, `NY`. Leave empty for all states. Great for geo-targeted lead lists.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active registrations only",
            "type": "boolean",
            "description": "Only return brokers/advisers/firms that are currently ACTIVE (skip those whose registration has lapsed).",
            "default": false
          },
          "hasDisclosuresOnly": {
            "title": "Only records with disclosures",
            "type": "boolean",
            "description": "Only return records that have at least one disclosure event (regulatory action, customer dispute, criminal, financial, etc.) — for compliance, due-diligence and screening.",
            "default": false
          },
          "rosterCurrentOnly": {
            "title": "Firm roster: current reps only",
            "type": "boolean",
            "description": "In Firm roster mode, return only reps CURRENTLY registered at the firm (the registry also matches departed reps). Turn off to include everyone who ever worked there.",
            "default": true
          },
          "includeIndividualDetails": {
            "title": "Fetch full individual reports",
            "type": "boolean",
            "description": "For individuals, fetch each person's full report (employment history, exams, registered states, registration counts, disclosures). One extra request per person. Turn off for a faster, lighter name+firm+office summary.",
            "default": true
          },
          "includeFirmDetails": {
            "title": "Fetch full firm reports",
            "type": "boolean",
            "description": "For firms, fetch the full report: firm type/size, business phone, office & mailing address, direct owners, state registrations, Form ADV notice-filings and disclosures. One extra request per firm.",
            "default": true
          },
          "includeDisclosures": {
            "title": "Include full disclosure events",
            "type": "boolean",
            "description": "Include the full array of disclosure events (type, date, resolution and detailed allegations/dispositions) on each record. Turn off to keep just the disclosure count.",
            "default": true
          },
          "includePreviousEmployments": {
            "title": "Include previous employment history",
            "type": "boolean",
            "description": "Add each individual's prior firm history (firm name/CRD and registration begin/end dates). Requires full individual reports.",
            "default": false
          },
          "enrichFirmContacts": {
            "title": "Enrich firm contacts (crawl supplied websites)",
            "type": "boolean",
            "description": "Opt-in lead enrichment: for firms you supply a website for (see Firm websites), crawl that site for emails, phones and socials. Regulatory data rarely lists a website, so this only runs for firms in the Firm websites map.",
            "default": false
          },
          "firmWebsites": {
            "title": "Firm websites (CRD or name | URL)",
            "type": "array",
            "description": "Optional map for contact enrichment. Each row: `<firm CRD or name> | <website>`, e.g. `107342 | https://www.fisherinvestments.com`. The crawler visits those sites for emails/phones/socials.",
            "items": {
              "type": "string"
            }
          },
          "maxRecords": {
            "title": "Max total records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on the total number of records (individuals + firms) emitted across the whole run.",
            "default": 200
          },
          "maxRecordsPerQuery": {
            "title": "Max records per search query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap the number of matching records returned per search query (search modes). Results are paginated automatically until this limit or the matches run out.",
            "default": 100
          },
          "maxRepsPerFirm": {
            "title": "Max reps per firm (roster)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Cap how many reps to return per firm in Firm roster mode. Big wirehouses have tens of thousands of reps — raise this (and Max total records) to pull more.",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitoring mode — only new records",
            "type": "boolean",
            "description": "Remember CRDs already returned and emit ONLY records not seen in previous runs — e.g. new advisers joining a firm or new entrants in a state. Pairs with Apify Schedules to track changes over time.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' CRDs for monitoring mode. Use a different name per tracked target (firm, state, query) to keep their histories separate.",
            "default": "finra-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum parallel requests. The FINRA/SEC APIs are fast; lower this only if you see rate-limit warnings on very large runs.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The FINRA BrokerCheck & SEC IAPD public APIs work fine through the default Apify datacenter proxy — no residential needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}