> For the complete documentation index, see [llms.txt](https://developer.ballotpedia.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.ballotpedia.org/dictionaries-and-terms/data-dictionary-endorsements.md).

# Data dictionary: Endorsements

There are two types of endorsements files — one for ballot measures and one for candidates.

## Candidate endorsements

| column name                 | description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| year                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| candidate\_id               | The candidate that is receiving the endorsement (endorsee). This is a unique identifier that links to the candidates file.                                                                                                                                                                                                                                                                                                                                                                                  |
| endorsement\_id             | Unique identifier for this endorsement                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| endorsement\_stage          | <p>If the endorsement is relevant to a specific stage of the election, as opposed to the entire campaign, this can be defined here with one of the following values:<br>-Convention<br>-Primary<br>-Primary Runoff<br>-General<br>-General Runoff</p><p></p><p>Primarily, this is used to distinguish "General" from "Primary" endorsements.</p>                                                                                                                                                            |
| endorser\_type              | <p>May be one of the following categories, or NULL:<br>-Candidate<br>-Former Official<br>-Government-Federal Administration<br>-Government-Governors<br>-Government-Judicial<br>-Government-Local<br>-Government-Mayors<br>-Government-Other<br>-Government-President<br>-Government-State Representatives<br>-Government-State Senators<br>-Government-U.S. House<br>-Government-U.S. Senate<br>-Individual-Community Leader<br>-Individual-Other<br>-Media-Newspaper<br>-Media-Other<br>-Organization</p> |
| endorser\_name              | The person or organization that is making the endorsement                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| endorser\_organizations\_id | Unique identifier if the endorsement is made by an organization                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| endorser\_person\_id        | Unique identifier if the endorsement is made by a person (individual)                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| source                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| office\_level               | <p>One of the following, based on the office sought by endorsee:<br>-Federal<br>-State<br>-Local<br>-ultralocal\*</p><p></p><p>\*This is a Ballotpedia-specific designation for local elected offices outside of the top 100 cities in the U.S. by population</p>                                                                                                                                                                                                                                           |
| office\_branch              | <p>One of the following (or NULL), based on the office sought by endorsee:<br>-Executive<br>-Legislative<br>-Judicial</p>                                                                                                                                                                                                                                                                                                                                                                                   |
| state                       | State postal abbreviation (i.e. "AL")                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Ballot measure endorsements

| column name                 | description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ballot\_measure\_id         | Unique identifier that links to the ballot measure file                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| support\_oppose             | Either "Support" or "Oppose", where the latter means the endorser is campaigning against the measure.                                                                                                                                                                                                                                                                                                                                                                                                       |
| endorsement\_id             | Unique identifier for this endorsement                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| endorser\_type              | <p>May be one of the following categories, or NULL:<br>-Candidate<br>-Former Official<br>-Government-Federal Administration<br>-Government-Governors<br>-Government-Judicial<br>-Government-Local<br>-Government-Mayors<br>-Government-Other<br>-Government-President<br>-Government-State Representatives<br>-Government-State Senators<br>-Government-U.S. House<br>-Government-U.S. Senate<br>-Individual-Community Leader<br>-Individual-Other<br>-Media-Newspaper<br>-Media-Other<br>-Organization</p> |
| endorser\_name              | The person or organization that is making the endorsement                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| endorser\_organizations\_id | Unique identifier if the endorsement is made by an organization                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| endorser\_person\_id        | Unique identifier if the endorsement is made by a person (individual)                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| source                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| election\_year              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| state                       | State postal abbreviation (i.e. "AL")                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.ballotpedia.org/dictionaries-and-terms/data-dictionary-endorsements.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
