Firecrawl Alexandria

Harvard Dataverse: MIT Election Data and Science Lab returns

Harvard Dataverse (dataverse.harvard.edu), where the MIT Election Data and Science Lab (MEDSL) publishes its cleaned US election returns: search datasets in the MEDSL dataverse (or any Harvard dataverse alias), read a dataset's metadata, licence, citation and file list from the native API, and filter one race's rows (year, state, office, district, county, candidate, party, stage, mode) out of a CSV/TSV return file with HTTP range reads. Every record carries the dataset DOI and citation. All 55 MEDSL datasets are CC0 1.0. Datasets behind a Dataverse guestbook (U.S. House 1976-2024, County Presidential 2000-2024, the 2018 and 2020 precinct releases and others) are metadata-only: the program never submits a guestbook response.

Try Harvard Dataverse: MIT Election Data and Science Lab returns now.

Choose an example or ask your own question.

Harvard Dataverse: MIT Election Data and Science Lab returns
TRY ASKING
1Request
string

Dataset DOI: doi:10.7910/DVN/PEJ5QU, 10.7910/DVN/PEJ5QU or https://doi.org/10.7910/DVN/PEJ5QU.

string

Dataset page URL, e.g. https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/PEJ5QU.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "dataverse-harvard-edu",
    capability: "elections/get_dataset",
    options: {
      doi: "doi:10.7910/DVN/PEJ5QU",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Harvard Dataverse: MIT Election Data and Science Lab returns.

{
  "authors": [
    "MIT Election Data and Science Lab"
  ],
  "citation": "MIT Election Data and Science Lab, 2017, \"U.S. Senate statewide 1976–2024\", https://doi.org/10.7910/DVN/PEJ5QU, Harvard Dataverse, V8",
  "description": "This data file contains constituency (state-level) returns for elections to the U.S. Senate from 1976 to 2024.",
  "doi": "doi:10.7910/DVN/PEJ5QU",
  "file_count": 3,
  "files": [
    {
      "content_type": "text/tab-separated-values",
      "description": "Elections returns data for US Senate at the statewide level ",
      "directory": null,
      "download_url": "https://dataverse.harvard.edu/api/access/datafile/13887039?format=original",
      "file_id": 13887039,
      "md5": "0f8b51cf0f77a2ef0bff992f7a64d1b4",
      "name": "1976-2024-senate-state.tab",
      "original_format": "text/comma-separated-values",
      "original_name": "1976-2024-senate-state.csv",
      "original_size_bytes": 530501,
      "query_size_bytes": 530501,
      "queryable": true,
      "restricted": false,
      "size_bytes": 632787,
      "tabular": true
    },
    {
      "content_type": "text/markdown",
      "description": "Codebook for the Senate elections returns data ",
      "directory": null,
      "download_url": "https://dataverse.harvard.edu/api/access/datafile/6708560",
      "file_id": 6708560,
      "md5": "1cab4bc42b0ca632223b9b9a90c65f30",
      "name": "codebook-us-senate-1976–2024.md",
      "original_format": null,
      "original_name": null,
      "original_size_bytes": null,
      "query_size_bytes": null,
      "queryable": false,
      "restricted": false,
      "size_bytes": 3700,
      "tabular": false
    },
    {
      "content_type": "text/tab-separated-values",
      "description": "sources for elections data",
      "directory": null,
      "download_url": "https://dataverse.harvard.edu/api/access/datafile/4304792?format=original",
      "file_id": 4304792,
      "md5": "d92c44441367c4acda59e8779dc62155",
      "name": "sources-senate.tab",
      "original_format": "text/csv",
      "original_name": "sources-senate.csv",
      "original_size_bytes": 3049,
      "query_size_bytes": 3049,
      "queryable": true,
      "restricted": false,
      "size_bytes": 3354,
      "tabular": true
    }
  ],
  "guestbook_required": false,
  "keywords": [
    "Elections"
  ],
  "license": {
    "name": "CC0 1.0",
    "spdx": "CC0-1.0",
    "uri": "http://creativecommons.org/publicdomain/zero/1.0"
  },
  "observed_at_ms": 1793105759387,
  "persistent_url": "https://doi.org/10.7910/DVN/PEJ5QU",
  "publication_date": "2017-11-01",
  "publisher": "Harvard Dataverse",
  "related_datasets": [
    "U.S. House 1976–2024",
    "U.S. President 1976–2024"
  ],
  "release_time": "2026-05-11T16:13:52Z",
  "source_url": "https://dataverse.harvard.edu/api/datasets/:persistentId/?persistentId=doi%3A10.7910%2FDVN%2FPEJ5QU",
  "subjects": [
    "Social Sciences"
  ],
  "terms_of_use": null,
  "title": "U.S. Senate statewide 1976–2024",
  "topics": [
    "Election Returns"
  ],
  "url": "https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/PEJ5QU",
  "version": "V8",
  "version_state": "RELEASED"
}
Browse the library