<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Statistics of the World</title>
    <description>The latest articles on DEV Community by Statistics of the World (@sotwdata).</description>
    <link>https://dev.to/sotwdata</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3850211%2F20f49eac-920f-492b-bf0f-05f116e193ba.png</url>
      <title>DEV Community: Statistics of the World</title>
      <link>https://dev.to/sotwdata</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sotwdata"/>
    <language>en</language>
    <item>
      <title>Free API for Global Economic Data — GDP, Population, Inflation for 218 Countries</title>
      <dc:creator>Statistics of the World</dc:creator>
      <pubDate>Sun, 05 Apr 2026 17:15:38 +0000</pubDate>
      <link>https://dev.to/sotwdata/free-api-for-global-economic-data-gdp-population-inflation-for-218-countries-41b8</link>
      <guid>https://dev.to/sotwdata/free-api-for-global-economic-data-gdp-population-inflation-for-218-countries-41b8</guid>
      <description>&lt;p&gt;I built a free REST API that provides economic data for every country in the world. No API key required for basic usage. Here's how it works and why I built it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;If you've ever tried to get GDP, population, or inflation data programmatically, you know the pain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;World Bank API&lt;/strong&gt; — works, but complex query syntax and XML responses&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IMF API&lt;/strong&gt; — even more complex, poorly documented&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trading Economics&lt;/strong&gt; — paywalled ($50+/month)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FRED&lt;/strong&gt; — great for US data, but limited international coverage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted a single endpoint that returns clean JSON for any country, any indicator, with zero authentication.&lt;/p&gt;

&lt;h2&gt;
  
  
  The API
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Base URL:&lt;/strong&gt; &lt;code&gt;https://statisticsoftheworld.com/api/v2&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Get all indicators for a country
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://statisticsoftheworld.com/api/v2/country/USA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns GDP, population, inflation, unemployment, government debt, life expectancy, and 440+ more indicators — all in one call.&lt;/p&gt;

&lt;h3&gt;
  
  
  Get one indicator for all countries (rankings)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://statisticsoftheworld.com/api/v2/indicator/IMF.NGDPD
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns GDP for all 218 countries, sorted by value. Perfect for building rankings or visualizations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Historical data
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://statisticsoftheworld.com/api/v2/history?indicator&lt;span class="o"&gt;=&lt;/span&gt;IMF.NGDPD&amp;amp;country&lt;span class="o"&gt;=&lt;/span&gt;USA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns yearly GDP data for the US going back to 1980.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Sources
&lt;/h2&gt;

&lt;p&gt;All data comes from official international organizations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IMF World Economic Outlook&lt;/strong&gt; — GDP, inflation, unemployment, government debt (193 countries)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;World Bank WDI&lt;/strong&gt; — 300+ development indicators (health, education, environment)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WHO&lt;/strong&gt; — Health indicators (life expectancy, mortality rates)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FRED&lt;/strong&gt; — US economic time series&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;United Nations&lt;/strong&gt; — Population, trade statistics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data is updated weekly as new releases become available.&lt;/p&gt;

&lt;h2&gt;
  
  
  No Auth, No Limits (almost)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No API key required&lt;/strong&gt; for up to 100 requests/day&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free API key&lt;/strong&gt; available for 1,000 requests/day (just sign up)&lt;/li&gt;
&lt;li&gt;All responses are JSON&lt;/li&gt;
&lt;li&gt;CORS enabled — works directly from the browser&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Use Cases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;📊 Build data dashboards&lt;/li&gt;
&lt;li&gt;📈 Economic research and analysis&lt;/li&gt;
&lt;li&gt;🗺️ Country comparison tools&lt;/li&gt;
&lt;li&gt;📱 Mobile apps with global economic data&lt;/li&gt;
&lt;li&gt;🤖 Feed LLMs with structured economic context&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;API Docs:&lt;/strong&gt; &lt;a href="https://statisticsoftheworld.com/api-docs" rel="noopener noreferrer"&gt;statisticsoftheworld.com/api-docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive site:&lt;/strong&gt; &lt;a href="https://statisticsoftheworld.com" rel="noopener noreferrer"&gt;statisticsoftheworld.com&lt;/a&gt; — browse 218 countries with charts, rankings, and comparisons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example:&lt;/strong&gt; &lt;a href="https://statisticsoftheworld.com/us-economy" rel="noopener noreferrer"&gt;US Economic Data&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full site includes interactive charts, country comparisons, ranking tables, and a 2026 economic snapshot report — all free.&lt;/p&gt;

&lt;p&gt;Would love feedback from anyone working with economic data. What indicators or features would be most useful for your projects?&lt;/p&gt;

