
i was tired of every API having a different JSON shape so i fixed it
every project i build that pulls in external data ends up with the same problem: the APIs all return different shapes. openweathermap gives you main.temp in kelvin inside a nested object. coingecko gives you current_price in a flat map. newsapi gives you publishedAt in one format. the guardian gives you webPublicationDate in another. you write an adapter for each one, every time, forever. i got tired of it. so i built sprime — a unified API gateway that normalizes all of this into one consistent JSON schema. what it does one API key, 15+ endpoints, everything comes back in the same shape: { "status" : "success" , "data" : { ... }, "source" : "open-meteo" , "timestamp" : "2026-02-23T..." } endpoints available: weather (city name or lat/lon, temp unit conversion, enriched mode with UV/sunrise/sunset) crypto price, trending coins, market cap rankings, historical sparklines news headlines (7 categories, optional sentiment analysis) forex rates (ECB data) air quality (AQI, PM2.5, ozone) geo
Continue reading on Dev.to Webdev
Opens in a new tab

