{
  "openapi": "3.0.1",
  "info": {
    "title": "Form 5500 Prospect Radar: Benefits Broker Leads by Renewal Date",
    "description": "Two one-off reports over the public DOL EFAST2 Form 5500 bulk data, organized by the filed insurance policy renewal date (Schedule A): a territory renewal report and a broker-book report. One-off purchases, no subscription.",
    "version": "0.0",
    "x-build-id": "BgPT7Oa7eeHlyDQVy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yungstentech~form-5500-prospect-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yungstentech-form-5500-prospect-radar",
        "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/yungstentech~form-5500-prospect-radar/runs": {
      "post": {
        "operationId": "runs-sync-yungstentech-form-5500-prospect-radar",
        "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/yungstentech~form-5500-prospect-radar/run-sync": {
      "post": {
        "operationId": "run-sync-yungstentech-form-5500-prospect-radar",
        "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": "Report mode",
            "enum": [
              "territory-report",
              "broker-book-report"
            ],
            "type": "string",
            "description": "Which report to produce. 'territory-report' is a filtered plan list sorted by filed policy renewal date. 'broker-book-report' is every plan naming a given broker/advisor in Schedule A Part 1.",
            "default": "territory-report"
          },
          "states": {
            "title": "Sponsor states",
            "type": "array",
            "description": "Two-letter sponsor state codes (1-10). Required for the territory report. The report covers plans whose sponsor mailing address is in these states.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties / cities filter",
            "type": "array",
            "description": "Optional (up to 25). A client-side filter matched against the sponsor city (the main form carries no county field).",
            "items": {
              "type": "string"
            }
          },
          "participantMin": {
            "title": "Minimum participants",
            "type": "integer",
            "description": "Only include plans with at least this many total participants. Defaults to 100 (plans under 100 participants are largely exempt from full filing).",
            "default": 100
          },
          "participantMax": {
            "title": "Maximum participants",
            "type": "integer",
            "description": "Optional upper bound on total participants."
          },
          "planType": {
            "title": "Plan type",
            "enum": [
              "welfare",
              "pension",
              "both"
            ],
            "type": "string",
            "description": "Filter by benefit type. 'welfare' (group insurance: health, dental, life, disability) is the default. 'pension' is retirement plans. 'both' is either.",
            "default": "welfare"
          },
          "carrierName": {
            "title": "Insurance carrier name",
            "type": "string",
            "description": "Optional (>=3 chars). Keep only plans with a Schedule A carrier whose name contains this text."
          },
          "brokerName": {
            "title": "Broker / advisor name",
            "type": "string",
            "description": "Required for the broker-book report (>=3 chars). Matched (normalized substring) against the Schedule A Part 1 broker/advisor name."
          },
          "renewalMonths": {
            "title": "Renewal months",
            "type": "array",
            "description": "Optional. Integers 1-12. Keep only plans whose filed policy renewal month (from INS_POLICY_TO_DATE, plan-year-end as fallback) is in this set. Also the report sort key.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            }
          },
          "naicsPrefixes": {
            "title": "NAICS business-code prefixes",
            "type": "array",
            "description": "Optional (up to 10). Keep only plans whose sponsor business code (NAICS) starts with one of these digit prefixes.",
            "items": {
              "type": "string"
            }
          },
          "dryRun": {
            "title": "Dry run (free preview)",
            "type": "boolean",
            "description": "Preview only: returns the total matching count, the derived total price for that count, and a fixed sample of up to 5 rows. Charges nothing and writes no state. Capped at 10 dry runs per account per day."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}