{
  "openapi": "3.0.1",
  "info": {
    "title": "FEC Campaign Finance Scraper",
    "description": "Search FEC campaign finance data for contributions, candidates, committees/PACs, spending, independent expenditures, and committee totals. Export source-backed records with donor, amount, candidate, committee, employer, recipient, and FEC evidence links.",
    "version": "0.1",
    "x-build-id": "wJ9FgM3wIC4Ug7DsM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~fec-campaign-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-fec-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/maximedupre~fec-campaign-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-fec-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/maximedupre~fec-campaign-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-fec-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": {
          "contributionSearchTerms": {
            "title": "Contributor, employer, or committee search",
            "type": "array",
            "description": "Enter donor names, employer names, occupations, candidate names, committee names, or FEC IDs to search itemized contribution records.",
            "items": {
              "type": "string"
            }
          },
          "candidateSearchTerms": {
            "title": "Candidate names or IDs",
            "type": "array",
            "description": "Enter candidate names or FEC candidate IDs to collect candidate records and available financial summaries.",
            "items": {
              "type": "string"
            }
          },
          "committeeSearchTerms": {
            "title": "Committee or PAC names or IDs",
            "type": "array",
            "description": "Enter committee names, PAC names, or FEC committee IDs to collect committee records.",
            "items": {
              "type": "string"
            }
          },
          "disbursementSearchTerms": {
            "title": "Recipient, committee, or candidate search",
            "type": "array",
            "description": "Enter payee names, recipient names, committee names or IDs, or candidate names or IDs to collect operating disbursement rows.",
            "items": {
              "type": "string"
            }
          },
          "independentExpenditureSearchTerms": {
            "title": "Committee, candidate, or payee search",
            "type": "array",
            "description": "Enter committee names or IDs, candidate names or IDs, or payee names to collect independent expenditure rows.",
            "items": {
              "type": "string"
            }
          },
          "committeeTotalSearchTerms": {
            "title": "Committee names or IDs",
            "type": "array",
            "description": "Enter committee names or FEC committee IDs to collect committee total rows.",
            "items": {
              "type": "string"
            }
          },
          "cycleYears": {
            "title": "Election cycles",
            "type": "array",
            "description": "Optional election years or two-year periods, such as 2024 or 2026. Leave empty to use the source default for the selected target.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Only return records dated on or after this date when the selected target supports date filtering."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Only return records dated on or before this date when the selected target supports date filtering."
          },
          "minAmount": {
            "title": "Minimum amount",
            "type": "number",
            "description": "Only return financial records with an amount at or above this value when amount filtering is available."
          },
          "maxAmount": {
            "title": "Maximum amount",
            "type": "number",
            "description": "Only return financial records with an amount at or below this value when amount filtering is available."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Optional two-letter state codes for contributor, candidate, committee, or office filters where supported.",
            "items": {
              "type": "string"
            }
          },
          "party": {
            "title": "Party",
            "enum": [
              "DEM",
              "REP",
              "IND",
              "LIB",
              "GRE",
              "OTH"
            ],
            "type": "string",
            "description": "Optional party filter for candidate or committee targets."
          },
          "office": {
            "title": "Office",
            "enum": [
              "P",
              "S",
              "H"
            ],
            "type": "string",
            "description": "Optional office filter for candidate targets."
          },
          "supportOppose": {
            "title": "Support or oppose",
            "enum": [
              "support",
              "oppose"
            ],
            "type": "string",
            "description": "Optional filter for independent expenditures that support or oppose a candidate."
          },
          "outputStyle": {
            "title": "Output style",
            "enum": [
              "detailed_records",
              "grouped_summaries"
            ],
            "type": "string",
            "description": "Choose detailed source records or deterministic grouped summaries for analyst-ready totals and counts.",
            "default": "detailed_records"
          },
          "groupBy": {
            "title": "Group summaries by",
            "type": "array",
            "description": "Used only when Output style is Grouped summaries. Choose one or more grouping keys that match the selected target.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum successful rows to return for this run. Keep the first run small, then raise it when the filters are correct.",
            "default": 100
          },
          "fecApiKey": {
            "title": "FEC API key",
            "type": "string",
            "description": "Optional FEC API key for users who have one. Leave empty for the default public access path."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}