---
title: "How to use x402stock with your AI agent | ZeroClick"
url: https://zeroclick.ai/resources/how-to-use-x402stock-with-your-ai-agent
fetched_at: 2026-11-22T09:14:48.431Z
---

# ZeroClick API catalog and pricing

## API reference, endpoint lookup and prices

**[ZeroClick API catalog: endpoints, request parameters, prices and payment methods](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/zeroclick/agent/guide).** Tell the seller advisor what you want to accomplish. It returns the matching operation contract, known prices, authentication prerequisites and concrete next steps. It is read-only: no login, wallet, card or purchase approval is needed to look up an API. It never executes a sale.

Available API services: Agent readiness report, Demo booking.

**Suggested next request:** GET [task guide](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/zeroclick/agent/guide?goal=URL_ENCODED_TASK). Use this URL directly with your web fetch tool; no preliminary document fetch is required. Include known inputs and desired output in the goal. Optional: quantity=API_CALL_COUNT, budgetUsd=TOTAL_USD, requirements=REQUIREMENTS, payment=x402|mpp|card, auth, identity, assertion and access state. Omit unknowns. Do not equate output items with API calls or guess a call count.

For private task details or known request arguments, POST https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/zeroclick/agent/guide with Content-Type: application/json. Example: {"intent":"quote","goal":"YOUR_TASK","purchase":{"budgetUsd":"5.00"}}. Replace the task and budget with known facts; budgetUsd is a string. Include known buyerState, paymentCapabilities and arguments. For execution planning use intent=execute and the authorized constraints. Exact fields: [request schema](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/zeroclick/agent/schema). GET and POST are alternatives, not mandatory stages.

The advisor describes a recommended happy path, not the only allowed path. You may use the API reference, buyer SKILL and your own tools directly, including for catalog operations with failed probes. Missing guidance or an unverified probe is not a policy refusal. The returned requests are documented API calls; fill in the documented inputs. Check usage cost AND minimum cash required against the budget. For needs_input, supply only missing facts. Keep secrets local, and never put credentials or private payloads in URLs. Unknown does not mean absent.

For a human's credit or plan purchase, reuse an existing ZeroClick credential first. If the Link CLI is already installed and signed in for that person, you can use their Link account for identity as well as payment, sharing their email only if they agree: follow [Link identity setup](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/auth.md#link-identity-preview) through issuance, presentation, registration and token exchange. Otherwise register anonymously; no Link setup is needed, and the person can claim the identity later.

Open the checkout URL in a browser: eligible Stripe pages support Link Pay Tokens (LPT) through WebMCP or the documented DOM flow. Follow this storefront's /payment/card.md to verify the same-frame token input and merchant binding before requesting an LPT. Token submission requires payment authorization. If unavailable, privately send the checkout URL to your human to pay.

When the selected route uses hosted checkout, follow [card checkout instructions](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/payment/card.md) before requesting a token. LPT goes only to Stripe, never to the advisor or ZeroClick API. Poll the returned statusUrl before using credit or retrying delivery.

Verify delivery; a payment or HTTP 202 is not completion. For an unexpected result, POST the original input and continuation (version, stepId, outcome and sanitized error/accessId/paymentId). Reconcile uncertain payments or writes before retrying. Use raw HTTP for exact schemas and authenticated execution; do not reconstruct fields omitted by a summarizing web tool.

The human subscription prices on the requested page describe a separate channel. Use the API quote for per-unit pricing, funding minimums and commercial terms; tier names do not prove quality or licensing.

