curl --request POST \
--url https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paises": [
"BR"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises"
payload = { "paises": ["BR"] }
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({paises: ['BR']})
};
fetch('https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises', 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/servicodados-ibge-gov-br/official-statistics/paises",
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([
'paises' => [
'BR'
]
]),
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/servicodados-ibge-gov-br/official-statistics/paises"
payload := strings.NewReader("{\n \"paises\": [\n \"BR\"\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/servicodados-ibge-gov-br/official-statistics/paises")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paises\": [\n \"BR\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises")
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 \"paises\": [\n \"BR\"\n ]\n}"
response = http.request(request)
puts response.read_bodyPaises
A country fact sheet or a UN-sourced indicator series (GDP per capita, population, life expectancy…) as IBGE republishes them, for Brazil or any of 193 countries.
curl --request POST \
--url https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paises": [
"BR"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises"
payload = { "paises": ["BR"] }
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({paises: ['BR']})
};
fetch('https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises', 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/servicodados-ibge-gov-br/official-statistics/paises",
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([
'paises' => [
'BR'
]
]),
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/servicodados-ibge-gov-br/official-statistics/paises"
payload := strings.NewReader("{\n \"paises\": [\n \"BR\"\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/servicodados-ibge-gov-br/official-statistics/paises")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paises\": [\n \"BR\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises")
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 \"paises\": [\n \"BR\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/servicodados-ibge-gov-br/official-statistics/paises
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/paises
{
"operationId": "servicodados-ibge-gov-br.official-statistics.paises",
"method": "POST",
"path": "/apis/v1/servicodados-ibge-gov-br/official-statistics/paises",
"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": {
"indicadores": [
77823
],
"paises": [
"BR"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"indicadores": {
"description": "Indicator ids (77819.. 77862; 77823 = GDP per capita). When given, `indicadores` in the output carries the series.",
"items": {
"type": "number"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"lang": {
"description": "EN or ES for translated names; default PT.\n\nProvider reference: allowed values [\"EN\", \"ES\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"EN",
"ES"
]
}
},
"paises": {
"description": "ISO 3166-1 alpha-2 codes (BR, AR, US).",
"items": {
"type": "string"
},
"type": "array"
},
"periodo": {
"description": "Restrict the series to one period (year). Pattern: ^[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"paises"
],
"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 profiles from IBGE Paises (/api/v1/paises/{ISO2|ISO2}): identifiers (M49, ISO alpha-2/3), names (PT/EN/ES), area, location, languages, capital, currency, history; optionally one or more indicator series (/indicadores/{id|id}, e.g. 77823 GDP per capita) for the same countries. Unknown codes are dropped by the source; when none resolves the result is not_found.
The response contains the tool result directly.
The provider identifies items as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
id | object | Country identifiers. |
nome | object | Country names by language. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.