{
  "openapi": "3.0.1",
  "info": {
    "title": "CA Cal-Access Campaign Finance Scraper",
    "description": "Unofficial search of California Secretary of State daily public CAL-ACCESS data; not affiliated with or endorsed by the Secretary of State.",
    "version": "1.0",
    "x-build-id": "PVmFYqF4baoFytmel"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~cal-access-campaign-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-cal-access-campaign-finance-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/codingfrontend~cal-access-campaign-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-cal-access-campaign-finance-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/codingfrontend~cal-access-campaign-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-cal-access-campaign-finance-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": {
          "searchQuery": {
            "title": "Filer name contains",
            "minLength": 2,
            "maxLength": 100,
            "type": "string",
            "description": "Case-insensitive name fragment. Ignored when an exact filer ID is supplied.",
            "default": "NEWSOM"
          },
          "filerId": {
            "title": "Exact filer ID",
            "pattern": "^[0-9]{1,12}$",
            "type": "string",
            "description": "Optional exact numeric CAL-ACCESS filer ID."
          },
          "entityType": {
            "title": "Entity type",
            "enum": [
              "any",
              "RECIPIENT COMMITTEE",
              "CANDIDATE/OFFICEHOLDER",
              "MAJOR DONOR/INDEPENDENT EXPENDITURE COMMITTEE",
              "LOBBYIST",
              "FIRM",
              "EMPLOYER",
              "CLIENT",
              "PAYMENT TO INFLUENCE",
              "SLATE MAILER ORGANIZATIONS",
              "TREASURER/RESPONSIBLE OFFICER",
              "PROPONENT",
              "PROPOSITION",
              "INITIATIVE",
              "INDIVIDUAL"
            ],
            "type": "string",
            "description": "Optional exact registry classification from the official export.",
            "default": "any"
          },
          "status": {
            "title": "Registration status",
            "enum": [
              "any",
              "ACTIVE",
              "INACTIVE",
              "TERMINATED",
              "WITHDRAWN"
            ],
            "type": "string",
            "description": "Optional exact current or historical registration-status filter from the official export.",
            "default": "any"
          },
          "includeFinancialActivity": {
            "title": "Include latest campaign filing and summary lines",
            "type": "boolean",
            "description": "For campaign filers, join the latest public campaign-disclosure cover record and its reported financial summary lines.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum unique filer records to emit.",
            "default": 3
          },
          "maxFinancialLines": {
            "title": "Maximum summary lines per filer",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety limit for financial summary line items attached to each matched filer.",
            "default": 40
          },
          "maxRunMillis": {
            "title": "Maximum processing time (ms)",
            "minimum": 30000,
            "maximum": 280000,
            "type": "integer",
            "description": "Actor-side deadline, capped below five minutes.",
            "default": 240000
          },
          "maxCompressedMbytes": {
            "title": "Maximum compressed bytes to fetch (MB)",
            "minimum": 20,
            "maximum": 500,
            "type": "integer",
            "description": "Abort before fetching selected ZIP members if their combined compressed size exceeds this guard.",
            "default": 140
          },
          "maxRetries": {
            "title": "Maximum attempts per range request",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Bounded attempts for each official CDN byte-range request.",
            "default": 3
          },
          "requestDelayMillis": {
            "title": "Delay between official requests (ms)",
            "minimum": 200,
            "maximum": 5000,
            "type": "integer",
            "description": "Responsible pacing for the small number of byte-range requests.",
            "default": 300
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy. Direct access to the public CDN is used by default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}