action fec_get_elections { label: "get_elections" description: "\nLook at the top-level financial information for all candidates running for the same\noffice.\n\nChoose a 2-year cycle, and `house`, `senate` or `presidential`.\n\nIf you are looking for a Senate seat, you will need to select the state using a two-letter\nabbreviation.\n\nHouse races require state and a two-digit district number.\n\nSince this endpoint reflects financial information, it will only have candidates once they file\nfinancial reporting forms. Query the `/candidates` endpoint to retrieve an-up-to-date list of all the\ncandidates that filed to run for a particular seat.\n" provider: fec method: GET path: "/elections/" encoding: json input: { type: "object" properties: { api_key: { type: "string" } cycle: { type: "integer" format: "int32" } district: { type: "string" } election_full: { type: "boolean" } office: { type: "string" enum: ["house", "senate", "president"] } page: { type: "integer" format: "int32" } per_page: { type: "integer" format: "int32" } sort: { type: "string" } sort_hide_null: { type: "boolean" } sort_null_only: { type: "boolean" } sort_nulls_last: { type: "boolean" } state: { type: "string" } } required: ["api_key", "cycle", "office"] additionalProperties: false } output: { type: "object" additionalProperties: true } }