LastLook Data

Financial market data for AI agents. Pay per query via x402 — no accounts, no API keys, no subscriptions.

LastLook Data provides Treasury yields, mortgage rates, benchmark rates, macro indicators, G10 FX rates, energy prices, and derived market signals via a simple REST API. Agents pay USDC per query using the x402 protocol on Base mainnet. Data is sourced from the Federal Reserve (FRED) and the European Central Bank (via Frankfurter).

Authentication

No API key required. All paid endpoints are protected by the x402 payment protocol. When you hit a paid endpoint without payment, the API returns HTTP 402 with a payment payload. Your client completes the x402 flow and retries — the data comes back on the retry.

  1. 1.Request — your agent sends a GET request to any paid endpoint
  2. 2.402 Response — the API returns HTTP 402 with a base64-encoded PAYMENT-REQUIRED header
  3. 3.Pay and Retry — your agent pays via x402 and retries — the API returns the data
curl example
# First request returns 402
curl https://api.lastlookdata.com/api/treasury/current

# After x402 payment, retry with payment header
curl https://api.lastlookdata.com/api/treasury/current \
  -H "X-PAYMENT: <payment_token>"

Common Use Cases

The most frequent queries and the exact endpoints to use.

Use CaseEndpointCost
Current IORB rateGET /api/current?id=IORB$0.01
Current EFFR rateGET /api/current?id=EFFR$0.01
Current 30-yr mortgage rateGET /api/current?id=MORTGAGE30US$0.01
Current 15-yr mortgage rateGET /api/current?id=MORTGAGE15US$0.01
Current Fed funds rateGET /api/current?id=FEDFUNDS$0.01
Current 10-yr Treasury yieldGET /api/current?id=DGS10$0.01
Current 30-yr Treasury yieldGET /api/current?id=DGS30$0.01
Current CPI (inflation)GET /api/current?id=CPIAUCSL$0.01
Current unemployment rateGET /api/current?id=UNRATE$0.01
Current WTI crude oil priceGET /api/current?id=DCOILWTICO$0.01
Current Brent crude priceGET /api/current?id=DCOILBRENTEU$0.01
Current natural gas priceGET /api/current?id=DHHNGSP$0.01
Current gasoline priceGET /api/current?id=GASREGCOVW$0.01
Current EUR/USD rateGET /api/fx/current?pair=EURUSD$0.01
Current yield curve spreadsGET /api/derived/yield-curve$0.03
Current recession signalGET /api/derived/recession$0.03
Fed policy spreadGET /api/derived/policy-spread$0.03
Upcoming economic releasesGET /api/calendar?days=30$0.01
Sahm Rule (series endpoint)GET /api/current?id=SAHMREALTIME$0.01

All current value queries cost $0.01 USDC. Use /api/series/30 for 30-day history ($0.05), /api/series/90 for 90-day history ($0.10), or /api/series/365 for full-year history ($0.25).

Treasury Endpoints

GET /api/treasury/current$0.01 USDC

Returns the most recent 30-year US Treasury constant maturity yield (DGS30). No parameters.

response
{
  "service": "LastLook Data",
  "series": "DGS30 - 30-Year Treasury Constant Maturity Rate",
  "date": "2026-05-09",
  "yield_percent": 4.97,
  "note": "Source: Federal Reserve Bank of St. Louis (FRED)"
}
GET /api/treasury/date$0.01 USDC

Returns the 30-year Treasury yield for a specific date. Business days only.

ParameterTypeRequiredDescription
dstringYesDate in YYYY-MM-DD format
GET /api/treasury/publicFree

Returns the current 30-year Treasury yield. No payment required. Used for previews.

FRED Series Endpoints

Use these endpoints to retrieve current and historical values for any supported FRED series.

GET /api/current$0.01 USDC

Returns the most recent value for any supported FRED series.

ParameterTypeRequiredDescription
idstringYesFRED series ID e.g. IORB, EFFR, MORTGAGE30US, DGS10, FEDFUNDS, CPIAUCSL
response
{
  "service": "LastLook Data",
  "series_id": "IORB",
  "label": "Interest on Reserve Balances",
  "date": "2026-05-09",
  "value": 4.40,
  "note": "Source: Federal Reserve Bank of St. Louis (FRED)"
}
GET /api/date$0.01 USDC

Returns the value for any supported FRED series on a specific date. Business days only.

ParameterTypeRequiredDescription
idstringYesFRED series ID
dstringYesDate in YYYY-MM-DD format
GET /api/series/30$0.05 USDC

Last 30 days of observations for any supported FRED series.

