5-1 Get Macro Economic Indicators¶
Request¶
| Method | URL |
|---|---|
| GET | https://api.infotrie.com/api/idata/get_macro_economic_indicators |
Send your InfoTrie API key in the X-API-Key header; a console key needs the market_data scope. The legacy AppKey header is refused with a 401.
Parameters¶
| Params | Type | Values |
|---|---|---|
| start_date | Date | First observation date, inclusive, in yyyy-mm-dd format (yyyy/mm/dd is also accepted). Coverage starts on 2018-01-01: an earlier date is moved there. |
| end_date | Date | Last observation date, inclusive, in yyyy-mm-dd format (yyyy/mm/dd is also accepted). Default: yesterday (UTC). |
| ndays | Number (integer) | Used only when start_date is omitted: a window of ndays days ending on end_date, 1 to 3650. Default value = 100. An annual series has one observation a year, so a short window often returns nothing for it. |
| country_code | String | ISO 3 code of the country, exact and case-sensitive match (e.g. AUT). By default all countries are returned. |
| indicator_name | String | Indicator name, exact match (e.g. Population, total). By default all indicators are returned. |
Any other parameter is refused with a 400 that names the accepted ones.