Skip to content

Function: getTopCandidates() ​

ts
function getTopCandidates(opts: {
  election_year: number;
  office: string;
  per_page?: number;
  state?: string;
}): Promise<FecSearchResult<FecCandidateTotals>>;

Defined in: fec/sdk.ts:220

Get top candidates ranked by total money raised for a given office and cycle.

Parameters ​

ParameterType
opts{ election_year: number; office: string; per_page?: number; state?: string; }
opts.election_yearnumber
opts.officestring
opts.per_page?number
opts.state?string

Returns ​

Promise<FecSearchResult<FecCandidateTotals>>

Released under the MIT License.