ParameterTypeRequiredDescription
idstringYesFRED series ID
response
{
  "service": "LastLook Data",
  "series_id": "MORTGAGE30US",
  "label": "30-Year Fixed Rate Mortgage Average",
  "days": 30,
  "count": 4,
  "start": "2026-04-10",
  "end": "2026-05-09",
  "observations": [
    { "date": "2026-04-10", "value": 6.82 },
    { "date": "2026-05-09", "value": 6.79 }
  ],
  "note": "Source: Federal Reserve Bank of St. Louis (FRED)"
}
GET /api/series/90$0.10 USDC

Last 90 days of observations. Same response format as /api/series/30.

GET /api/series/365$0.25 USDC

Last 365 days of observations. Same response format as /api/series/30.

Legacy endpoints /api/treasury/current and /api/treasury/date remain available for backward compatibility.

Derived Indicators

Computed and interpreted market signals built on FRED data — yield curve spreads, recession signals, Fed policy stance, and the upcoming economic release calendar.

GET /api/derived/yield-curve$0.03 USDC

Returns 2s10s (10Y minus 2Y) and 3m10y (10Y minus 3-Month T-Bill) Treasury spreads with an inversion signal. No parameters required.

GET /api/derived/recession$0.03 USDC

Real-time Sahm Rule recession indicator. Value >= 0.50 means recession is likely underway. No parameters required.

GET /api/derived/policy-spread$0.03 USDC

Effective Fed funds rate (EFFR) minus interest on reserves (IORB), with plain-English interpretation. No parameters required.

GET /api/calendar$0.01 USDC

Upcoming FRED economic data release dates — CPI, jobs, GDP, Treasury rates, and more.

ParameterTypeRequiredDescription
daysstringNo30, 60, or 90 (default 30)

FX Rate Endpoints

G10 currency pairs sourced from the European Central Bank via Frankfurter. Updates on business days.

GET /api/fx/current$0.01 USDC

Current exchange rate for a G10 currency pair.

ParameterTypeRequiredDescription
pairstringYesCurrency pair e.g. EURUSD, USDJPY, GBPUSD
response
{
  "service": "LastLook Data",
  "pair": "EURUSD",
  "label": "Euro / US Dollar",
  "date": "2026-05-09",
  "rate": 1.1245,
  "base": "EUR",
  "quote": "USD",
  "note": "Source: Frankfurter (European Central Bank)"
}
GET /api/fx/date$0.01 USDC

Returns the exchange rate for a G10 currency pair on a specific date.

ParameterTypeRequiredDescription
pairstringYesCurrency pair e.g. EURUSD, USDJPY
dstringYesDate in YYYY-MM-DD format
response
{
  "service": "LastLook Data",
  "pair": "EURUSD",
  "label": "Euro / US Dollar",
  "date": "2026-05-09",
  "rate": 1.1245,
  "base": "EUR",
  "quote": "USD",
  "note": "Source: Frankfurter (European Central Bank)"
}
GET /api/fx/series$0.05 USDC

Historical daily exchange rates for a G10 currency pair.

ParameterTypeRequiredDescription
pairstringYesCurrency pair e.g. EURUSD
daysstringYes30, 90, or 365

Bundles

Bundle endpoints fetch all constituent series in parallel under a single x402 payment. One payment, multiple series, one structured response with values, computed derived fields, and interpreted signals.

response schema
{
  "service": "LastLook Data",
  "as_of": "2026-05-29",
  "bundle": "rate_environment",
  "series":  { "FEDFUNDS": 4.33, "DGS10": 4.46, ... },
  "derived": { "spread_2s10s": 0.52, "policy_spread": -0.07, ... },
  "signals": { "curve_shape": "Normal (upward sloping)", ... },
  "note": "Source: Federal Reserve Bank of St. Louis (FRED)"
}
GET /api/bundle/rate-environment$0.35 USDC

Series: FEDFUNDS, SOFR, DGS2, DGS5, DGS10, DGS30.
Derived: spread_2s10s, spread_3m10y, policy_spread (EFFR minus IORB).
Signals: curve_shape, policy_stance.

GET /api/bundle/mortgage-pulse$0.40 USDC

Series: MORTGAGE30US, MORTGAGE15US, DGS10, FEDFUNDS, MSPUS, HOUST.
Derived: mbs_spread (30yr mortgage rate minus 10Y Treasury yield).
Signals: rate_trend_30d (rising / falling / flat).

GET /api/bundle/macro$0.50 USDC

Series: GDP, UNRATE, CPIAUCSL, CPILFESL, FEDFUNDS.
Derived: sahm_rule, spread_2s10s.
Signals: cycle_phase (expansion / late cycle / peak / contraction), recession_triggered.

GET /api/bundle/fx-dashboard$0.35 USDC

