<?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: Mario</title>
    <description>The latest articles on DEV Community by Mario (@mario0318).</description>
    <link>https://dev.to/mario0318</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%2F3785932%2Fd0998452-3981-4352-b178-375eb500ded1.png</url>
      <title>DEV Community: Mario</title>
      <link>https://dev.to/mario0318</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mario0318"/>
    <language>en</language>
    <item>
      <title>i was tired of every API having a different JSON shape so i fixed it</title>
      <dc:creator>Mario</dc:creator>
      <pubDate>Mon, 23 Feb 2026 06:26:51 +0000</pubDate>
      <link>https://dev.to/mario0318/i-was-tired-of-every-api-having-a-different-json-shape-so-i-fixed-it-2l3d</link>
      <guid>https://dev.to/mario0318/i-was-tired-of-every-api-having-a-different-json-shape-so-i-fixed-it-2l3d</guid>
      <description>&lt;p&gt;every project i build that pulls in external data ends up with the same problem: the APIs all return different shapes.&lt;/p&gt;

&lt;p&gt;openweathermap gives you &lt;code&gt;main.temp&lt;/code&gt; in kelvin inside a nested object. coingecko gives you &lt;code&gt;current_price&lt;/code&gt; in a flat map. newsapi gives you &lt;code&gt;publishedAt&lt;/code&gt; in one format. the guardian gives you &lt;code&gt;webPublicationDate&lt;/code&gt; in another. you write an adapter for each one, every time, forever.&lt;/p&gt;

&lt;p&gt;i got tired of it. so i built &lt;a href="https://sprime.us" rel="noopener noreferrer"&gt;sprime&lt;/a&gt; — a unified API gateway that normalizes all of this into one consistent JSON schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  what it does
&lt;/h2&gt;

&lt;p&gt;one API key, 15+ endpoints, everything comes back in the same shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"open-meteo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-02-23T..."&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;endpoints available:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;weather (city name or lat/lon, temp unit conversion, enriched mode with UV/sunrise/sunset)&lt;/li&gt;
&lt;li&gt;crypto price, trending coins, market cap rankings, historical sparklines&lt;/li&gt;
&lt;li&gt;news headlines (7 categories, optional sentiment analysis)&lt;/li&gt;
&lt;li&gt;forex rates (ECB data)&lt;/li&gt;
&lt;li&gt;air quality (AQI, PM2.5, ozone)&lt;/li&gt;
&lt;li&gt;geocoding&lt;/li&gt;
&lt;li&gt;IP lookup&lt;/li&gt;
&lt;li&gt;timezone info&lt;/li&gt;
&lt;li&gt;public holidays (100+ countries)&lt;/li&gt;
&lt;li&gt;batch requests (up to 10 in one call)&lt;/li&gt;
&lt;li&gt;webhooks for price/weather/news alerts (Pro)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/context&lt;/code&gt; which pulls weather + crypto + news in a single round trip&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  what it handles for you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;provider failover&lt;/strong&gt;: if the primary source is down, it tries the next one automatically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;caching&lt;/strong&gt;: responses are cached in memory, cache age/TTL exposed in response headers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;consistent errors&lt;/strong&gt;: always &lt;code&gt;{ "error": "..." }&lt;/code&gt;, never an HTML page or stack trace&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;field filtering&lt;/strong&gt;: &lt;code&gt;?fields=temp,windspeed&lt;/code&gt; to reduce payload size&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  pricing
&lt;/h2&gt;

&lt;p&gt;free tier is 500 req/day, no credit card. paid plans start at $5/mo for 5k req/day and 15+ endpoints.&lt;/p&gt;

&lt;p&gt;the whole thing runs on GCP free tier so it stays cheap to operate and i can keep the free plan around indefinitely.&lt;/p&gt;

&lt;h2&gt;
  
  
  try it
&lt;/h2&gt;

&lt;p&gt;live demo on the homepage with no signup: &lt;a href="https://sprime.us" rel="noopener noreferrer"&gt;sprime.us&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;docs: &lt;a href="https://sprime.us/docs.html" rel="noopener noreferrer"&gt;sprime.us/docs.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;would genuinely appreciate feedback on the response schema, the endpoint coverage, or anything that feels off. building this in public and iterating based on what people actually need.&lt;/p&gt;

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