VoterGuideOS

Get candidate by ID

Returns a single candidate by id.

GET
/candidates/{id}

Path Parameters

id*string

Candidate id.

Match^[a-fA-F0-9]{24}$

Header Parameters

X-Organization-Id?string

Organization id used as the overlay organization context.

Match^[a-fA-F0-9]{24}$

Response Body

application/json

Candidate response.

TypeScript Definitions

Use the response body type in TypeScript.

curl -X GET "https://example.com/candidates/65d4f20f8f5a4d7e9a123456" \  -H "X-Organization-Id: org_123"
{
  "_id": "6a270dfcf8be694115151dd9",
  "election": "2026-california-general-election",
  "elections": [],
  "official": "xavier-becerra",
  "party": "D",
  "race": "6a270dd9f8be694115150b90",
  "races": [],
  "qualified": "yes",
  "withdrawn": false,
  "name": "Xavier Becerra",
  "ballotOrder": 1,
  "office": "ca-state-governor",
  "district": "675c9a189920391a48a032e8",
  "districtType": "state",
  "cities": [],
  "counties": [],
  "raceKey": "2026-california-general-election-ca-state-governor-ca-state",
  "longName": "California Governor",
  "uncontested": false,
  "uncontestedDetailed": "contested",
  "contact": [],
  "readMoreLinks": [],
  "specifiedLinks": [],
  "links": [
    {
      "mediaType": "website",
      "url": "https://www.xavierbecerra2026.com/",
      "_id": "6a2bed31a78cf6dd16e21027"
    },
    {
      "mediaType": "instagram",
      "title": "Instagram",
      "url": "https://www.instagram.com/becerraforgovernor",
      "_id": "6a2bed31a78cf6dd16e21028"
    },
    {
      "mediaType": "tiktok",
      "title": "TikTok",
      "url": "https://www.tiktok.com/@becerraforgovernor",
      "_id": "6a2bed31a78cf6dd16e21029"
    },
    {
      "mediaType": "twitter",
      "title": "Twitter",
      "url": "https://x.com/XavierBecerra",
      "_id": "6a2bed31a78cf6dd16e2102a"
    },
    {
      "mediaType": "facebook",
      "title": "Facebook",
      "url": "https://www.facebook.com/becerraforgovernor",
      "_id": "6a2bed31a78cf6dd16e2102b"
    },
    {
      "mediaType": "youtube",
      "title": "YouTube",
      "url": "https://www.youtube.com/@becerraforgovernor",
      "_id": "6a2bed31a78cf6dd16e2102c"
    },
    {
      "mediaType": "bluesky",
      "title": "Bluesky",
      "url": "https://bsky.app/profile/xavierbecerra.bsky.social",
      "_id": "6a2bed31a78cf6dd16e2102d"
    }
  ],
  "statusByQuestionnaire": [],
  "createdAt": "2026-06-08T18:46:20.944Z",
  "updatedAt": "2026-06-12T11:27:47.269Z",
  "photoPathFace": "https://branch-production-bucket.s3.amazonaws.com/images/candidates/1781001499793_blob"
}