</description>
      <category>api</category>
    </item>
    <item>
      <title>I built a free alternative to Bloomberg's data API with 490+ economic indicators</title>
      <dc:creator>Statistics of the World</dc:creator>
      <pubDate>Mon, 30 Mar 2026 00:09:01 +0000</pubDate>
      <link>https://dev.to/sotwdata/i-built-a-free-alternative-to-bloombergs-data-api-with-490-economic-indicators-27nb</link>
      <guid>https://dev.to/sotwdata/i-built-a-free-alternative-to-bloombergs-data-api-with-490-economic-indicators-27nb</guid>
      <description>&lt;p&gt;I'm an economist who got tired of paying for Bloomberg Terminal access just to look up GDP data. So I built &lt;a href="https://statisticsoftheworld.com" rel="noopener noreferrer"&gt;Statistics of the World&lt;/a&gt; — a free platform with 490+ economic indicators for 218 countries, with a free REST API.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;If you've ever tried to programmatically access global economic data, you know the pain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bloomberg Terminal&lt;/strong&gt;: $24,000/year&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refinitiv/LSEG&lt;/strong&gt;: $22,000/year&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FRED API&lt;/strong&gt;: Free but US-only&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;World Bank API&lt;/strong&gt;: Free but slow, limited indicators, XML responses&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IMF API&lt;/strong&gt;: Exists but documentation is... an experience&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted one place where I could &lt;code&gt;curl&lt;/code&gt; GDP, inflation, trade data, stock prices, and commodity prices — for any country — without paying thousands or parsing XML.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://statisticsoftheworld.com" rel="noopener noreferrer"&gt;Statistics of the World&lt;/a&gt; aggregates data from 6 sources into a single REST API:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IMF&lt;/strong&gt; — World Economic Outlook, International Financial Statistics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;World Bank&lt;/strong&gt; — World Development Indicators (490+ indicators)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FRED&lt;/strong&gt; — US economic data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Yahoo Finance&lt;/strong&gt; — Real-time stock quotes, commodities, crypto&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ECB&lt;/strong&gt; — Exchange rates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alpha Vantage&lt;/strong&gt; — Market data&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Quick API Examples
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# GDP for all countries&lt;/span&gt;
curl https://statisticsoftheworld.com/api/v2/indicators/NY.GDP.MKTP.CD

&lt;span class="c"&gt;# All indicators for Canada&lt;/span&gt;
curl https://statisticsoftheworld.com/api/v2/countries/CAN

&lt;span class="c"&gt;# Live market quotes&lt;/span&gt;
curl https://statisticsoftheworld.com/api/v2/markets/quotes

&lt;span class="c"&gt;# Search for any indicator&lt;/span&gt;
curl https://statisticsoftheworld.com/api/v2/search?q&lt;span class="o"&gt;=&lt;/span&gt;unemployment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The free tier gives you 100 requests/day — enough for most research and side projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 16&lt;/strong&gt; with React 19&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase&lt;/strong&gt; (PostgreSQL) for the database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python ETL pipeline&lt;/strong&gt; — 49 cron jobs pulling data from all sources&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coolify&lt;/strong&gt; on a $5.59/mo Hetzner VPS (replaced $45/mo Vercel + GitHub Actions)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stripe&lt;/strong&gt; for paid API tiers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Beyond the API
&lt;/h2&gt;

&lt;p&gt;The site also has interactive features that I haven't seen elsewhere in one place:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Heatmap&lt;/strong&gt;: Compare any indicator across all countries visually&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scatter plots&lt;/strong&gt;: Plot any two indicators against each other (GDP vs. life expectancy, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Country comparisons&lt;/strong&gt;: Side-by-side economic profiles&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Economic calendar&lt;/strong&gt;: Upcoming data releases with AI-powered actuals&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credit ratings&lt;/strong&gt;: Sovereign ratings from all major agencies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prediction markets&lt;/strong&gt;: Polymarket integration for economic events&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP endpoint&lt;/strong&gt;: For AI agents that need economic context&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;I'm working on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Historical time series charts per country&lt;/li&gt;
&lt;li&gt;Webhook alerts when indicators update&lt;/li&gt;
&lt;li&gt;An OpenAPI spec for better developer tooling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you work with economic data, I'd love feedback. The API is free, no credit card required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it&lt;/strong&gt;: &lt;a href="https://statisticsoftheworld.com" rel="noopener noreferrer"&gt;statisticsoftheworld.com&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;API docs&lt;/strong&gt;: &lt;a href="https://statisticsoftheworld.com/ai" rel="noopener noreferrer"&gt;statisticsoftheworld.com/ai&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/dregon03/statisticsoftheworld" rel="noopener noreferrer"&gt;github.com/dregon03/statisticsoftheworld&lt;/a&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
