{"openapi":"3.1.0","info":{"title":"Agent Data Hub: Country figures","version":"1.0.0","description":"World Bank indicators per country and a short country brief. No API key. Every answer names source and licence. Full API: https://api.agentdatahub.de/openapi.json","termsOfService":"https://api.agentdatahub.de/nutzungsbedingungen"},"servers":[{"url":"https://api.agentdatahub.de"}],"paths":{"/api/v1/call/wb-indicator":{"get":{"operationId":"countryIndicator","summary":"One World Bank indicator for a country: latest value and yearly history","parameters":[{"name":"indicator","in":"query","required":true,"schema":{"type":"string"},"description":"World Bank WDI code, e.g. SP.POP.TOTL"},{"name":"country","in":"query","required":false,"schema":{"type":"string"},"description":"ISO-2 code, e.g. DE (default DE)"},{"name":"years","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":70},"description":"Most recent years, 1-70 (default 10)"}],"responses":{"200":{"description":"Latest value, change and history with source and licence","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/countries/{code}.json":{"get":{"operationId":"countryBrief","summary":"Head figures of a country (population, GDP, inflation …) with period and source","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"},"description":"ISO-2 code in lower case, e.g. de"}],"responses":{"200":{"description":"Country brief","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown code; the answer lists the valid ones"}}}}}}