curl --request POST \
--url https://api.aisa.one/apis/v1/v-dem-net/democracy/data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"SWE"
],
"variables": [
"v2x_polyarchy"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/v-dem-net/democracy/data"
payload = {
"countries": ["SWE"],
"variables": ["v2x_polyarchy"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countries: ['SWE'], variables: ['v2x_polyarchy']})
};
fetch('https://api.aisa.one/apis/v1/v-dem-net/democracy/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/v-dem-net/democracy/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'SWE'
],
'variables' => [
'v2x_polyarchy'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/v-dem-net/democracy/data"
payload := strings.NewReader("{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/v-dem-net/democracy/data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/v-dem-net/democracy/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"citation": "Coppedge, Michael, John Gerring, Carl Henrik Knutsen, Staffan I. Lindberg, Jan Teorell, David Altman, Fabio Angiolillo, Michael Bernhard, Agnes Cornell, M. Steven Fish, Linnea Fox, Lisa Gastaldi, Haakon Gjerløw, Adam Glynn, Ana Good God, Allen Hicken, Katrin Kinzelbach, Joshua Krusell, Kyle L. Marquardt, Kelly McMann, Valeriya Mechkova, Juraj Medzihorsky, Anja Neundorf, Pamela Paxton, Daniel Pemstein, Josefine Pernes, Johannes von Römer, Brigitte Seim, Rachel Sigman, Svend-Erik Skaaning, Jeffrey Staton, Aksel Sundström, Marcus Tannenberg, Eitan Tzelgov, Yi-ting Wang, Tore Wig, Steven Wilson and Daniel Ziblatt. 2026. \"V-Dem [Country-Year/Country-Date] Dataset v16\" Varieties of Democracy (V-Dem) Project. https://doi.org/10.23696/vdemds26.",
"complete": true,
"count": 5,
"countries": [
"SWE"
],
"function": "data",
"include_uncertainty": true,
"license": "CC BY-SA 4.0",
"license_url": "https://creativecommons.org/licenses/by-sa/4.0/",
"next_cursor": "o5",
"observed_at_ms": 1789444695000,
"offset": 0,
"records": [
{
"codehigh": "0.94",
"codelow": "0.869",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2020",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.901",
"value_num": 0.901,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2020
},
{
"codehigh": "0.938",
"codelow": "0.871",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2021",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.9",
"value_num": 0.9,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2021
},
{
"codehigh": "0.935",
"codelow": "0.864",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2022",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.892",
"value_num": 0.892,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2022
},
{
"codehigh": "0.926",
"codelow": "0.85",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2023",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.883",
"value_num": 0.883,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2023
},
{
"codehigh": "0.92",
"codelow": "0.843",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2024",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.881",
"value_num": 0.881,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2024
}
],
"retrieved_at": "2026-09-15T03:58:15.000Z",
"schema_version": "1.0.0",
"source_release_date": "2026-03",
"source_updated_at": null,
"source_url": "https://v-dem.net/data_analysis/VariableGraph/",
"source_urls": [
"https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable"
],
"source_version": "v16",
"total": 6,
"variables": [
"v2x_polyarchy"
],
"version": "v16",
"warnings": [],
"year_from": 2020,
"year_to": null
}Data
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.
curl --request POST \
--url https://api.aisa.one/apis/v1/v-dem-net/democracy/data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"SWE"
],
"variables": [
"v2x_polyarchy"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/v-dem-net/democracy/data"
payload = {
"countries": ["SWE"],
"variables": ["v2x_polyarchy"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countries: ['SWE'], variables: ['v2x_polyarchy']})
};
fetch('https://api.aisa.one/apis/v1/v-dem-net/democracy/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/v-dem-net/democracy/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'SWE'
],
'variables' => [
'v2x_polyarchy'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/v-dem-net/democracy/data"
payload := strings.NewReader("{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/v-dem-net/democracy/data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/v-dem-net/democracy/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"SWE\"\n ],\n \"variables\": [\n \"v2x_polyarchy\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"citation": "Coppedge, Michael, John Gerring, Carl Henrik Knutsen, Staffan I. Lindberg, Jan Teorell, David Altman, Fabio Angiolillo, Michael Bernhard, Agnes Cornell, M. Steven Fish, Linnea Fox, Lisa Gastaldi, Haakon Gjerløw, Adam Glynn, Ana Good God, Allen Hicken, Katrin Kinzelbach, Joshua Krusell, Kyle L. Marquardt, Kelly McMann, Valeriya Mechkova, Juraj Medzihorsky, Anja Neundorf, Pamela Paxton, Daniel Pemstein, Josefine Pernes, Johannes von Römer, Brigitte Seim, Rachel Sigman, Svend-Erik Skaaning, Jeffrey Staton, Aksel Sundström, Marcus Tannenberg, Eitan Tzelgov, Yi-ting Wang, Tore Wig, Steven Wilson and Daniel Ziblatt. 2026. \"V-Dem [Country-Year/Country-Date] Dataset v16\" Varieties of Democracy (V-Dem) Project. https://doi.org/10.23696/vdemds26.",
"complete": true,
"count": 5,
"countries": [
"SWE"
],
"function": "data",
"include_uncertainty": true,
"license": "CC BY-SA 4.0",
"license_url": "https://creativecommons.org/licenses/by-sa/4.0/",
"next_cursor": "o5",
"observed_at_ms": 1789444695000,
"offset": 0,
"records": [
{
"codehigh": "0.94",
"codelow": "0.869",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2020",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.901",
"value_num": 0.901,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2020
},
{
"codehigh": "0.938",
"codelow": "0.871",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2021",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.9",
"value_num": 0.9,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2021
},
{
"codehigh": "0.935",
"codelow": "0.864",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2022",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.892",
"value_num": 0.892,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2022
},
{
"codehigh": "0.926",
"codelow": "0.85",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2023",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.883",
"value_num": 0.883,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2023
},
{
"codehigh": "0.92",
"codelow": "0.843",
"coder_count": null,
"country_id": 5,
"country_name": "Sweden",
"country_text_id": "SWE",
"historical_date": null,
"historical_or_non_iso": false,
"id": "v16:v2x_polyarchy:SWE:2024",
"iso3": "SWE",
"ordinal": null,
"question_id": 730,
"release_date": "2026-03",
"scale": "Interval, from low to high (0-1).",
"sd": null,
"source_url": "https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable",
"unit": "Interval, from low to high (0-1).",
"value": "0.881",
"value_num": 0.881,
"variable": "v2x_polyarchy",
"version": "v16",
"year": 2024
}
],
"retrieved_at": "2026-09-15T03:58:15.000Z",
"schema_version": "1.0.0",
"source_release_date": "2026-03",
"source_updated_at": null,
"source_url": "https://v-dem.net/data_analysis/VariableGraph/",
"source_urls": [
"https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable"
],
"source_version": "v16",
"total": 6,
"variables": [
"v2x_polyarchy"
],
"version": "v16",
"warnings": [],
"year_from": 2020,
"year_to": null
}Request contract
- Method and path: POST /apis/v1/v-dem-net/democracy/data
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/v-dem-net/democracy/data
{
"operationId": "v-dem-net.democracy.data",
"method": "POST",
"path": "/apis/v1/v-dem-net/democracy/data",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"countries": [
"SWE"
],
"page_size": 5,
"variables": [
"v2x_polyarchy"
],
"year_from": 2020
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"countries": {
"description": "ISO3 codes or V-Dem country_text_id values (ZZB, PSG, SML, XKX, DDR, VDR, YMD, PSB are V-Dem-only).",
"items": {
"type": "string"
},
"type": "array"
},
"cursor": {
"description": "Opaque cursor from a previous page's next_cursor (format o<offset>). null or omitted starts at the first page.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"include_uncertainty": {
"description": "include_uncertainty",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page_size": {
"default": 100,
"description": "page_size\n\nProvider reference: minimum 1; maximum 2000; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2000,
"min": 1
}
},
"variables": {
"description": "Variable tags, e.g. v2x_polyarchy.",
"items": {
"type": "string"
},
"type": "array"
},
"version": {
"default": "v16",
"description": "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}$.\n\nProvider reference: default \"v16\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"year_from": {
"description": "year_from\n\nProvider reference: minimum 1789; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1789
}
},
"year_to": {
"description": "year_to\n\nProvider reference: minimum 1789; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1789
}
}
},
"required": [
"countries",
"variables"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
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.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
citation | string | |
complete | boolean | |
count | number | |
countries | string[] | |
function | string | |
include_uncertainty | boolean | |
license | string | |
license_url | string | |
next_cursor | string | |
observed_at_ms | number | |
offset | number | |
records | object[] | |
retrieved_at | string | RFC 3339 UTC time of retrieval. |
schema_version | string | |
source_release_date | string | |
source_updated_at | object | V-Dem publishes a release month only; never copied from retrieval time. |
source_url | string | |
source_urls | string[] | |
source_version | string | |
total | number | |
variables | string[] | |
version | string | |
warnings | string[] | |
year_from | number | |
year_to | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.