Ipums Microdata ApiSAFE
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Overview
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
e1ba289846fdOBSERVED · 2026-10-08Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| openclaw | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: ipums-microdata-api
description: "Access harmonized census and survey microdata via the IPUMS API"
metadata:
openclaw:
emoji: "📋"
category: "domains"
subcategory: "social-science"
keywords: ["IPUMS", "census data", "microdata", "survey data", "demographics", "social science data"]
source: "https://www.ipums.org/"
---
# IPUMS Microdata API
## Overview
IPUMS (Integrated Public Use Microdata Series) provides the world's largest collection of harmonized census and survey microdata. Hosted by the University of Minnesota, it covers demographic, health, labor, and geographic data across 100+ countries and 100+ years. The API enables programmatic extract creation, metadata queries, and data retrieval. Free registration required.
## IPUMS Data Collections
| Collection | Coverage | Records |
|-----------|----------|---------|
| IPUMS USA | U.S. Census & ACS (1850-present) | 16B+ person-records |
| IPUMS CPS | Current Population Survey (1962-present) | Labor force data |
| IPUMS International | Census data from 100+ countries | 2B+ person-records |
| IPUMS NHGIS | U.S. geographic/aggregate data | County-level stats |
| IPUMS DHS | Demographic and Health Surveys | 300+ surveys, 90 countries |
| IPUMS Time Use | American Time Use Survey | Time diary data |
| IPUMS Health | NHIS health surveys | Health/disability data |
| IPUMS Higher Ed | NSCG/SDR science workforce | S&E workforce data |
## API Endpoints
### Base URL
```
https://api.ipums.org/extracts/
```
### Authentication
```bash
# Register at https://www.ipums.org/
# API key from your account settings
export IPUMS_KEY="..."
```
### Create an Extract
```bash
# Request a data extract (IPUMS USA example)
curl -X POST "https://api.ipums.org/extracts/?collection=usa&version=2" \
-H "Authorization: $IPUMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Income by education, 2020 ACS",
"data_structure": {"rectangular": {"on": "P"}},
"data_format": "csv",
"samples": {"us2020a": {}},
"variables": {
"AGE": {},
"SEX": {},
"RACE": {},
"EDUC": {},
"INCTOT": {},
"EMPSTAT": {}
}
}'
```
### Check Extract Status
```bash
curl "https://api.ipums.org/extracts/42?collection=usa&version=2" \
-H "Authorization: $IPUMS_KEY"
```
### Download Extract
```bash
# When status is "completed"
curl -O "https://api.ipums.org/extracts/42/download?collection=usa&version=2" \
-H "Authorization: $IPUMS_KEY"
```
### Query Metadata
```bash
# List available variables
curl "https://api.ipums.org/metadata/usa/variables?version=2" \
-H "Authorization: $IPUMS_KEY"
# Get variable details
curl "https://api.ipums.org/metadata/usa/variables/EDUC?version=2" \
-H "Authorization: $IPUMS_KEY"
# List available samples
curl "https://api.ipums.org/metadata/usa/samples?version=2" \
-H "Authorization: $IPUMS_KEY"
```
## Python Usage
```python
import os
import time
import requests
BASE_URL = "https://api.ipums.org"
HEADERS = {"Authorization": os.environ.get("IPUMS_KEY", "")}
def create_extract(collection: str, samples: dict,
variables: list, description: str = "",
data_format: str = "csv") -> int:
"""Create an IPUMS data extract request."""
var_dict = {v: {} for v in variables}
body = {
"description": description,
"data_format": data_format,
"data_structure": {"rectangular": {"on": "P"}},
"samples": {s: {} for s in samples} if isinstance(samples, list)
else samples,
"variables": var_dict,
}
resp = requests.post(
f"{BASE_URL}/extracts/?collection={collection}&version=2",
headers={**HEADERS, "Content-Type": "application/json"},
json=body,
)
resp.raise_for_status()
return resp.json()["number"]
def wait_for_extract(extract_id: int, collection: str,
poll_interval: int = 30) -> str:
"""Poll until extract is ready, return download URL."""
while True:
resp = requests.get(
f"{BASE_URL}/extracts/{extract_id}"
f"?collection={collection}&version=2",
headers=HEADERS,
)
resp.raise_for_status()
data = resp.json()
status = data.get("status")
if status == "completed":
return data["download_links"]["data"]["url"]
elif status == "failed":
raise RuntimeError(f"Extract failed: {data}")
print(f"Status: {status}, waiting {poll_interval}s...")
time.sleep(poll_interval)
def get_variable_info(collection: str, variable: str) -> dict:
"""Get metadata about a variable."""
resp = requests.get(
f"{BASE_URL}/metadata/{collection}/variables/{variable}"
f"?version=2",
headers=HEADERS,
)
resp.raise_for_status()
return resp.json()
# Example: request 2020 ACS income data
extract_id = create_extract(
collection="usa",
samples=["us2020a"],
variables=["AGE", "SEX", "RACE", "EDUC", "INCTOT", "EMPSTAT"],
description="Education-income analysis 2020",
)
print(f"Extract #{extract_id} submitted. Waiting...")
download_url = wait_for_extract(extract_id, "usa")
print(f"Ready: {download_url}")
```
## Key Variables (IPUMS USA)
| Variable | Description |
|----------|-------------|
| `AGE` | Age |
| `SEX` | Sex |
| `RACE` | Race |
| `EDUC` | Education level |
| `INCTOT` | Total income |
| `EMPSTAT` | Employment status |
| `OCC` | Occupation |
| `IND` | Industry |
| `POVERTY` | Poverty status |
| `MIGRATE1` | Migration status |
| `MARST` | Marital status |
| `NCHILD` | Number of children |
## Use Cases
1. **Demographic research**: Population trends, migration, aging
2. **Labor economics**: Wage gaps, employment patterns, occupation shifts
3. **Health disparities**: Insurance coverage, disability, access to care
4. **Education research**: Educational attainment trends, returns to education
5. **Historical analysis**: Long-run coTrust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
e1ba289846fdfull audit observations/trust-audit/skill/brycewang-stanford__ipums-microdata-api.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | e1ba289846fd | SAFE | B | 89 | first audit |
Questions
What does the Ipums Microdata Api skill do?
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Is Ipums Microdata Api safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Ipums Microdata Api access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Ipums Microdata Api work with?
Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.