# ScriptMasterLabs Web Extract Credit Pack Purchase

> ScriptMasterLabs Web Extract Credit Pack Purchase is a paid API for AI agents from scriptmasterlabs.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Purchases a 10-credit Web Extract pack from ScriptMasterLabs via x402 pay-per-call, returning a credit token usable for subsequent web extraction API calls.

## Facts

- Endpoint: GET https://scriptmasterlabs.com/api/web/credits?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-web-extract-credit-pack-purchase-87f0257a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TofCI6rJWb9i9Bo1WtMpA

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-web-extract-credit-pack-purchase-87f0257a
```

Example prompt: Buy me a 10-credit SML Web Extract pack so I can start pulling content from URLs — it should cost $0.005 USDC and give me back the credit token I need to make extraction calls.

## When to prefer this

Choose this endpoint when an AI agent needs to acquire web content extraction credits from ScriptMasterLabs specifically, paying micro-amounts in USDC via the x402 protocol. Prefer this over generic web scraping services when the workflow already uses SML's X-SML-WEB-CREDIT token system for subsequent extraction calls, or when the agent needs a verifiable, on-chain pay-per-call credit model rather than a subscription.

## Known failure modes

- Payment not settled — credit_token field shows placeholder '<issued-after-settlement>' if payment hasn't cleared
- Invalid pack parameter — only pack=10 is accepted; other values may return an error
- x402 payment rejected — if the USDC payment fails, no credits are issued
- Network/provider unavailability — endpoint may return non-200 if ScriptMasterLabs service is down
- Insufficient USDC balance — payment step fails before credit issuance

## 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

Returns a JSON object confirming the pack is ready, including: status ('ready'), number of credits issued (10), product name ('SML Web Extract Credit Pack'), the credit token to use in subsequent extraction calls, the header name to pass it in ('X-SML-WEB-CREDIT'), the pack price in USDC (0.005), and the effective per-extract cost (0.0005 USDC).

## 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": {
      "pack": {
       "enum": [
        "10"
       ],
       "type": "string",
       "description": "Fixed Web Extract credit pack size Search intents: web scraping credits, web extraction, agent web access, url reader, llm web."
      }
     },
     "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": {
  "status": "ready",
  "credits": 10,
  "product": "SML Web Extract Credit Pack",
  "credit_token": "<issued-after-settlement>",
  "credit_header": "X-SML-WEB-CREDIT",
  "pack_price_usdc": "0.005",
  "effective_price_usdc_per_successful_extract": "0.0005"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-web-extract-credit-pack-purchase-87f0257a/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)