For an alternative documented path, use the [buyer SKILL](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/SKILL.md) or [full direct workflow reference](https://agents.zeroclick.ai/zcj/9jlfweyzn1eo/llms-full.txt). Confirm missing request details from seller documentation, stay within the existing catalog and what your user asked for, and respect actual access and payment requirements.
Terms: by completing a purchase through this endpoint, whether directly or through an AI agent acting on your behalf, you agree to be bound by the platform's buyer terms of service (https://www.zeroclick.ai/legal/buyer-terms-of-service). If the purchase is made by an agent, you represent and warrant that the agent is acting with your authorization, and you agree that the agent's actions, including its acceptance of these terms, are attributed to you and bind you as if you had taken them yourself. Paying a 402 challenge completes the purchase and constitutes your affirmative acceptance of the terms linked above. The link travels in every payment challenge and receipt as `terms`.

# How to use x402stock with your AI agent

**Published:** October 12, 2026 · 11 min read

x402stock gives your AI agent market and economic data, starting at $0.01 per request. That includes US stock prices, Treasury yields and other macro series, SEC filings, and more. x402stock sells through ZeroClick. Your agent sends a normal request to the [x402stock storefront](https://agents.x402stock.xyz) with a free agent credential, pays that one request in USDC over x402 or MPP, and reads back JSON.

**Contents**
- [What x402stock is](#what-x402stock-is)
- [What agents use x402stock for](#what-agents-use-x402stock-for)
- [Prices](#prices)
- [How to buy and call x402stock from your agent](#how-to-buy-and-call-x402stock-from-your-agent)
- [Example requests](#example-requests)
- [If your agent has no wallet](#if-your-agent-has-no-wallet)
- [What to know](#what-to-know)
- [Frequently asked questions](#frequently-asked-questions)

**In short**
- Send requests to `https://agents.x402stock.xyz` with x402stock's own paths, such as `/api/v1/quote/{ticker}`, and pay the priced 402 that comes back.
- Most single lookups cost one or two cents. A stock quote and the Treasury yield curve each cost $0.01.
- Stock quotes are currently delayed, not real time. Read `is_delayed`, `delayed_by`, and `as_of` before your agent uses a price.
- For steady volume, buy prepaid Credits from $0.50. An agent without a wallet can create one at no cost or hand a card checkout to a person.

## What x402stock is

x402stock is a market and economic data API built for autonomous agents. An agent needs no x402stock account or API key, only a free agent credential and a wallet. It calls an endpoint, pays a few cents, and gets JSON back. The catalog spans US stocks, ETFs and options, currencies, crypto including on-chain perpetual futures, energy commodities, US and global macro, SEC EDGAR filings, congressional trades, and market sentiment. See the full range at [x402stock.xyz](https://x402stock.xyz/).

x402stock was built to be called by autonomous agents, and the payment protocol is in its name. Market data suits that model well. A research agent checking a filing or a monitor watching rates needs a small, priced answer right away, with no time to negotiate a data contract. The partnership is described in [x402stock × ZeroClick: market data built for the agentic web](https://zeroclick.ai/blog/x402stock-market-data-built-for-the-agentic-web).

An agent storefront is the machine-readable version of a business. It is a URL where an agent reads the catalog, the live prices, and the payment steps, then buys without anyone filling in a form. It sits in front of x402stock's API as a transparent proxy that handles payment, identity, and forwarding. For how storefronts work, see [What is an agent storefront?](https://zeroclick.ai/resources/what-is-an-agent-storefront)

## What agents use x402stock for

The storefront groups well over a hundred operations into more than a dozen services. Common jobs, each matched to the call that answers it:

| Job your agent is given | Service | Call | Price |
|---|---|---|---|
| Get the latest price of a US stock | Stock Quotes & Market Data | `GET /api/v1/quote/{ticker}` | $0.01 |
| Pull price history for a chart or analysis | Stock Quotes & Market Data | `GET /api/v1/aggregates/{ticker}` | $0.02 |
| Compare two or three stocks on price, P/E, margins and yield | Company Fundamentals & Reference | `GET /api/v1/compare?tickers=AAPL,MSFT` | $0.05 |
| Get the latest US Treasury yield curve | US Macro & Rates | `GET /api/v1/treasury-yields` | $0.01 |
| See the average rate the Treasury pays on its debt | US Macro & Rates | `GET /api/v1/avg-interest-rates` | $0.01 |
| List upcoming CPI, jobs and GDP release dates and the next FOMC meeting | US Macro & Rates | `GET /api/v1/calendar` | $0.02 |
| Pull a company's reported financial facts from SEC XBRL | SEC Filings & Ownership | `GET /api/v1/company-facts/{ticker}` | $0.02 |
| Track one reported figure, such as revenue, across filings | SEC Filings & Ownership | `GET /api/v1/concept/{ticker}?tag=Revenues` | $0.02 |
| Find 13D and 13G stakes filed on a company | SEC Filings & Ownership | `GET /api/v1/beneficial-ownership/{ticker}` | $0.02 |
| List the clinical trials a company sponsors | FDA, Trials & Patents | `GET /api/v1/clinical-trials?sponsor=...` | $0.02 |

The aggregates call takes `multiplier`, `timespan` (minute through year), `from`, and `to`. For one stock, the quote call is cheaper than compare. To find the path for any job, search the [API reference](https://agents.x402stock.xyz/openapi.json) with `https://agents.x402stock.xyz/openapi.json?q={text}`.

## Prices

Every service is pay as you go and billed per request. The Credits plan charges the same per-call rates.

| Service | From | Up to |
|---|---|---|
| Stock Quotes & Market Data | $0.01 | $0.05 |
| US Macro & Rates | $0.01 | $0.05 |
| SEC Filings & Ownership | $0.01 | $0.05 |
| Company Fundamentals & Reference | $0.01 | $0.05 |
| Technical Analysis | $0.01 | $0.03 |
| Global Macro, FX & Commodities | $0.01 | $0.02 |
| Crypto & Perps | $0.01 | $0.03 |
| On-Chain & Tokenized Assets | $0.01 | $0.04 |
| Sentiment & Positioning | $0.01 | $0.04 |
| FDA, Trials & Patents | $0.01 | $0.03 |
| Government & Policy | $0.02 | $0.03 |
| Options & Short Interest | $0.02 | $0.04 |
| Market Archive | $0.02 | $0.03 |
| Screeners, Scores & AI Research | $0.03 | $0.75 |

A morning brief stays small. Quotes on a 20-stock watchlist cost $0.20. Add the yield curve ($0.01) and the release calendar ($0.02), and the brief costs $0.23. A $5 Credits balance covers 500 one-cent calls.

Prices come from the live [price list](https://agents.x402stock.xyz/manifest.json), and every 402 states the exact amount before your agent pays. Read the price at call time rather than caching it.

## How to buy and call x402stock from your agent

1. Point your agent at the storefront's [agent guide](https://agents.x402stock.xyz/llms.txt), which links the catalog, the API reference, and the payment steps.
2. Match the task to a call from the table above. You can also ask the free task guide at `https://agents.x402stock.xyz/zeroclick/agent/guide?goal=URL_ENCODED_TASK`, which needs no wallet and never buys anything.
3. Send the request to the storefront with your agent's credential as `Authorization: Bearer <token>` and no payment header, and expect a priced 402 in reply. Register the credential free once through the [identity guide](https://agents.x402stock.xyz/auth.md). One registration works at every ZeroClick storefront, so reuse one your agent already holds.
4. Check the 402's `payment.amountUsd` against your budget.
5. Pay the challenge from your wallet over x402 (USDC on Base) or MPP (USDC on Tempo).
6. Retry the identical request with the payment proof attached and the same bearer. The payment is bound to the request it priced, so the retry must match it exactly.
7. Read the JSON, checking `as_of` for freshness and, on quotes, `is_delayed` and `delayed_by`.

## Example requests

Send the unpaid request first. This one asks for the latest price of one stock:

```http
GET https://agents.x402stock.xyz/api/v1/quote/AAPL
Authorization: Bearer <access token>
```

Expect a 402 in reply. Its body carries `payment.amountUsd`, the `plan`, and a `protocols` block with a challenge for each rail. The signable challenges also arrive as headers, so a standard x402 or MPP client can settle them without reading the body:

```http
HTTP/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
```

Sign the challenge and resend the same request with the proof and the same bearer. On x402 the payload goes in `x-payment`. On MPP, send `Authorization: Payment <credential>` and move the bearer to `ZC-Agent-Authorization`:

```http
GET https://agents.x402stock.xyz/api/v1/quote/AAPL
Authorization: Bearer <access token>
x-payment: <signed x402 payload>
```

This endpoint was called on 12 October 2026 at 17:35 UTC, paid $0.01 through Zero (ZeroClick's own payment layer for agents), and returned a 200 in 4,224 ms. The answer had this shape, shown here with field types only:

```json
{
  "ticker": "string",
  "data": {
    "price": "number", "change": "number", "change_percent": "number",
    "day": { "open": "number", "high": "number", "low": "number",
             "close": "number", "volume": "number", "vwap": "number" },
    "previous_close": "number", "timestamp": "string",
    "is_delayed": "boolean", "delayed_by": "string"
  },
  "source": "string",
  "as_of": "string",
  "feedback": { "endpoint": "string", "method": "string", "free": "boolean", "note": "string" }
}
```

A macro call needs no ticker. `GET https://agents.x402stock.xyz/api/v1/treasury-yields` was called a few seconds later, paid $0.01 the same way, and returned a 200 in 4,556 ms. The answer carried `source`, `as_of`, `series`, `unit`, and `count`. It also held a list of 14 maturity labels and a `rates` list with one dated entry, whose rates are keyed from `1mo` through `30yr`. Each paid response also carries a `zc-billing` header that reconciles `authorizedUsd` against `chargedUsd`.

## If your agent has no wallet

Your agent has four options. The [payment guide](https://agents.x402stock.xyz/payment.md) covers each one.

- **Create a wallet.** Your agent can set one up itself at no cost, then follow the steps above.
- **Pay a single call by card.** Card pays for a single pay-as-you-go call priced at $0.50 or more, such as the backtest or tearsheet report ($0.50) and the research memo ($0.75). One-cent lookups fall under that floor, so fund them with Credits bought by card instead. The [card instructions](https://agents.x402stock.xyz/payment/card.md) cover the steps, including the hosted checkout for browser agents.
- **Buy Credits.** With the same agent credential, send `POST /plans/{planId}/purchase` with `Authorization: Bearer <token>` and an amount of at least $0.50, such as `{ "amountUsd": "5.000000" }`. Add `checkout: true` to pay by card, or settle the purchase 402 from a wallet. The Credits plan's id and `purchase.url` are in the price list. Calls draw the balance down, and `POST /extend` tops it up.
- **Hand off to a person.** Share any x402stock page as `https://agents.x402stock.xyz/outclick?url={URL-encoded seller page}` so the referral is recorded.

## What to know

**Freshness.** Stock quotes are currently delayed. Each quote response carries `is_delayed` and `delayed_by` to say by how much. Every response carries `as_of`, so your agent can tell how recent its answer is.

**Scope and limits.** Ticker endpoints take a US-listed symbol in uppercase. Compare takes one to three tickers. The release calendar looks up to 90 days ahead. Backtests run on at most five years of daily history.

**What is charged, and when.** Each pay-as-you-go call is one 402 and one charge, and paying it completes the purchase under ZeroClick's buyer terms. A delivered response without a `zc-billing` header billed nothing. Once a paid call reaches x402stock, your agent receives x402stock's own status code and body. A failed delivery on card is refunded in full automatically.

**Errors worth handling.** The [error reference](https://agents.x402stock.xyz/errors.md) lists every code. These are the ones your agent is most likely to meet:

| Error | What to do |
|---|---|
| `payment_request_mismatch` (409) | A payment was reused on a different request. Get a fresh 402 for this request and pay that. |
| `settlement_failed` | Fix the wallet, for example `insufficient_funds`, then start over for a fresh challenge. |
| `payment_consumed` | The payment was already settled. Check the original request's delivery before paying again. |
| `bearer_required` (401) | The call carried no agent credential. Register at the [identity guide](https://agents.x402stock.xyz/auth.md) and retry with the bearer. |
| `usage_exhausted` | The Credits balance ran out. Top up with `POST /extend`. |

## Frequently asked questions

### Does x402stock need an API key for AI agents?

No x402stock account or API key is needed, but every call carries a free agent credential from the [identity guide](https://agents.x402stock.xyz/auth.md), registered once and anonymously if you like. Each request is then paid with a signed payment from your agent's wallet.

### How much does a stock quote cost on x402stock?

A quote from `GET /api/v1/quote/{ticker}` costs $0.01 per request. The quote data is delayed, and the response's `delayed_by` field says by how much.

### Can my agent get Treasury yields without an API key?

Yes. Your agent sends `GET /api/v1/treasury-yields` to the storefront, pays the $0.01 challenge, and receives the latest US Treasury par yield curve from 1 month to 30 years.

### Can my agent pay x402stock with x402?

Yes. The x402 challenge arrives in the `payment-required` header for USDC on Base, and your agent retries the same request with the signed payload in `x-payment`. MPP and card are also accepted.

### Can my agent use x402stock without a crypto wallet?

Yes. It can create a free wallet, buy Credits by card from $0.50, pay calls of $0.50 or more by card, or hand the purchase to a person through a tracked link.

### Do I have to use an AI agent to use x402stock?

No. A person can buy x402stock's All-Access subscription at [x402stock.xyz](https://x402stock.xyz/) for unlimited calls with an `sk_live_` API key, and can use the whole catalog from Claude Code, Cursor, or any MCP client through its MCP server.

---

## More in: Get more done with your agent

- [How to use Firmable with your AI agent](https://zeroclick.ai/resources/how-to-use-firmable-with-your-ai-agent) — Firmable sells company and people data to AI agents through ZeroClick, drawn from prepaid Credits a person buys by card, with no wallet needed.
- [How to use Scalelist with your AI agent](https://zeroclick.ai/resources/how-to-use-scalelist-with-your-ai-agent) — Scalelist sells work emails, mobile numbers and people search to AI agents through ZeroClick, paid from card-bought credit and mostly charged on results.
- [How to use TickerLayer with your AI agent](https://zeroclick.ai/resources/how-to-use-tickerlayer-with-your-ai-agent) — TickerLayer sells market data to AI agents through ZeroClick. A stock quote costs $0.01, paid per request over x402 or MPP with a free agent credential.

[All resources](https://zeroclick.ai/resources#get-more-done)
