# Script Master Labs x402 Data API — U.S. Federal Data Chat Completions

> Script Master Labs x402 Data API — U.S. Federal Data Chat Completions is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Provides pay-per-call access to U.S. federal government data via a chat completions interface, with micropayments settled in USDC on Base via x402 protocol

## Facts

- Endpoint: POST https://mcp-x402.onrender.com/x402/chat/completions
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-x402-data-api-u-s-federal-data-chat-completions-49d327da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qS0Q9mTAqDr2WNNVSCo8M

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 script-master-labs-x402-data-api-u-s-federal-data-chat-completions-49d327da -d '<json body>'
```

Example prompt: Can you use the Script Master Labs federal data API to look up recent U.S. federal spending figures — send up to 500 tokens in the response and use the default model?

## When to prefer this

Choose this endpoint when you need natural-language query access to U.S. federal government data on a pay-per-call basis without a monthly subscription, and your agent infrastructure supports the x402 micropayment protocol for USDC settlements on Base. It is especially useful for sporadic or low-volume queries where a subscription API would be cost-inefficient.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted returns 402 Payment Required
- Invalid model name returns an error or falls back to default
- Messages array malformed or empty may return a 400 Bad Request
- Rate limiting or server overload on the Render-hosted instance may return 429 or 503
- Max tokens set too low may result in truncated or incomplete answers
- Network timeout if the Render cold-start takes too long on first call

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

A chat completions response containing an AI-generated answer grounded in U.S. federal government data, including the model's reply message, finish reason, and token usage counts. Each call is charged $0.001 USDC settled on Base via the x402 payment protocol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string"
  },
  "messages": {
   "type": "array"
  },
  "max_tokens": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-x402-data-api-u-s-federal-data-chat-completions-49d327da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
