{
  "profile": "tabular-data-package",
  "name": "texas-statewide-candidate-votes",
  "title": "Texas U.S. Senate and gubernatorial candidate returns, selected general elections",
  "description": "Statewide candidate counts for the U.S. Senate in 2020, 2024 and 2026 and for governor in 2026. The 2020 and 2026 Senate races concern the same seat. The 2024 race concerns the other Texas seat. The two earlier elections were presidential elections and 2026 was a midterm. Official 2020 and 2024 totals come from the U.S. House Clerk. The Texas Secretary of State’s 2026 election-night returns, updated 4 November, are preliminary and precede the state canvass. Contest totals count candidate votes and cannot identify individual turnout or switching.",
  "sources": [
    {
      "title": "Clerk of the U.S. House of Representatives, 2020 election statistics, Texas candidate totals",
      "path": "https://clerk.house.gov/member_info/electionInfo/2020/statistics2020.pdf#page=65"
    },
    {
      "title": "Clerk of the U.S. House of Representatives, 2024 election statistics, Texas candidate totals",
      "path": "https://clerk.house.gov/member_info/electionInfo/2024/statistics2024.pdf#page=67"
    },
    {
      "title": "Texas Secretary of State, 2026 general election preliminary results",
      "path": "https://electionresults.sos.state.tx.us/results.html"
    }
  ],
  "resources": [
    {
      "profile": "tabular-data-resource",
      "name": "texas-votes",
      "title": "Texas statewide votes by candidate and contest",
      "path": "texas-votes.csv",
      "format": "csv",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year of the November general election.",
            "constraints": {
              "required": true,
              "enum": [
                2020,
                2024,
                2026
              ]
            }
          },
          {
            "name": "office",
            "type": "string",
            "description": "Senate denotes U.S. senator from Texas. Governor denotes governor of Texas.",
            "constraints": {
              "required": true,
              "enum": [
                "Senate",
                "Governor"
              ]
            }
          },
          {
            "name": "party",
            "type": "string",
            "description": "D = Democratic, R = Republican, L = Libertarian, G = Green, WI = write-in designation. A write-in designation does not identify a party affiliation.",
            "constraints": {
              "required": true,
              "enum": [
                "D",
                "R",
                "L",
                "G",
                "WI"
              ]
            }
          },
          {
            "name": "candidate",
            "type": "string",
            "description": "Candidate name as transcribed, including source capitalisation and any incumbent marker.",
            "constraints": {
              "required": true
            }
          },
          {
            "name": "votes",
            "type": "integer",
            "description": "Number of valid votes credited to the candidate statewide in this contest.",
            "constraints": {
              "required": true,
              "minimum": 0
            }
          }
        ],
        "primaryKey": [
          "year",
          "office",
          "candidate"
        ]
      }
    }
  ]
}
