skills/43-wentorai-research-plugins/skills/literature/fulltext/dataverse-api/SKILL.md
Deposit and discover research datasets via Harvard Dataverse API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research dataverse-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Dataverse is an open-source research data repository platform developed by Harvard IQSS, hosting 150K+ datasets across 80+ installations worldwide. The Harvard Dataverse alone has 130K+ datasets covering social science, natural science, and humanities. The API supports search, metadata retrieval, file download, and dataset deposit. Free, no authentication for read access.
https://dataverse.harvard.edu/api
# Search datasets
curl "https://dataverse.harvard.edu/api/search?q=climate+change&type=dataset&per_page=20"
# Search files within datasets
curl "https://dataverse.harvard.edu/api/search?q=temperature+data&type=file&per_page=20"
# Filter by subject
curl "https://dataverse.harvard.edu/api/search?q=survey+data&type=dataset&\
fq=subject_ss:\"Social Sciences\""
# Filter by publication date
curl "https://dataverse.harvard.edu/api/search?q=genomics&type=dataset&\
fq=dateSort:[2024-01-01T00:00:00Z TO *]"
# Sort by relevance or date
curl "https://dataverse.harvard.edu/api/search?q=machine+learning&type=dataset&\
sort=date&order=desc"
# By persistent ID (DOI)
curl "https://dataverse.harvard.edu/api/datasets/:persistentId/?persistentId=doi:10.7910/DVN/EXAMPLE"
# By dataset ID
curl "https://dataverse.harvard.edu/api/datasets/12345"
# Get dataset versions
curl "https://dataverse.harvard.edu/api/datasets/:persistentId/versions?persistentId=doi:10.7910/DVN/EXAMPLE"
# Download a specific file by ID
curl -O "https://dataverse.harvard.edu/api/access/datafile/67890"
# Download with original format
curl -O "https://dataverse.harvard.edu/api/access/datafile/67890?format=original"
# Download all files in a dataset (as zip)
curl -O "https://dataverse.harvard.edu/api/access/dataset/:persistentId/?persistentId=doi:10.7910/DVN/EXAMPLE"
| Parameter | Description | Example |
|-----------|-------------|---------|
| q | Search query | q=voter+turnout |
| type | Item type | dataset, file, dataverse |
| per_page | Results per page (max 1000) | per_page=50 |
| start | Pagination offset | start=50 |
| sort | Sort field | name, date |
| order | Sort order | asc, desc |
| fq | Filter query (Solr) | fq=subject_ss:"Medicine" |
{
"status": "OK",
"data": {
"q": "climate change",
"total_count": 2450,
"items": [
{
"name": "Global Temperature Dataset 2024",
"type": "dataset",
"url": "https://doi.org/10.7910/DVN/EXAMPLE",
"global_id": "doi:10.7910/DVN/EXAMPLE",
"description": "Monthly global temperature anomalies...",
"published_at": "2024-03-15",
"publisher": "Harvard Dataverse",
"subjects": ["Earth and Environmental Sciences"],
"fileCount": 12,
"citation": "Smith, J. (2024). Global Temperature Dataset..."
}
]
}
}
import requests
BASE_URL = "https://dataverse.harvard.edu/api"
def search_datasets(query: str, per_page: int = 20,
subject: str = None) -> list:
"""Search Harvard Dataverse for datasets."""
params = {
"q": query,
"type": "dataset",
"per_page": per_page,
"sort": "date",
"order": "desc",
}
if subject:
params["fq"] = f'subject_ss:"{subject}"'
resp = requests.get(f"{BASE_URL}/search", params=params)
resp.raise_for_status()
data = resp.json()
results = []
for item in data.get("data", {}).get("items", []):
results.append({
"name": item.get("name"),
"doi": item.get("global_id"),
"description": item.get("description", "")[:300],
"published": item.get("published_at"),
"subjects": item.get("subjects", []),
"files": item.get("fileCount", 0),
"url": item.get("url"),
})
return results
def get_dataset_files(doi: str) -> list:
"""List files in a dataset."""
resp = requests.get(
f"{BASE_URL}/datasets/:persistentId/",
params={"persistentId": doi},
)
resp.raise_for_status()
data = resp.json().get("data", {})
files = []
version = data.get("latestVersion", {})
for f in version.get("files", []):
df = f.get("dataFile", {})
files.append({
"id": df.get("id"),
"filename": df.get("filename"),
"size": df.get("filesize"),
"content_type": df.get("contentType"),
"md5": df.get("md5"),
})
return files
def download_file(file_id: int, output_path: str):
"""Download a file from Dataverse."""
resp = requests.get(
f"{BASE_URL}/access/datafile/{file_id}",
stream=True,
)
resp.raise_for_status()
with open(output_path, "wb") as f:
for chunk in resp.iter_content(chunk_size=8192):
f.write(chunk)
# Example: find social science datasets
datasets = search_datasets("income inequality",
subject="Social Sciences")
for ds in datasets:
print(f"[{ds['published']}] {ds['name']} ({ds['files']} files)")
print(f" DOI: {ds['doi']}")
# Example: list files in a dataset
# files = get_dataset_files("doi:10.7910/DVN/EXAMPLE")
# for f in files:
# print(f" {f['filename']} ({f['size']} bytes)")
| Installation | URL | Focus | |-------------|-----|-------| | Harvard Dataverse | dataverse.harvard.edu | Multi-discipline | | UNC Dataverse | dataverse.unc.edu | Social science | | AUSSDA | data.aussda.at | Austrian social science | | Borealis (Canada) | borealisdata.ca | Canadian research | | DataverseNL | dataverse.nl | Dutch research |
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.