{
  "openapi": "3.0.1",
  "info": {
    "title": "DOL Form 5500 Scraper - 401(k) & Benefit Plan Leads",
    "description": "Find employer retirement and welfare plans in official U.S. Department of Labor Form 5500 data. Search plan sponsors, EINs, 401(k)s, participants, assets, contributions, fees, administrators, industries, states, amendments, and source-linked filings.",
    "version": "0.1",
    "x-build-id": "d6K2izCIRVx2vfAx1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pink_comic~dol-form-5500-401k-benefit-plan-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pink_comic-dol-form-5500-401k-benefit-plan-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/pink_comic~dol-form-5500-401k-benefit-plan-leads/runs": {
      "post": {
        "operationId": "runs-sync-pink_comic-dol-form-5500-401k-benefit-plan-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/pink_comic~dol-form-5500-401k-benefit-plan-leads/run-sync": {
      "post": {
        "operationId": "run-sync-pink_comic-dol-form-5500-401k-benefit-plan-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": {
          "filingYear": {
            "title": "Annual Filing Dataset Year",
            "minimum": 2009,
            "maximum": 2026,
            "type": "integer",
            "description": "DOL annual bulk-file year. 2024 is the latest substantially complete default; newer annual files can be partial while filings continue to arrive.",
            "default": 2024
          },
          "query": {
            "title": "Sponsor, Plan, Administrator, EIN, City, or Industry Code",
            "type": "string",
            "description": "Case-insensitive keyword across sponsor/DBA, plan, administrator, sponsor EIN, plan number, business code, and sponsor city. Empty searches all regular Form 5500 rows within the other filters.",
            "default": "Microsoft"
          },
          "sponsorName": {
            "title": "Sponsor Name",
            "type": "string",
            "description": "Optional case-insensitive sponsor or DBA name substring."
          },
          "planName": {
            "title": "Plan Name",
            "type": "string",
            "description": "Optional case-insensitive plan-name substring such as 401K, PENSION, HEALTH, or WELFARE."
          },
          "ein": {
            "title": "Exact Sponsor EIN",
            "pattern": "^$|^[0-9-]{9,10}$",
            "type": "string",
            "description": "Exact public 9-digit sponsor EIN. Hyphens are accepted and normalized."
          },
          "planNumber": {
            "title": "Exact Plan Number",
            "pattern": "^$|^[0-9]{3}$",
            "type": "string",
            "description": "Exact three-digit sponsor plan number, such as 001."
          },
          "states": {
            "title": "Sponsor States",
            "type": "array",
            "description": "Optional two-letter sponsor mailing or location states. Empty means all states and foreign addresses.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            },
            "default": []
          },
          "businessCodePrefixes": {
            "title": "Business Code Prefixes",
            "type": "array",
            "description": "Optional filer-reported business/industry code prefixes. For example, 54 selects professional/scientific/technical services codes beginning with 54.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{1,6}$"
            },
            "default": []
          },
          "planCategory": {
            "title": "Plan Category",
            "enum": [
              "any",
              "401k",
              "pension",
              "welfare"
            ],
            "type": "string",
            "description": "401(k) uses the filing's official 2J pension-benefit code. Pension and welfare match any reported code in the corresponding field.",
            "default": "any"
          },
          "amendmentFilter": {
            "title": "Amendment Status",
            "enum": [
              "any",
              "no",
              "yes"
            ],
            "type": "string",
            "description": "Include all rows, only amended filings, or only rows not marked amended.",
            "default": "any"
          },
          "finalFilingFilter": {
            "title": "Final Filing Status",
            "enum": [
              "any",
              "no",
              "yes"
            ],
            "type": "string",
            "description": "Filter whether the filer marked this as the plan's final return/report.",
            "default": "any"
          },
          "minParticipants": {
            "title": "Minimum Participants at Beginning of Year",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum filer-reported total participants at the beginning of the plan year.",
            "default": 0
          },
          "minActiveParticipants": {
            "title": "Minimum Active Participants",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum filer-reported active participants.",
            "default": 0
          },
          "minAssets": {
            "title": "Minimum End-of-Year Plan Assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum Schedule H/I end-of-year total assets. A positive value requires a linked financial schedule and is evaluated within maxPlansConsidered.",
            "default": 0
          },
          "maxAssets": {
            "title": "Maximum End-of-Year Plan Assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum Schedule H/I end-of-year assets. Zero means no maximum; filings without a linked amount do not pass a positive maximum.",
            "default": 0
          },
          "receivedStartDate": {
            "title": "Received Start Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive DOL received date in YYYY-MM-DD format."
          },
          "receivedEndDate": {
            "title": "Received End Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive DOL received date in YYYY-MM-DD format."
          },
          "includeFinancials": {
            "title": "Join Schedule H/I Financials",
            "type": "boolean",
            "description": "Download official Schedule H and I bulk files and join assets, contributions, income, benefits, expenses, fees, and accountant data by acknowledgement ID.",
            "default": true
          },
          "sortBy": {
            "title": "Sort Results",
            "enum": [
              "received_desc",
              "received_asc",
              "participants_desc",
              "assets_desc",
              "sponsor_asc"
            ],
            "type": "string",
            "description": "Asset sorting requires Schedule H/I enrichment. Other sorts use regular Form 5500 fields.",
            "default": "received_desc"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total output cap after all filters and sorting.",
            "default": 25
          },
          "maxPlansConsidered": {
            "title": "Maximum Primary Matches Considered",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Bounds memory and Schedule H/I joins after the full primary file is scanned. Increase for broad asset filters/sorts. Every row discloses whether this limit excluded other primary matches.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}