{
  "openapi": "3.0.1",
  "info": {
    "title": "Form 5500 ERISA Scraper - Retirement & Benefit Plan Leads",
    "description": "Scrape U.S. DOL Form 5500 & 5500-SF ERISA filings: plan sponsor (employer) name, EIN, phone & address, plan administrator, TPA/preparer, participants, assets, 401(k)/pension/welfare type, service providers & insurance carriers. B2B leads + monitoring. Official EFAST data, no browser.",
    "version": "0.1",
    "x-build-id": "Rel2iZFvrneyQ06aG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~form-5500-erisa-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-form-5500-erisa-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~form-5500-erisa-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-form-5500-erisa-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~form-5500-erisa-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-form-5500-erisa-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": {
          "years": {
            "title": "Plan years",
            "type": "array",
            "description": "Form 5500 plan years (dataset years) to pull, e.g. [\"2024\",\"2023\"]. Leave empty to automatically use the latest year published on EFAST. Each year is a separate official dataset — filings for a plan year are received over the following 1–2 years.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Which forms to include. 5500 = large plans & all welfare plans (full financials via Schedule H). 5500-SF = small plans (<100 participants) with financials reported inline — the bulk of small-business 401(k) leads.",
            "items": {
              "type": "string",
              "enum": [
                "5500",
                "5500-SF"
              ],
              "enumTitles": [
                "Form 5500 (large plans)",
                "Form 5500-SF (small plans)"
              ]
            },
            "default": [
              "5500",
              "5500-SF"
            ]
          },
          "states": {
            "title": "States (filter)",
            "type": "array",
            "description": "Two-letter state codes of the plan sponsor (employer), e.g. [\"CA\",\"TX\"]. Empty = all states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (filter)",
            "type": "array",
            "description": "Sponsor city names (case-insensitive exact match), e.g. [\"AUSTIN\"]. Empty = all cities.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP code prefixes (filter)",
            "type": "array",
            "description": "Match sponsor ZIPs starting with these prefixes, e.g. [\"900\",\"100\"]. Empty = all ZIPs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "planCategory": {
            "title": "Plan category",
            "enum": [
              "all",
              "pension",
              "welfare"
            ],
            "type": "string",
            "description": "Pension = retirement plans (401(k), profit-sharing, pension, ESOP). Welfare = health/insurance/benefit plans (medical, dental, vision, life, disability). All = both.",
            "default": "all"
          },
          "only401k": {
            "title": "Only 401(k) plans",
            "type": "boolean",
            "description": "Keep only plans with a 401(k) feature (code 2J / SF 401(k) flag).",
            "default": false
          },
          "benefitCodes": {
            "title": "Benefit characteristic codes (filter)",
            "type": "array",
            "description": "Keep plans carrying ANY of these Form 5500 plan-characteristic codes, e.g. [\"2E\",\"2T\"] (profit-sharing, safe-harbor) or [\"4A\",\"4D\"] (health, dental). See the README for the full code list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "businessCodes": {
            "title": "Business codes (industry filter)",
            "type": "array",
            "description": "Match sponsor IRS/NAICS business activity codes by prefix, e.g. [\"62\"] (health care), [\"23\"] (construction), [\"5417\"]. Empty = all industries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sponsorNameQuery": {
            "title": "Sponsor name contains",
            "type": "string",
            "description": "Keep only plans whose sponsor (employer) name contains this text (case-insensitive)."
          },
          "minParticipants": {
            "title": "Min participants",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum total plan participants (proxy for plan / employer size)."
          },
          "maxParticipants": {
            "title": "Max participants",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total plan participants."
          },
          "minAssets": {
            "title": "Min plan assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum total plan assets (end of year). Applied where assets are known — inline for 5500-SF, or for 5500 plans when 'Include large-plan financials' is on."
          },
          "maxAssets": {
            "title": "Max plan assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total plan assets (end of year)."
          },
          "filingTypes": {
            "title": "Filing types (filter)",
            "type": "array",
            "description": "Keep only these filing types. 'initial' = brand-new plans (highest-intent fresh leads). 'final' = terminating plans. 'standard' = regular annual filing.",
            "items": {
              "type": "string",
              "enum": [
                "initial",
                "amended",
                "final",
                "standard"
              ],
              "enumTitles": [
                "Initial (new plan)",
                "Amended",
                "Final (terminating)",
                "Standard annual"
              ]
            },
            "default": []
          },
          "receivedAfter": {
            "title": "Received after (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only filings received by the DOL on or after this date — ideal for fresh-lead monitoring."
          },
          "receivedBefore": {
            "title": "Received before (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only filings received on or before this date."
          },
          "withPhoneOnly": {
            "title": "Only records with a sponsor phone",
            "type": "boolean",
            "description": "Drop records that have no plan-sponsor phone number.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only records with a derived lead score (0–100) at or above this value."
          },
          "includeServiceProviders": {
            "title": "Include service providers (Schedule C)",
            "type": "boolean",
            "description": "Attach plan service providers from Schedule C — recordkeepers, advisors, brokers, auditors, TPAs — with their EIN, service type and direct/indirect compensation. (Mostly large plans.)",
            "default": false
          },
          "includeLargePlanFinancials": {
            "title": "Include large-plan financials (Schedule H)",
            "type": "boolean",
            "description": "For Form 5500 (large) plans, attach Schedule H financials: total assets, liabilities, contributions, income, distributions and expenses. 5500-SF plans already report financials inline.",
            "default": false
          },
          "includeInsurance": {
            "title": "Include insurance contracts (Schedule A)",
            "type": "boolean",
            "description": "Attach Schedule A insurance contracts — carrier name & NAIC code, contract number, persons covered, premiums and broker commissions/fees. Great for insurance-broker and carrier intelligence.",
            "default": false
          },
          "includeRawData": {
            "title": "Include all raw filing fields",
            "type": "boolean",
            "description": "Attach the complete raw EFAST CSV row (every column) under 'rawFields' for power users. Increases record size.",
            "default": false
          },
          "collapseToSponsor": {
            "title": "One record per sponsor",
            "type": "boolean",
            "description": "De-duplicate to a single (newest) record per sponsor EIN — useful when a company files several plans (e.g. medical, dental, 401(k)). Default keeps one record per plan filing.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum number of plan records to return.",
            "default": 1000
          },
          "sortNewestFirst": {
            "title": "Sort newest first",
            "type": "boolean",
            "description": "Return the most recently received filings first.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new filings)",
            "type": "boolean",
            "description": "Remember filings already returned (by ACK_ID) and emit ONLY filings not seen in previous runs of the same monitor key — perfect for a scheduled fresh-leads feed. Works alongside Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitor-mode memory. Use a distinct key per saved configuration so their 'seen' lists don't collide.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The DOL EFAST public datasets are downloaded directly and need no proxy; leave disabled unless your network requires one.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}