V-Dem · Data
v-dem-net/democracy/dataSearch public records with V-Dem · Data from Alexandria through one Spiral API key. Country-year observations for up to 5 variables and 50 countries (ISO3 or V-Dem country_text_id) from v-dem.net's official graphing API for the pinned release (v16, 1789-2025), optionally year-bounded, with codelow/codehigh bounds. Sorted by variable, country_id, year; paginated with next_cursor. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
countries required | list | — | ISO3 codes or V-Dem country_text_id values (ZZB, PSG, SML, XKX, DDR, VDR, YMD, PSB are V-Dem-only). |
variables required | list | — | Variable tags, e.g. v2x_polyarchy. |
cursor | text | — | Opaque cursor from a previous page's next_cursor (format o<offset>). null or omitted starts at the first page. |
version | text | v16 | Dataset release to pin, e.g. v16. Live observations are served for the current release only (v16, March 2026); variable metadata can be filtered for any release via the codebook's data-release line. Pattern: ^v?[0-9]{1,2}$. |
year_to | number 1789 to 2100 | — | year_to |
page_size | number 1 to 2000 | 100 | page_size |
year_from | number 1789 to 2100 | — | year_from |
include_uncertainty | true or false | — | include_uncertainty |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "v-dem-net/democracy/data",
"input": {
"countries": [
"<countries>"
],
"variables": [
"<variables>"
]
}
}'Frequently asked questions
How much does V-Dem · Data cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use V-Dem · Data through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "v-dem-net/democracy/data"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use V-Dem · Data?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use V-Dem · Data?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.