Country indicator history
curl --request GET \
--url https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}import requests
url = "https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "embed_macro_series",
"contractVersion": "v1",
"country": "<string>",
"slug": "<string>",
"name": "<string>",
"indicator": "inflation-rates",
"ticker": "<string>",
"unit": "<string>",
"frequency": "annual",
"source": "World Bank",
"asOf": "<string>",
"stats": {
"min": 123,
"max": 123,
"avg": 123,
"latest": 123,
"previous": 123,
"change": 123
},
"observations": [
{
"period": "<string>",
"value": 123
}
]
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Embed
Country indicator history
Public full-history series and stats for one country indicator.
GET
/
v1
/
embed
/
macro
/
series
/
{iso2}
/
{indicator}
Country indicator history
curl --request GET \
--url https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}import requests
url = "https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/series/{iso2}/{indicator}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "embed_macro_series",
"contractVersion": "v1",
"country": "<string>",
"slug": "<string>",
"name": "<string>",
"indicator": "inflation-rates",
"ticker": "<string>",
"unit": "<string>",
"frequency": "annual",
"source": "World Bank",
"asOf": "<string>",
"stats": {
"min": 123,
"max": 123,
"avg": 123,
"latest": 123,
"previous": 123,
"change": 123
},
"observations": [
{
"period": "<string>",
"value": 123
}
]
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Path Parameters
Response
Successful response