# SCRIPTMASTERLABS FRED Series Data API

> SCRIPTMASTERLABS FRED Series Data API is a paid API for AI agents from scriptmasterlabs.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Fetches the latest value, metadata, and info for a given FRED economic data series by series ID

## Facts

- Endpoint: GET https://scriptmasterlabs.com/api/fred/series/%7Bseries_id%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-fred-series-data-api-3c66b2a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XnPNK9jq4uuiW8DBOXIMn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scriptmasterlabs-fred-series-data-api-3c66b2a3
```

Example prompt: Can you pull the latest data for the FRED series CPIAUCSL — I want to see the current value, units, and frequency?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of the latest value and metadata for a specific FRED economic series without managing a FRED API key. Ideal for agents that need occasional spot checks of macroeconomic indicators (CPI, GDP, unemployment, etc.) on a usage-based cost model via x402 micropayments.

## Known failure modes

- Invalid or unknown series_id returns an error response
- Rate limiting or payment failure (x402) prevents data delivery
- FRED series may be discontinued or have no recent value
- Malformed series_id format (outside allowed pattern) rejected at input validation

## How this service works

Pay-per-call APIs and a read-only provider check for x402 buyers. Inspect evidence and live terms before a caller-controlled payment; accept delivery with proof.

## Output

A JSON object containing the series ID, latest value, date of the value, official title, units, frequency, data source identifier, and a product/status label confirming the data is ready.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "series_id": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_.-]{1,80}$",
       "description": "FRED series identifier mirrored from the URL path for Bazaar discovery Search intents: fred data, economic data, federal reserve, macro data, economic series."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "<source-date>",
  "info": {
   "title": "<official-title>",
   "units": "<official-units>",
   "frequency": "<official-frequency>"
  },
  "value": "<latest-real-value>",
  "source": "fred_public_series_table",
  "status": "ready",
  "product": "SML FRED Series",
  "series_id": "CPIAUCSL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-fred-series-data-api-3c66b2a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scriptmasterlabs.com](https://www.zero.xyz/host/scriptmasterlabs.com/llms.txt)
