curl --request POST \
--url https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"FIN"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel"
payload = { "countries": ["FIN"] }
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: ['FIN']})
};
fetch('https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel', 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/worldhappiness-report/happiness/panel",
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' => [
'FIN'
]
]),
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/worldhappiness-report/happiness/panel"
payload := strings.NewReader("{\n \"countries\": [\n \"FIN\"\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/worldhappiness-report/happiness/panel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"FIN\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel")
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 \"FIN\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"next_cursor": null,
"observed_at_ms": 1789178518688,
"records": [
{
"country": "Finland",
"donated": {
"rank": null,
"unit": "Percentage",
"value": "40.6"
},
"edition": 2026,
"flags": {
"amended": false,
"source_flag": null
},
"freedom": {
"rank": 11,
"unit": "Percentage",
"value": "94.1"
},
"gdp_per_capita": {
"rank": 17,
"unit": "US Dollars ($), purchasing power parity, constant 2017 international dollars",
"value": "55770"
},
"generosity": {
"rank": 46,
"unit": "Percentage",
"value": "40.6"
},
"healthy_life_expectancy": {
"rank": 18,
"unit": "Years",
"value": "69.9"
},
"helped_stranger": {
"rank": null,
"unit": "Percentage",
"value": "55.5"
},
"id": "whr:2026:FIN:2025",
"inequality_sd": {
"rank": 2,
"unit": "Standard Deviation",
"value": "1.46"
},
"iso3": "FIN",
"life_ladder": {
"rank": 1,
"unit": "Score (0–10)",
"value": "7.811"
},
"life_ladder_3yr": {
"rank": 1,
"unit": "Score (0–10)",
"value": "7.764"
},
"negative_affect": {
"rank": 11,
"unit": "Percentage",
"value": "16.5"
},
"perceptions_of_corruption": {
"rank": 2,
"unit": "Percentage",
"value": "21.0"
},
"positive_affect": {
"rank": 39,
"unit": "Percentage",
"value": "72.9"
},
"rank_3yr": 1,
"region": "Western Europe",
"social_support": {
"rank": 9,
"unit": "Percentage",
"value": "93.4"
},
"source_url": "https://data.worldhappiness.report/country/FIN",
"source_vintage": "data.worldhappiness.report dashboard (edition 2026 vintage)",
"volunteered": {
"rank": null,
"unit": "Percentage",
"value": "23.5"
},
"year": 2025
}
],
"retrieved_at": "2026-09-12T02:01:58.688Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://data.worldhappiness.report",
"warnings": []
}Panel
Gallup World Poll country-year panel for up to 10 countries (ISO3) from the dashboard country view: annual life ladder, three-year average, GDP per capita, social support, healthy life expectancy, freedom, generosity, corruption, positive/negative affect, benevolence and inequality, 2005 onwards. Only the current vintage is served; edition, if given, must match it.
curl --request POST \
--url https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"FIN"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel"
payload = { "countries": ["FIN"] }
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: ['FIN']})
};
fetch('https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel', 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/worldhappiness-report/happiness/panel",
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' => [
'FIN'
]
]),
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/worldhappiness-report/happiness/panel"
payload := strings.NewReader("{\n \"countries\": [\n \"FIN\"\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/worldhappiness-report/happiness/panel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"FIN\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel")
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 \"FIN\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"next_cursor": null,
"observed_at_ms": 1789178518688,
"records": [
{
"country": "Finland",
"donated": {
"rank": null,
"unit": "Percentage",
"value": "40.6"
},
"edition": 2026,
"flags": {
"amended": false,
"source_flag": null
},
"freedom": {
"rank": 11,
"unit": "Percentage",
"value": "94.1"
},
"gdp_per_capita": {
"rank": 17,
"unit": "US Dollars ($), purchasing power parity, constant 2017 international dollars",
"value": "55770"
},
"generosity": {
"rank": 46,
"unit": "Percentage",
"value": "40.6"
},
"healthy_life_expectancy": {
"rank": 18,
"unit": "Years",
"value": "69.9"
},
"helped_stranger": {
"rank": null,
"unit": "Percentage",
"value": "55.5"
},
"id": "whr:2026:FIN:2025",
"inequality_sd": {
"rank": 2,
"unit": "Standard Deviation",
"value": "1.46"
},
"iso3": "FIN",
"life_ladder": {
"rank": 1,
"unit": "Score (0–10)",
"value": "7.811"
},
"life_ladder_3yr": {
"rank": 1,
"unit": "Score (0–10)",
"value": "7.764"
},
"negative_affect": {
"rank": 11,
"unit": "Percentage",
"value": "16.5"
},
"perceptions_of_corruption": {
"rank": 2,
"unit": "Percentage",
"value": "21.0"
},
"positive_affect": {
"rank": 39,
"unit": "Percentage",
"value": "72.9"
},
"rank_3yr": 1,
"region": "Western Europe",
"social_support": {
"rank": 9,
"unit": "Percentage",
"value": "93.4"
},
"source_url": "https://data.worldhappiness.report/country/FIN",
"source_vintage": "data.worldhappiness.report dashboard (edition 2026 vintage)",
"volunteered": {
"rank": null,
"unit": "Percentage",
"value": "23.5"
},
"year": 2025
}
],
"retrieved_at": "2026-09-12T02:01:58.688Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://data.worldhappiness.report",
"warnings": []
}Request contract
- Method and path: POST /apis/v1/worldhappiness-report/happiness/panel
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/worldhappiness-report/happiness/panel
{
"operationId": "worldhappiness-report.happiness.panel",
"method": "POST",
"path": "/apis/v1/worldhappiness-report/happiness/panel",
"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": [
"FIN"
],
"year_from": 2025,
"year_to": 2025
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"countries": {
"description": "ISO 3166-1 alpha-3 codes (XKX Kosovo, TWN Taiwan, HKG Hong Kong).",
"items": {
"type": "string"
},
"type": "array"
},
"edition": {
"description": "Optional pin; must equal the dashboard's current vintage (latest data year + 1) or the call fails with not_found.\n\nProvider reference: minimum 2013; maximum 2031.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2031,
"min": 2013
}
},
"variables": {
"description": "Subset of variables to include; life_ladder is always included. Omit for all.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"year_from": {
"description": "year_from\n\nProvider reference: minimum 2005; maximum 2030.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2030,
"min": 2005
}
},
"year_to": {
"description": "year_to\n\nProvider reference: minimum 2005; maximum 2030.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2030,
"min": 2005
}
}
},
"required": [
"countries"
],
"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
Gallup World Poll country-year panel for up to 10 countries (ISO3) from the dashboard country view: annual life ladder, three-year average, GDP per capita, social support, healthy life expectancy, freedom, generosity, corruption, positive/negative affect, benevolence and inequality, 2005 onwards. Only the current vintage is served; edition, if given, must match it.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
complete | boolean | true when every requested source call succeeded; false when a partial source failure left some fields null (see warnings). Not a statement about remaining pages. |
count | number | |
next_cursor | string | |
observed_at_ms | number | |
records | object[] | |
retrieved_at | string | RFC 3339 UTC, millisecond precision. |
schema_version | string | |
source_updated_at | object | The dashboard exposes no last-modified metadata; always null rather than the retrieval time. |
source_url | string | |
warnings | string[] |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.