Find endorsers
search_endorsersFind endorsers (unions, newspapers, parties, groups, officials) by name, category, home state or the elections they endorsed in. Returns slugs to use with get_endorser and the endorsers filters, and each endorser’s facts (FEC committee ids, IRS employer id and tax-exemption section, union membership) where we have them. Records in the answer: endorser, endorser-facts (describe_record explains each field, describe_values each coded value).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_endorsers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Name contains (case-insensitive, up to 100 characters). | |
| lang | No | es for Spanish ballot text (titles, choices, measure text, statements) where the state publishes it; English otherwise. Names are never translated. Values: en: English (the default). es: Spanish ballot text (titles, choices, measure text, statements) where the state publishes it; English where it doesn’t. Names are never translated. | |
| limit | No | Results per page, 1–500. | |
| cursor | No | Where the next page starts: the next_cursor from the previous page. Leave it out for the first page; it is opaque, so pass it back exactly as you got it. | |
| fields | No | Optional: return only these fields of each record, to keep the answer short. Leave it out to get every field (the default, and the right choice when you are not sure what you need). Comma-separated field names. A dot reaches into a nested object or into every item of a list (choices.label); parentheses group several fields under one (choices(label,party) means choices.label,choices.party). A field named alone comes back whole. Example: "slug,name,category.name,state". Top-level fields here: id, slug, name, category, description, website_url, logo_url, state, party, endorsement_count, facts. next_cursor always comes back, so paging works the same. A field that is null stays null. An unknown name gives an error listing the names that exist there; fix it and call again. describe_record explains every field. | |
| states | No | Home states (USPS codes), or national. Comma-separated (up to 200 values); any of them matches. | |
| elections | No | Only endorsers with endorsements in these elections (slugs). Comma-separated (up to 200 values); any of them matches. | |
| categories | No | Category slugs. Comma-separated (up to 200 values); any of them matches. | |
| min_endorsements | No | Only endorsers with at least this many contests (endorsement_count). endorsedby.org lists endorsers with 5 or more by default and finds the rest by search; pass 5 to match. |