# SCRIPTMASTERLABS Market Snapshot API

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

Returns a real-time US equity market snapshot including current quote price and recent daily OHLCV bars for a given ticker symbol, paid per call via x402.

## Facts

- Endpoint: GET https://scriptmasterlabs.com/api/market/snapshot?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-market-snapshot-api-c0ba1781
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NUpMLJYTwaxK_mCQQyoWu

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-market-snapshot-api-c0ba1781
```

Example prompt: What's the current price of SPY along with the last 15 daily OHLCV bars?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-subscription US equity market snapshot with both a current quote and recent daily OHLCV bars in a single call, especially in x402-compatible agent workflows where micropayment per query is preferred over a monthly API key subscription.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error or empty result
- Bars parameter outside the 10-30 range may be rejected or clamped
- Payment not accepted results in HTTP 402 and no data returned
- Live provider outage may cause stale or unavailable data
- Malformed symbol (not matching ^[A-Z0-9.]{1,10}$) returns a schema validation error

## 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 ticker symbol, current quote price with live provider name, product name ('SML Market Snapshot'), a status field, and an array of daily OHLCV bars each with open, high, low, close, volume, timestamp, and source provider.

## 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": [
      "symbol"
     ],
     "properties": {
      "bars": {
       "type": "string",
       "description": "Number of recent daily OHLCV bars, 10-30 Search intents: market snapshot, stock quote, ohlcv, price bars, equity market data."
      },
      "symbol": {
       "type": "string",
       "pattern": "^[A-Z0-9.]{1,10}$",
       "description": "US equity ticker symbol Search intents: market snapshot, stock quote, ohlcv, price bars, equity market data."
      }
     },
     "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": {
  "quote": {
   "price": 0,
   "provider": "<live-provider>"
  },
  "status": "ready",
  "symbol": "SPY",
  "product": "SML Market Snapshot",
  "daily_bars": [
   {
    "low": 0,
    "high": 0,
    "open": 0,
    "time": "<provider-time>",
    "close": 0,
    "source": "<provider>",
    "volume": 0
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-market-snapshot-api-c0ba1781/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)
