{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Investment Adviser Scraper - RIA Firms & Advisor Leads",
    "description": "Scrape the official SEC IAPD registry: investment-adviser (RIA) firms & individual advisers with CRD/SEC numbers, full address, registration status, disciplinary disclosures, Form ADV brochures & lead score. Filter by state; monitor mode.",
    "version": "0.1",
    "x-build-id": "c2OcCUNUTq8AqnFhq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~sec-investment-adviser-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-sec-investment-adviser-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~sec-investment-adviser-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-sec-investment-adviser-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~sec-investment-adviser-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-sec-investment-adviser-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",
        "properties": {
          "recordType": {
            "title": "What to scrape",
            "enum": [
              "firms",
              "individuals",
              "both"
            ],
            "type": "string",
            "description": "Scrape investment-adviser firms (RIAs), individual advisers/brokers, or both, from the official SEC IAPD registry.",
            "default": "firms"
          },
          "searchQueries": {
            "title": "Search queries (names / keywords)",
            "type": "array",
            "description": "Firm or person names / keywords to search (e.g. \"wealth management\", \"Fisher Investments\", \"Smith\"). Each is searched in the SEC IAPD registry.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "US states",
            "type": "array",
            "description": "Two-letter US state codes to enumerate ALL registered advisers in (e.g. [\"TX\", \"NY\", \"CA\"]). Great for building a full state-by-state adviser database. Combine with Max results.",
            "items": {
              "type": "string"
            }
          },
          "firmCrds": {
            "title": "Firm CRD / SEC numbers",
            "type": "array",
            "description": "Specific firm CRD ids (the number in adviserinfo.sec.gov/firm/summary/<CRD>) to fetch as detailed firm records.",
            "items": {
              "type": "string"
            }
          },
          "individualCrds": {
            "title": "Individual CRD numbers",
            "type": "array",
            "description": "Specific individual CRD ids (the number in adviserinfo.sec.gov/individual/summary/<CRD>) to fetch as detailed adviser records.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full details",
            "type": "boolean",
            "description": "Fetch each record's full IAPD detail — for firms: SEC/state/ERA registration flags, ADV filing date, Form ADV Part 2 brochures (with PDF links), Form CRS, notice-filing states; for individuals: exams, registered states/SROs, disclosure count, employment history. One extra request per record.",
            "default": false
          },
          "activeAdvisersOnly": {
            "title": "Filter: active advisers only",
            "type": "boolean",
            "description": "Keep only records whose investment-adviser registration is ACTIVE (firms currently registered as RIAs; individuals currently registered as advisers). Turn OFF to also include inactive registrants and brokers.",
            "default": true
          },
          "hasDisclosuresOnly": {
            "title": "Filter: has disclosures (disciplinary) only",
            "type": "boolean",
            "description": "Keep only records that have regulatory disclosures/disciplinary history flagged — useful for compliance and due-diligence.",
            "default": false
          },
          "secRegisteredOnly": {
            "title": "Filter: SEC-registered firms only",
            "type": "boolean",
            "description": "For firms, keep only those registered with the SEC (vs state-registered). Requires \"Fetch full details\".",
            "default": false
          },
          "keyword": {
            "title": "Filter: keyword match",
            "type": "string",
            "description": "Keep only records whose name, DBAs, or current firm contains this text."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records to return. Set to 0 for no limit (explicit opt-in; use with a run timeout).",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Track records across runs in a key-value store and output only those that are new or whose status/firm/disclosures changed. Pairs with Apify Schedules for compliance monitoring.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store for monitor-mode state (lowercase letters, digits, hyphens).",
            "default": "sec-iapd-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The SEC IAPD API is a clean public endpoint; Apify Proxy (the default) is used to rotate IPs on large sweeps. Datacenter US is plenty.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}