---
title: "GET /v1/totals/by_entity/"
method: GET
path: "/v1/totals/by_entity/"
tags: ["financial"]
---

# GET /v1/totals/by_entity/

`GET /v1/totals/by_entity/`

## Request

- Base URL: `https://api.open.fec.gov` (the document declares no server; this is the origin it was published from)
- URL: `https://api.open.fec.gov/v1/totals/by_entity/`
- Auth: API key in header `X-Api-Key` and API key in query parameter `api_key` and API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/fec/apis/openfec/docs/v1/totals/by_entity/get.ts> (a function with typed inputs; its response is checked against the schema)

Provides cumulative receipt totals by entity type, over a two year cycle. Totals are adjusted to avoid double counting.

This is [the sql](https://github.com/fecgov/openFEC/blob/develop/data/migrations/V41__large_aggregates.sql) that creates these calculations.

## Query parameters

- `page` integer
- `per_page` integer
- `cycle` integer, required
- `sort` string
- `sort_hide_null` boolean
- `sort_null_only` boolean
- `sort_nulls_last` boolean
- `api_key` string

## Response `default`

Default response

- EntityReceiptDisbursementTotalsPage
  - `pagination` OffsetInfo
    - `count` integer
    - `is_count_exact` boolean
    - `page` integer
    - `pages` integer
    - `per_page` integer
  - `results` EntityReceiptDisbursementTotals[]
    - `cumulative_candidate_disbursements` number, nullable: Cumulative candidate disbursements in a two year period, adjusted to avoid double counting.
    - `cumulative_candidate_receipts` number, nullable: Cumulative candidate receipts in a two year period, adjusted to avoid double counting.
    - `cumulative_pac_disbursements` number, nullable: Cumulative PAC disbursements in a two year period, adjusted to avoid double counting.
    - `cumulative_pac_receipts` number, nullable: Cumulative PAC recipts in a two year period, adjusted to avoid double counting.
    - `cumulative_party_disbursements` number, nullable: Cumulative party disbursements in a two year period, adjusted to avoid double counting.
    - `cumulative_party_receipts` number, nullable: Cumulative party receipts in a two year period, adjusted to avoid double counting.
    - `cycle` integer, nullable: Filter records to only those that were applicable to a given two-year period.The cycle begins with an odd year and is named for its ending, even year.
    - `end_date` string, date: The cumulative total for this month.

---

[API](https://skmtc.dev/fec/apis/openfec.md) - [All operations](https://skmtc.dev/fec/apis/openfec/llms.txt) - [OpenAPI document](https://skmtc.dev/fec/apis/openfec/revisions/d2eb3171e225?raw)