Series: EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, USDSEK, USDNOK.
Derived: usd_strength_index (avg % change vs G10 basket vs 30 days ago, positive = stronger).
Signals: usd_trend_30d (strengthening / weakening / stable).

GET /api/bundle/energy$0.25 USDC

Series: DCOILWTICO, DCOILBRENTEU, GASREGCOVW, DHHNGSP.
Derived: wti_brent_spread (WTI minus Brent, USD/bbl).
Signals: wti_brent_signal.

GET /api/bundle/context-brief$0.75 USDC

15+ indicators across rates, inflation, employment, FX, and energy. Also returns a pre-formatted natural-language paragraph ready for LLM context injection, plus key FX rates.

example brief
"As of 2026-05-29: The Fed Funds Rate is 4.33%, yield curve at +52bps (normal),
 10Y Treasury at 4.46%, 30Y at 4.97%, CPI at 315.5, unemployment at 4.2%,
 30yr mortgage 6.86% (240bps over 10Y), WTI crude $61.50/bbl, Brent $64.80/bbl,
 EUR/USD 1.1345, USD/JPY 142.5, Sahm Rule 0.37 (below 0.50 threshold)."

MCP Integration

Connect LastLook Data to any MCP-compatible AI assistant.

LastLook Data exposes all endpoints as MCP tools via a public MCP server. Add the config below to your MCP client to get access to all 18 tools with no additional setup.

mcp config
{
  "mcpServers": {
    "lastlook-data": {
      "type": "http",
      "url": "https://mcp.lastlookdata.com/mcp"
    }
  }
}
ToolCostDescription
get_treasury_yield_currentFreeCurrent 30-year Treasury yield (DGS30)
get_treasury_yield_by_date$0.0130-year Treasury yield on a specific date
get_current_value$0.01Most recent value for any FRED series
get_value_by_date$0.01FRED value on a specific date
get_series$0.05+Historical FRED series (30/90/365 days)
get_fx_rate_current$0.01Current G10 FX rate
get_fx_rate_by_date$0.01G10 FX rate on a specific date
get_fx_rate_series$0.05+Historical G10 FX series
get_yield_curve$0.032s10s + 3m10y spreads + inversion signal
get_recession_indicator$0.03Sahm Rule recession indicator
get_policy_spread$0.03EFFR vs IORB spread + interpretation
get_economic_calendar$0.01Upcoming FRED data release dates
get_bundle_rate_environment$0.35Rate environment snapshot bundle
get_bundle_mortgage_pulse$0.40Mortgage market pulse bundle
get_bundle_macro$0.50Macro health snapshot bundle
get_bundle_fx_dashboard$0.35All 9 G10 rates + USD strength index
get_bundle_energy$0.25Energy & commodities bundle
get_bundle_context_brief$0.7515+ indicators + NL paragraph

Payments are handled automatically by the MCP server when an agent has an x402-compatible wallet.

Data Catalog

Treasury Rates — Source: FRED, updates daily

Series IDDescription
DGS3030-Year Treasury Constant Maturity Rate
DGS1010-Year Treasury Constant Maturity Rate
DGS55-Year Treasury Constant Maturity Rate
DGS22-Year Treasury Constant Maturity Rate
DGS1MO1-Month T-Bill Rate

Mortgage & Housing — Source: FRED

Series IDDescriptionFrequency
MORTGAGE30US30-Year Fixed Rate Mortgage AverageWeekly
MORTGAGE15US15-Year Fixed Rate Mortgage AverageWeekly
MSPUSMedian Sales Price of Houses SoldQuarterly
HOUSTHousing StartsMonthly

Benchmark Rates — Source: FRED, updates daily

Series IDDescription
FEDFUNDSFederal Funds Effective Rate
SOFRSecured Overnight Financing Rate
DPRIMEBank Prime Loan Rate
DTB33-Month T-Bill Secondary Market Rate
IORBInterest on Reserve Balances
EFFREffective Federal Funds Rate

Macro Indicators — Source: FRED

Series IDDescriptionFrequency
CPIAUCSLConsumer Price Index, All Urban ConsumersMonthly
CPILFESLCore CPI ex Food & EnergyMonthly
UNRATEUnemployment RateMonthly
SAHMREALTIMEReal-Time Sahm Rule Recession IndicatorMonthly
GDPGross Domestic ProductQuarterly

G10 FX Pairs — Source: European Central Bank, updates daily

EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, USDSEK, USDNOK

Energy Prices — Source: FRED

Series IDDescriptionFrequency
DCOILWTICOWTI Crude Oil PriceDaily
DCOILBRENTEUBrent Crude Oil PriceDaily
GASREGCOVWUS Regular Gasoline PriceWeekly
DHHNGSPHenry Hub Natural Gas PriceDaily