<?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: Jere Salmisto</title>
    <description>The latest articles on DEV Community by Jere Salmisto (@itsjere).</description>
    <link>https://dev.to/itsjere</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%2F3940199%2Fcdb6ea76-9059-496f-baad-135a9c3eb9b3.png</url>
      <title>DEV Community: Jere Salmisto</title>
      <link>https://dev.to/itsjere</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/itsjere"/>
    <language>en</language>
    <item>
      <title>I built a free, CC-BY-licensed financial data API — and open-sourced the OpenAPI spec</title>
      <dc:creator>Jere Salmisto</dc:creator>
      <pubDate>Tue, 19 May 2026 11:51:00 +0000</pubDate>
      <link>https://dev.to/itsjere/i-built-a-free-cc-by-licensed-financial-data-api-and-open-sourced-the-openapi-spec-14jf</link>
      <guid>https://dev.to/itsjere/i-built-a-free-cc-by-licensed-financial-data-api-and-open-sourced-the-openapi-spec-14jf</guid>
      <description>&lt;h2&gt;
  
  
  I built a free, CC-BY-licensed financial data API
&lt;/h2&gt;

&lt;p&gt;Most personal-finance APIs are paid, rate-limited behind a credit card, or wrap a single primary source you could hit yourself. I got tired of paying $49/mo for thin wrappers over &lt;a href="https://fred.stlouisfed.org/" rel="noopener noreferrer"&gt;FRED&lt;/a&gt; and &lt;a href="https://www.bls.gov/developers/" rel="noopener noreferrer"&gt;BLS&lt;/a&gt;, so I built one I wished existed.&lt;/p&gt;

&lt;p&gt;It's free. CC BY 4.0. No auth. K-anonymized. Daily refresh at 05:00 UTC. OpenAPI 3.1 spec published.&lt;/p&gt;

&lt;p&gt;Live spec: &lt;a href="https://calcfi.app/api/insights/openapi.json" rel="noopener noreferrer"&gt;https://calcfi.app/api/insights/openapi.json&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://calcfi.app/developers" rel="noopener noreferrer"&gt;https://calcfi.app/developers&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What's in it
&lt;/h2&gt;

&lt;p&gt;Four endpoint families. All read-only. All cite primary sources.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Insights — aggregate calculator-run stats
&lt;/h3&gt;

&lt;p&gt;People run financial calculators on &lt;a href="https://calcfi.app" rel="noopener noreferrer"&gt;calcfi.app&lt;/a&gt;. The aggregates (median tax refund by income bracket, score distributions for affordability, etc.) are exposed as a feed. Every row is k-anonymity safe — buckets with fewer than 10 runs are dropped.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://calcfi.app/api/insights/tax-refund
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use cases: blog charts, journalist research, ML training signals, "what's normal?" benchmarks.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Macro data — FRED, BLS, IRS, Treasury, Freddie Mac passthrough
&lt;/h3&gt;

&lt;p&gt;JSON + CSV history for every series CalcFi tracks. No API key juggling, no per-provider auth.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Freddie Mac Primary Mortgage Market Survey, latest values&lt;/span&gt;
curl https://calcfi.app/api/data/freddie-pmms

&lt;span class="c"&gt;# Full history as CSV&lt;/span&gt;
curl https://calcfi.app/api/data/freddie-pmms/history.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Currently exposes 30+ series: 30Y mortgage rates, CPI, unemployment, Treasury yields, IRS bracket thresholds, etc. Updated daily.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. State maps — salary, tax, mortgage, rent, cost-of-living, affordability
&lt;/h3&gt;

&lt;p&gt;Per-state values for every map on the site. CSV for bulk consumers, JSON for one-off lookups, PNG for blog embeds.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# All states, salary medians&lt;/span&gt;
curl https://calcfi.app/api/maps/salary/csv

&lt;span class="c"&gt;# One state&lt;/span&gt;
curl https://calcfi.app/api/maps/salary/TX

&lt;span class="c"&gt;# Chart image (1200×630, embed-ready)&lt;/span&gt;
https://calcfi.app/api/maps/salary/chart.png

&lt;span class="c"&gt;# Choropleth&lt;/span&gt;
https://calcfi.app/api/maps/salary/map.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The PNGs are intentional — they make it possible to drop a live, daily-refreshed chart into a blog post with a single &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. LLM manifest — discoverable financial data for agents
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;/api/llms/manifest&lt;/code&gt; returns a structured index of every series + its semantic tags. Built so agents can find "30Y mortgage rate" without scraping HTML.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://calcfi.app/api/llms/manifest
curl https://calcfi.app/api/llms/rates
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you're building LLM tooling, this is the part that doesn't exist anywhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is interesting
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Primary-source cited.&lt;/strong&gt; Every value carries &lt;code&gt;source&lt;/code&gt;, &lt;code&gt;source_url&lt;/code&gt;, &lt;code&gt;as_of&lt;/code&gt;. No "trust me bro" numbers. Methodology blocks on every endpoint.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;K-anonymity by default.&lt;/strong&gt; No row exposes individual user data. The aggregation threshold is enforced server-side, not at query time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CC BY 4.0 license.&lt;/strong&gt; Use it in commercial products. Attribution requested (link back to the endpoint URL).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Daily refresh.&lt;/strong&gt; Cron pulls primary sources at 05:00 UTC, validates schema, writes to the read-only store. No stale fixtures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consuming it
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Python
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://calcfi.app/api/data/freddie-pmms&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30Y rate: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;latest&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;rate_30y&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;% as of &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;latest&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;as_of&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  JavaScript / TypeScript
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://calcfi.app/api/insights/tax-refund&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;insights&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Bash + jq
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://calcfi.app/api/maps/affordability/csv &lt;span class="se"&gt;\&lt;/span&gt;
  | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="nt"&gt;-F&lt;/span&gt;, &lt;span class="s1"&gt;'$3 &amp;lt; 30 { print $1, $3 }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  CORS
&lt;/h2&gt;

&lt;p&gt;Full wildcard. &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt; on every endpoint. Hit it from the browser.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;More state-level series (childcare cost, broadband cost, healthcare premiums)&lt;/li&gt;
&lt;li&gt;Webhook subscriptions for series changes (rate cuts, IRS bracket updates)&lt;/li&gt;
&lt;li&gt;Schema.org Dataset markup on every &lt;code&gt;/data/[slug]&lt;/code&gt; page — Google Dataset Search inclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://calcfi.app/api/insights/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Spec: &lt;a href="https://calcfi.app/api/insights/openapi.json" rel="noopener noreferrer"&gt;https://calcfi.app/api/insights/openapi.json&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://calcfi.app/developers" rel="noopener noreferrer"&gt;https://calcfi.app/developers&lt;/a&gt;&lt;br&gt;
Source-tagged data pages: &lt;a href="https://calcfi.app/data" rel="noopener noreferrer"&gt;https://calcfi.app/data&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you find the data useful, the only ask is attribution: link to the endpoint or to &lt;a href="https://calcfi.app/developers" rel="noopener noreferrer"&gt;https://calcfi.app/developers&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by &lt;a href="https://calcfi.app/about" rel="noopener noreferrer"&gt;Jere Salmisto&lt;/a&gt;. Issues + feature requests welcome — drop a comment or hit the API and tell me what's missing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>opensource</category>
      <category>finance</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
