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, crypto prices, company financial fundamentals, 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), the European Central Bank (via Frankfurter), CoinGecko, and SEC EDGAR XBRL.
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.Request — your agent sends a GET request to any paid endpoint
- 2.402 Response — the API returns HTTP 402 with a base64-encoded PAYMENT-REQUIRED header
- 3.Pay and Retry — your agent pays via x402 and retries — the API returns the data
# 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 Case | Endpoint | Cost |
|---|---|---|
| Current IORB rate | GET /api/current?id=IORB | $0.01 |
| Current EFFR rate | GET /api/current?id=EFFR | $0.01 |
| Current 30-yr mortgage rate | GET /api/current?id=MORTGAGE30US | $0.01 |
| Current 15-yr mortgage rate | GET /api/current?id=MORTGAGE15US | $0.01 |
| Current Fed funds rate | GET /api/current?id=FEDFUNDS | $0.01 |
| Current 10-yr Treasury yield | GET /api/current?id=DGS10 | $0.01 |
| Current 30-yr Treasury yield | GET /api/current?id=DGS30 | $0.01 |
| Current CPI (inflation) | GET /api/current?id=CPIAUCSL | $0.01 |
| Current unemployment rate | GET /api/current?id=UNRATE | $0.01 |
| Current WTI crude oil price | GET /api/current?id=DCOILWTICO | $0.01 |
| Current Brent crude price | GET /api/current?id=DCOILBRENTEU | $0.01 |
| Current natural gas price | GET /api/current?id=DHHNGSP | $0.01 |
| Current gasoline price | GET /api/current?id=GASREGCOVW | $0.01 |
| Current EUR/USD rate | GET /api/fx/current?pair=EURUSD | $0.01 |
| Current yield curve spreads | GET /api/derived/yield-curve | $0.03 |
| Current recession signal | GET /api/derived/recession | $0.03 |
| Fed policy spread | GET /api/derived/policy-spread | $0.03 |
| Upcoming economic releases | GET /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 USDCReturns the most recent 30-year US Treasury constant maturity yield (DGS30). No parameters.
{
"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 USDCReturns the 30-year Treasury yield for a specific date. Business days only.
| Parameter | Type | Required | Description |
|---|---|---|---|
| d | string | Yes | Date in YYYY-MM-DD format |
GET /api/treasury/publicFreeReturns 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 USDCReturns the most recent value for any supported FRED series.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | FRED series ID e.g. IORB, EFFR, MORTGAGE30US, DGS10, FEDFUNDS, CPIAUCSL |
{
"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 USDCReturns the value for any supported FRED series on a specific date. Business days only.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | FRED series ID |
| d | string | Yes | Date in YYYY-MM-DD format |
GET /api/series/30$0.05 USDCLast 30 days of observations for any supported FRED series.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | FRED series ID |
{
"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 USDCLast 90 days of observations. Same response format as /api/series/30.
GET /api/series/365$0.25 USDCLast 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 USDCReturns 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 USDCReal-time Sahm Rule recession indicator. Value >= 0.50 means recession is likely underway. No parameters required.
GET /api/derived/policy-spread$0.03 USDCEffective Fed funds rate (EFFR) minus interest on reserves (IORB), with plain-English interpretation. No parameters required.
GET /api/calendar$0.01 USDCUpcoming FRED economic data release dates — CPI, jobs, GDP, Treasury rates, and more.
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | string | No | 30, 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 USDCCurrent exchange rate for a G10 currency pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Yes | Currency pair e.g. EURUSD, USDJPY, GBPUSD |
{
"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 USDCReturns the exchange rate for a G10 currency pair on a specific date.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Yes | Currency pair e.g. EURUSD, USDJPY |
| d | string | Yes | Date in YYYY-MM-DD format |
{
"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 USDCHistorical daily exchange rates for a G10 currency pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Yes | Currency pair e.g. EURUSD |
| days | string | Yes | 30, 90, or 365 |
Crypto Endpoints
Real-time and historical cryptocurrency prices for the top 20 coins by market cap. Sourced from CoinGecko.
GET /api/crypto/price$0.02 USDCCurrent price, 24h % change, market cap, and trading volume for any supported coin.
| Parameter | Type | Required | Description |
|---|---|---|---|
| coin | string | Yes | Coin symbol e.g. BTC, ETH, SOL, BNB, XRP |
{
"service": "LastLook Data",
"coin": "BTC",
"name": "Bitcoin",
"price_usd": 67324.18,
"change_24h_pct": 1.42,
"market_cap_usd": 1329000000000,
"volume_24h_usd": 28400000000,
"note": "Source: CoinGecko"
}GET /api/crypto/history$0.15 USDCHistorical daily closing prices for any supported cryptocurrency.
| Parameter | Type | Required | Description |
|---|---|---|---|
| coin | string | Yes | Coin symbol e.g. BTC, ETH |
| days | string | Yes | 30, 90, or 365 |
Company Fundamentals (SEC EDGAR)
Financial statement data from SEC EDGAR XBRL filings — works with any US-listed public company ticker. Data is sourced directly from EDGAR, not a third-party aggregator.
GET /api/edgar/company$0.75 USDCRevenue, net income, total assets, stockholders equity, and EPS from the most recent 10-K and 10-Q filings.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticker | string | Yes | Any US-listed public ticker e.g. AAPL, MSFT, TSLA, NVDA, JPM |
{
"service": "LastLook Data",
"ticker": "AAPL",
"company": "Apple Inc.",
"cik": "0000320193",
"fundamentals": {
"revenue_usd": 391035000000,
"net_income_usd": 93736000000,
"total_assets_usd": 364980000000,
"stockholders_equity_usd": 56950000000,
"eps_diluted": 6.08
},
"filing": { "form": "10-K", "period_end": "2024-09-28" },
"note": "Source: SEC EDGAR XBRL"
}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.
{
"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 USDCSeries: 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 USDCSeries: 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/refi-signal$0.60 USDCSeries: MORTGAGE30US (365d), MORTGAGE15US (45d), DGS10 (10d), FEDFUNDS (10d).
Derived: week52_high, week52_low, mbs_spread, refi_breakeven_threshold (current_30yr + 0.75).
Signals: rate_environment (favorable / neutral / unfavorable). refi_viable_above: borrower's existing rate must exceed this to justify refi.
Use case: mortgage originators screening borrowers for refi eligibility.
GET /api/bundle/purchase-market$0.60 USDCSeries: MORTGAGE30US (45d), MSPUS (200d), HOUST (90d), FEDFUNDS (10d).
Derived: monthly_payment_estimate (P&I on median-priced home), income_required_28pct_dti (annual), qoq_price_change (%).
Signals: affordability (affordable / stretched / unaffordable), market_trend (rising / falling / flat).
Use case: real-time purchase affordability for mortgage advisors.
GET /api/bundle/macro$0.50 USDCSeries: 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 USDCSeries: 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 USDCSeries: DCOILWTICO, DCOILBRENTEU, GASREGCOVW, DHHNGSP.
Derived: wti_brent_spread (WTI minus Brent, USD/bbl).
Signals: wti_brent_signal.
GET /api/bundle/crypto$0.50 USDCTop 20 cryptocurrencies by market cap in a single call.
Returns: price, 24h change, 7d change, market cap, and volume for BTC, ETH, SOL, BNB, XRP, ADA, AVAX, DOGE, LINK, DOT, and the next 10 by market cap.
Use case: portfolio overview, market screeners, or any agent that needs broad crypto market context without multiple round trips. Source: CoinGecko.
GET /api/bundle/context-brief$0.75 USDC15+ 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.
"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 24 tools with no additional setup.
{
"mcpServers": {
"lastlook-data": {
"type": "http",
"url": "https://mcp.lastlookdata.com/mcp"
}
}
}| Tool | Cost | Description |
|---|---|---|
get_treasury_yield_current | Free | Current 30-year Treasury yield (DGS30) |
get_treasury_yield_by_date | $0.01 | 30-year Treasury yield on a specific date |
get_current_value | $0.01 | Most recent value for any FRED series |
get_value_by_date | $0.01 | FRED value on a specific date |
get_series | $0.05+ | Historical FRED series (30/90/365 days) |
get_fx_rate_current | $0.01 | Current G10 FX rate |
get_fx_rate_by_date | $0.01 | G10 FX rate on a specific date |
get_fx_rate_series | $0.05+ | Historical G10 FX series |
get_yield_curve | $0.03 | 2s10s + 3m10y spreads + inversion signal |
get_recession_indicator | $0.03 | Sahm Rule recession indicator |
get_policy_spread | $0.03 | EFFR vs IORB spread + interpretation |
get_economic_calendar | $0.01 | Upcoming FRED data release dates |
get_bundle_rate_environment | $0.35 | Rate environment snapshot bundle |
get_bundle_mortgage_pulse | $0.40 | Mortgage market pulse bundle |
get_bundle_refi_signal | $0.60 | Refi viability: 52-week range, MBS spread, breakeven threshold |
get_bundle_purchase_market | $0.60 | Purchase affordability: payment, income req, QoQ price change |
get_bundle_macro | $0.50 | Macro health snapshot bundle |
get_bundle_fx_dashboard | $0.35 | All 9 G10 rates + USD strength index |
get_bundle_energy | $0.25 | Energy & commodities bundle |
get_bundle_context_brief | $0.75 | 15+ indicators + NL paragraph |
get_crypto_price | $0.02 | Current crypto price, 24h change, market cap, volume |
get_crypto_history | $0.15 | Historical daily crypto closes (30/90/365 days) |
get_bundle_crypto | $0.50 | Top 20 cryptocurrencies by market cap in one call |
get_edgar_company | $0.75 | Company fundamentals from SEC EDGAR XBRL for any US ticker |
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 ID | Description |
|---|---|
DGS30 | 30-Year Treasury Constant Maturity Rate |
DGS10 | 10-Year Treasury Constant Maturity Rate |
DGS5 | 5-Year Treasury Constant Maturity Rate |
DGS2 | 2-Year Treasury Constant Maturity Rate |
DGS1MO | 1-Month T-Bill Rate |
Mortgage & Housing — Source: FRED
| Series ID | Description | Frequency |
|---|---|---|
MORTGAGE30US | 30-Year Fixed Rate Mortgage Average | Weekly |
MORTGAGE15US | 15-Year Fixed Rate Mortgage Average | Weekly |
MSPUS | Median Sales Price of Houses Sold | Quarterly |
HOUST | Housing Starts | Monthly |
Benchmark Rates — Source: FRED, updates daily
| Series ID | Description |
|---|---|
FEDFUNDS | Federal Funds Effective Rate |
SOFR | Secured Overnight Financing Rate |
DPRIME | Bank Prime Loan Rate |
DTB3 | 3-Month T-Bill Secondary Market Rate |
IORB | Interest on Reserve Balances |
EFFR | Effective Federal Funds Rate |
Macro Indicators — Source: FRED
| Series ID | Description | Frequency |
|---|---|---|
CPIAUCSL | Consumer Price Index, All Urban Consumers | Monthly |
CPILFESL | Core CPI ex Food & Energy | Monthly |
UNRATE | Unemployment Rate | Monthly |
SAHMREALTIME | Real-Time Sahm Rule Recession Indicator | Monthly |
GDP | Gross Domestic Product | Quarterly |
G10 FX Pairs — Source: European Central Bank, updates daily
EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, USDSEK, USDNOK
Energy Prices — Source: FRED
| Series ID | Description | Frequency |
|---|---|---|
DCOILWTICO | WTI Crude Oil Price | Daily |
DCOILBRENTEU | Brent Crude Oil Price | Daily |
GASREGCOVW | US Regular Gasoline Price | Weekly |
DHHNGSP | Henry Hub Natural Gas Price | Daily |
Crypto Coins — Source: CoinGecko, real-time
BTC, ETH, SOL, BNB, XRP, USDT, USDC, ADA, AVAX, DOGE, DOT, MATIC, LINK, LTC, ATOM, UNI, SUI, APT, NEAR, PEPE
Use as ?coin=SYMBOL.
Company Fundamentals — Source: SEC EDGAR XBRL
Any US-listed public company by ticker. Examples: AAPL, MSFT, TSLA, AMZN, NVDA, GOOGL, META, JPM, BAC, WMT, JNJ, XOM, V, MA, UNH, HD, PG, ABBV, MRK, CVX — and thousands more. Use ?ticker=SYMBOL. Data sourced directly from SEC EDGAR XBRL.