{
  "openapi": "3.0.1",
  "info": {
    "title": "WA Lobbying & PDC Enforcement - Who Pays to Lobby",
    "description": "Washington lobbying money (332k filings, current to this month): who pays whom to lobby Olympia. Search by client, lobbyist, year, min compensation; aggregate top client spenders or top lobbying firms. Plus PDC campaign-finance/lobbying enforcement cases with penalties, status and amounts.",
    "version": "0.0",
    "x-build-id": "b9mDaak5Ym6QXnpAL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~wa-lobbying/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-wa-lobbying",
        "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/j0401~wa-lobbying/runs": {
      "post": {
        "operationId": "runs-sync-j0401-wa-lobbying",
        "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/j0401~wa-lobbying/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-wa-lobbying",
        "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": {
          "mode": {
            "title": "Data source",
            "enum": [
              "lobbying",
              "enforcement"
            ],
            "type": "string",
            "description": "lobbying = Lobbyist Compensation filings (client pays lobbyist, with amounts). enforcement = PDC campaign-finance / lobbying violation cases (respondent, penalties). The fields below apply per mode.",
            "default": "lobbying"
          },
          "clientName": {
            "title": "Client / paying organization",
            "type": "string",
            "description": "Lobbying mode. Return filings where this organization is the client paying for lobbying (substring, case-insensitive). E.g. \"Boeing\", \"Microsoft\", \"Puget Sound Energy\", \"Assn of WA Business\"."
          },
          "lobbyistName": {
            "title": "Lobbyist / firm",
            "type": "string",
            "description": "Lobbying mode. Return filings by this lobbyist or lobbying firm (substring). E.g. \"Gordon Thomas Honeywell\", \"Insight Strategic\", \"McBride\"."
          },
          "lobbyistType": {
            "title": "Lobbying record type",
            "enum": [
              "Employer",
              "Lobbyist",
              "both"
            ],
            "type": "string",
            "description": "Employer = one row per client paying a lobbyist (has client name + compensation) - the recommended view. Lobbyist = the lobbyist's self summary rows. both = every row.",
            "default": "Employer"
          },
          "aggregate": {
            "title": "Aggregate instead of records",
            "type": "boolean",
            "description": "Lobbying mode. When on, returns one summary row per group (see groupBy) with total compensation and filing count - instead of individual records. Only meaningful for Employer records.",
            "default": false
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "client",
              "lobbyist"
            ],
            "type": "string",
            "description": "Lobbying mode (when aggregate is on). client = which organizations spend the most on lobbying; lobbyist = which firms/individuals earn the most from lobbying.",
            "default": "client"
          },
          "respondent": {
            "title": "Enforcement respondent",
            "type": "string",
            "description": "Enforcement mode. Return cases where this person/organization is the respondent (substring)."
          },
          "subject": {
            "title": "Enforcement subject",
            "type": "string",
            "description": "Enforcement mode. Return cases whose subject (alleged violation) contains this text (substring). E.g. \"late contribution report\", \"campaign finance registration\"."
          },
          "status": {
            "title": "Enforcement status",
            "type": "string",
            "description": "Enforcement mode. Return cases whose status contains this text (substring). E.g. \"Violation Found\", \"Assessment of Facts\", \"Closed\". Use \"Open\" / \"closed\" style keywords; exact statuses are long phrases."
          },
          "yearFrom": {
            "title": "Year from",
            "type": "string",
            "description": "Lobbying: first filing period year (>=). Enforcement: first opened year (>=). E.g. \"2024\"."
          },
          "yearTo": {
            "title": "Year to",
            "type": "string",
            "description": "Lobbying: last filing period year (<=). Enforcement: last opened year (<=)."
          },
          "minCompensation": {
            "title": "Min compensation",
            "minimum": 0,
            "type": "number",
            "description": "Lobbying mode. Only return records where the compensation is at least this amount. E.g. 10000 for retainer-scale lobbying.",
            "default": 0
          },
          "minPenalty": {
            "title": "Min penalty",
            "minimum": 0,
            "type": "number",
            "description": "Enforcement mode. Only return cases with total penalties at least this amount.",
            "default": 0
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed (0 = up to ~10k per run; each record is metered individually, so there is no per-run charge cap). An aggregate has at most a few thousand groups.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}