Country macro indicators
curl --request GET \
--url https://api.turos.app/v1/embed/macro/countries/{iso2}import requests
url = "https://api.turos.app/v1/embed/macro/countries/{iso2}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/countries/{iso2}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "embed_macro_country",
"contractVersion": "v1",
"country": "<string>",
"slug": "<string>",
"name": "<string>",
"asOf": "<string>",
"indicators": [
{
"indicator": "inflation-rates",
"ticker": "<string>",
"label": "<string>",
"unit": "<string>",
"latestValue": 123,
"previousValue": 123,
"latestPeriod": "<string>",
"frequency": "annual",
"source": "World Bank"
}
],
"quotes": [
{
"id": "cpi-yoy",
"label": "<string>",
"unit": "<string>",
"latestValue": 123,
"previousValue": 123,
"latestPeriod": "<string>",
"frequency": "annual",
"source": "World Bank",
"periodLabel": "<string>",
"comparabilityNote": "<string>"
}
]
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Embed
Country macro indicators
Public latest values across the macro-map indicators for one country.
GET
/
v1
/
embed
/
macro
/
countries
/
{iso2}
Country macro indicators
curl --request GET \
--url https://api.turos.app/v1/embed/macro/countries/{iso2}import requests
url = "https://api.turos.app/v1/embed/macro/countries/{iso2}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/countries/{iso2}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "embed_macro_country",
"contractVersion": "v1",
"country": "<string>",
"slug": "<string>",
"name": "<string>",
"asOf": "<string>",
"indicators": [
{
"indicator": "inflation-rates",
"ticker": "<string>",
"label": "<string>",
"unit": "<string>",
"latestValue": 123,
"previousValue": 123,
"latestPeriod": "<string>",
"frequency": "annual",
"source": "World Bank"
}
],
"quotes": [
{
"id": "cpi-yoy",
"label": "<string>",
"unit": "<string>",
"latestValue": 123,
"previousValue": 123,
"latestPeriod": "<string>",
"frequency": "annual",
"source": "World Bank",
"periodLabel": "<string>",
"comparabilityNote": "<string>"
}
]
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Response
Successful response