{"id":38516,"date":"2026-01-31T13:28:15","date_gmt":"2026-01-31T12:28:15","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/public-apis-for-monthly-cpi-consumer-price-index-for-all-countries\/"},"modified":"2026-01-31T13:28:15","modified_gmt":"2026-01-31T12:28:15","slug":"public-apis-for-monthly-cpi-consumer-price-index-for-all-countries","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/public-apis-for-monthly-cpi-consumer-price-index-for-all-countries\/","title":{"rendered":"Public APIs For Monthly CPI (Consumer Price Index) For All Countries?"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>Hi everyone,<\/p>\n<p>I\u2019m building a small CLI tool and I\u2019m looking for <strong>public (or at least well-documented) APIs<\/strong> that provide <strong>monthly CPI \/ inflation data<\/strong> for as many countries as possible.<\/p>\n<p><strong>Requirements \/ details:<\/strong><\/p>\n<ul>\n<li>Coverage: ideally <strong>global (all or most countries)<\/strong><\/li>\n<li>Frequency: <strong>monthly<\/strong> (not just annual)<\/li>\n<li>Data type:\n<ul>\n<li>CPI <strong>index level<\/strong> (e.g. 2015 = 100), <em>not only<\/em> inflation % YoY<\/li>\n<li>Headline CPI is fine; bonus if core CPI is also available<\/li>\n<\/ul>\n<\/li>\n<li>Access:\n<ul>\n<li>Public or free tier available<\/li>\n<li>REST \/ JSON preferred<\/li>\n<\/ul>\n<\/li>\n<li>Nice to have:\n<ul>\n<li>Country codes mapping (ISO \/ IMF \/ WB)<\/li>\n<li>Reasonable uptime \/ stability<\/li>\n<li>Historical depth (10\u201320+ years if possible)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>One use case of the CLI tool is to select a country, specify a past year, type a nominal value of budget at that year and contact by API an online provider to retrieve the mentioned information above and compute the real value of that budget at the current time.<\/p>\n<p>Are there <strong>reliable data providers or APIs<\/strong> (public or freemium) that expose <strong>monthly CPI data globally<\/strong>?<\/p>\n<p>Thanks!<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/D3vil0p\"> \/u\/D3vil0p <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1qs046l\/public_apis_for_monthly_cpi_consumer_price_index\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1qs046l\/public_apis_for_monthly_cpi_consumer_price_index\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-38516 jlk' href='javascript:void(0)' data-task='like' data-post_id='38516' data-nonce='bc39e8310e' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-38516 lc'>0<\/span><\/a><\/div><\/div> <div class='status-38516 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Hi everyone, I\u2019m building a small CLI tool and I\u2019m looking for public (or at least well-documented)&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-38516","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/38516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=38516"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/38516\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=38516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=38516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=38516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}