action fec_get_elections_search { label: "get_elections_search" description: "\nList elections by cycle, office, state, and district.\n" provider: fec method: GET path: "/elections/search/" encoding: json input: { type: "object" properties: { api_key: { type: "string" } cycle: { type: "array" items: { type: "integer" format: "int32" } } district: { type: "array" items: { type: "string" } } office: { type: "array" items: { type: "string" enum: ["house", "senate", "president"] } } page: { type: "integer" format: "int32" } per_page: { type: "integer" format: "int32" } sort: { type: "array" items: { type: "string" } } sort_hide_null: { type: "boolean" } sort_null_only: { type: "boolean" } sort_nulls_last: { type: "boolean" } state: { type: "array" items: { type: "string" } } zip: { type: "array" items: { type: "integer" format: "int32" } } } required: ["api_key"] additionalProperties: false } output: { type: "object" additionalProperties: true } }