{
  "openapi": "3.0.1",
  "info": {
    "title": "US Labor Union Leads & Financials Scraper (DOL OLMS)",
    "description": "Scrape every US labor union from official DOL OLMS LM-2/3/4 reports: union name, affiliation, named contact, mailing address, members, assets, receipts, disbursements, officer salaries, dues & vendors + lead score. Filter by state, affiliation & size, with monitoring.",
    "version": "0.1",
    "x-build-id": "Haw19XgspKKNFT36H"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-labor-union-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-labor-union-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/scrapesage~us-labor-union-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-labor-union-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/scrapesage~us-labor-union-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-labor-union-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": {
          "includeUnions": {
            "title": "Include labor unions (LM-2/3/4)",
            "type": "boolean",
            "description": "Include US labor unions from their annual financial reports — the main dataset with members, financials, officers, dues and vendors.",
            "default": true
          },
          "includeLaborConsultants": {
            "title": "Include labor-relations / persuader consultants (LM-20/21)",
            "type": "boolean",
            "description": "Include labor-relations ('persuader') consulting firms that file LM-20/21 reports — the union-avoidance / labor-consultant industry, with company names and locations.",
            "default": true
          },
          "includeEmployerReports": {
            "title": "Include employer persuader reports (LM-10)",
            "type": "boolean",
            "description": "Include employers that filed an LM-10 report (payments or arrangements to influence employees' union activity), with company names and locations.",
            "default": true
          },
          "years": {
            "title": "Report years",
            "uniqueItems": true,
            "type": "array",
            "description": "Specific filing years to load (e.g. [\"2025\",\"2024\"]). Each union's most recent report across the selected years is kept. Leave empty to use 'Recent years' instead.",
            "items": {
              "type": "string"
            }
          },
          "recentYears": {
            "title": "Recent years (when no years set)",
            "minimum": 1,
            "maximum": 27,
            "type": "integer",
            "description": "When 'Report years' is empty, load the N most recent years and keep each union's newest report. 2 covers the full current universe of active filers. Increase for deeper history.",
            "default": 2
          },
          "states": {
            "title": "States",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only unions located in these US states (2-letter codes, e.g. [\"CA\",\"NY\",\"TX\"]). Leave empty for all states.",
            "items": {
              "type": "string"
            }
          },
          "affiliations": {
            "title": "Affiliations",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only unions affiliated with these national organizations (the abbreviation, e.g. [\"USW\",\"IBEW\",\"SEIU\",\"IBT\",\"UAW\",\"NALC\"]). Use UNAFF for independent / unaffiliated unions. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these report types: LM-2 (large unions, $250k+ in annual receipts), LM-3 (mid-size, $10k–250k) or LM-4 (small, under $10k). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "unionNameQuery": {
            "title": "Union name contains",
            "type": "string",
            "description": "Keep only unions whose name, affiliation or local designation contains this text (case-insensitive). Optional."
          },
          "activeOnly": {
            "title": "Active unions only",
            "type": "boolean",
            "description": "Drop unions that filed a terminal report (i.e. that have dissolved or merged away). On by default.",
            "default": true
          },
          "minMembers": {
            "title": "Minimum members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only unions reporting at least this many members."
          },
          "maxMembers": {
            "title": "Maximum members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only unions reporting at most this many members (e.g. to target small locals)."
          },
          "minAssets": {
            "title": "Minimum total assets",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only unions with at least this much in total assets (USD)."
          },
          "minReceipts": {
            "title": "Minimum total receipts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only unions with at least this much in total annual receipts (USD)."
          },
          "hasPacFunds": {
            "title": "Has a PAC only",
            "type": "boolean",
            "description": "Keep only unions that report maintaining a political action committee (separate segregated fund).",
            "default": false
          },
          "withContactNameOnly": {
            "title": "With named contact only",
            "type": "boolean",
            "description": "Keep only unions that list a named contact person on the report.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only unions with a lead score at or above this value (0-100)."
          },
          "includeOfficers": {
            "title": "Include officer roster",
            "type": "boolean",
            "description": "Attach the union's officers & employees with titles and reported compensation (top earners first).",
            "default": true
          },
          "maxOfficers": {
            "title": "Max officers per union",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many officers / employees (top compensation first) to attach per union.",
            "default": 12
          },
          "includeVendors": {
            "title": "Include top vendors / payees",
            "type": "boolean",
            "description": "Attach the union's largest itemized vendors and payees (name, city/state, type, amount) — who the union pays for legal, accounting, investments, printing, travel, etc. Adds detail and run time.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "assetsHigh",
              "receiptsHigh",
              "disbursementsHigh",
              "membersHigh",
              "newestFiling",
              "name"
            ],
            "type": "string",
            "description": "Order of the output.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of unions to return.",
            "default": 1000
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the raw OLMS report row (all original columns) under sourceFields on each record.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode (only new / amended filings)",
            "type": "boolean",
            "description": "Only return unions whose report is new or was amended since the last run with the same monitor key. Ideal on a Schedule to catch newly-filed and updated union reports as fresh leads.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitoring mode so independent monitors don't collide. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The DOL OLMS source is public government data and needs no proxy, so leave this off for the fastest runs. Enable only if you need to route requests through a proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}