# U.S. Macro, CPI Inflation, Mortgage Rates & Fed SOFR API (`mintspread/us-macro-inflation-radar`) Actor

Extract U.S. macroeconomic indicators including CPI inflation, mortgage rates, Treasury yields, and Fed SOFR directly from official Federal Reserve and BLS feeds.

- **URL**: https://apify.com/mintspread/us-macro-inflation-radar.md
- **Developed by:** [Thomas McCluskey](https://apify.com/mintspread) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 extracted u.s. macro indicator

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## U.S. Macro, CPI Inflation, Mortgage Rates & Fed SOFR API (Official FRED / NY Fed / BLS + MCP)

Extract live U.S. macroeconomic benchmarks with **auto-computed Year-over-Year (YoY %) and Period-over-Period changes** directly from official **Federal Reserve (FRED)**, **Federal Reserve Bank of New York (SOFR / EFFR / OBFR)**, and **Bureau of Labor Statistics (BLS)** endpoints.

Built by **[MintSpread](https://mintspread.com)** — zero API keys, zero proxies, clean typed JSON snapshots or flat time series, and **MCP-ready** for finance, real estate, and macro AI agents.

***

### Included Official U.S. Macro Feeds

- **Inflation:** Headline CPI (`CPIAUCSL`), Core CPI (`CPILFESL`), Headline PCE (`PCEPI`), Core PCE (`PCEPILFE`) — with automatic YoY inflation %!
- **Labor & GDP:** Unemployment Rate (`UNRATE`), Total Nonfarm Payrolls (`PAYEMS`), Initial Jobless Claims (`ICSA`), Real GDP (`GDPC1`).
- **Interest Rates & Yield Curve:** Effective Fed Funds (`FEDFUNDS`), 10-Year & 2-Year Treasury Constant Maturity (`DGS10`, `DGS2`), 10Y-2Y Recession Spread (`T10Y2Y`), plus live **NY Fed SOFR, 30/90/180-day SOFR Averages, EFFR & Fed Target Range, and OBFR**.
- **Mortgage & Housing:** Freddie Mac 30-Year Fixed Mortgage (`MORTGAGE30US`), 15-Year Fixed Mortgage (`MORTGAGE15US`), S\&P Case-Shiller U.S. Home Price Index (`CSUSHPINSA`).
- **Unlimited Custom Series:** Pass any FRED series ID (`VIXCLS`, `M2SL`, `DCOILWTICO`, `UMCSENT`, `RSAFS`) or BLS series ID (`CUUR0000SA0`, `LNS14000000`).

### Connect via MCP Server (Claude Desktop / Cursor / Windsurf)

```json
{
  "mcpServers": {
    "apify-us-macro": {
      "url": "https://mcp.apify.com/?actors=mintspread/us-macro-inflation-radar",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Example Input

```json
{
  "categories": ["inflation", "labor", "rates", "housing"],
  "includeNyFedRates": true,
  "outputMode": "snapshot",
  "historyPoints": 12
}
```

### Example Output Record (Snapshot Mode)

```json
{
  "recordType": "macro_snapshot",
  "indicatorId": "MORTGAGE30US",
  "name": "30-Year Fixed Rate Mortgage Average (Freddie Mac PMMS)",
  "category": "housing",
  "source": "FRED (Federal Reserve Bank of St. Louis)",
  "frequency": "Weekly",
  "units": "Percent",
  "latestDate": "2026-11-25",
  "latestValue": 7.21,
  "previousDate": "2026-11-19",
  "previousValue": 7.28,
  "periodChange": -0.07,
  "yoyChange": 0.4,
  "yoyChangePct": 5.8737
}
```

### Pricing

Simple **Pay-per-event** pricing (**$0.003 per extracted indicator/observation** / `$3.00 per 1,000 records`) with **free platform compute** — zero monthly rental fees.

*Compare live yields & real-estate underwriting tools at [MintSpread.com](https://mintspread.com).*

# Actor input Schema

## `categories` (type: `array`):

Built-in categories to include: 'inflation' (CPI, Core CPI, PCE, Core PCE), 'labor' (Unemployment, Payrolls, Jobless Claims, Real GDP), 'rates' (Fed Funds, 10Y/2Y Treasury, 10Y-2Y Spread, NY Fed SOFR/EFFR), 'housing' (30Y & 15Y Mortgage Rates, Case-Shiller Home Prices).

## `customFredSeries` (type: `array`):

Pass any official FRED series IDs (e.g., 'RSAFS', 'M2SL', 'VIXCLS', 'DCOILWTICO', 'UMCSENT') to extract alongside or instead of built-in categories.

## `customBlsSeries` (type: `array`):

Optional official Bureau of Labor Statistics series IDs (e.g., 'CUUR0000SA0', 'LNS14000000') fetched directly from the BLS Public Data API.

## `includeNyFedRates` (type: `boolean`):

Include live daily SOFR, SOFR 30/90/180-day averages, EFFR (with Fed target range), and OBFR directly from the Federal Reserve Bank of New York API.

## `outputMode` (type: `string`):

'snapshot' outputs 1 rich summary record per indicator (latest value, prior period change, YoY % change, plus recent history array). 'timeseries' outputs 1 flat row per observation date.

## `historyPoints` (type: `integer`):

Number of most recent data points to include in recentHistory (snapshot mode) or output as rows (timeseries mode).

## `sinceDate` (type: `string`):

Filter output observations to dates on or after YYYY-MM-DD (YoY calculations still use earlier baseline data automatically).

## Actor input object example

```json
{
  "categories": [
    "inflation",
    "labor",
    "rates",
    "housing"
  ],
  "customFredSeries": [],
  "customBlsSeries": [],
  "includeNyFedRates": true,
  "outputMode": "snapshot",
  "historyPoints": 12,
  "sinceDate": ""
}
```

# Actor output Schema

## `indicators` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mintspread/us-macro-inflation-radar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("mintspread/us-macro-inflation-radar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call mintspread/us-macro-inflation-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mintspread/us-macro-inflation-radar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KbnsaeUvJOJvZY5tv/builds/wjhQgFumjQoPExfvv/openapi.json
