# Can AI agents buy stock market data from x402stock?

Yes: an AI agent can buy x402stock's market and economic data one request at a time with a free agent credential, not an account or API key, and a stock quote costs $0.01. Each call answers with a 402, the price quote, which you pay over x402 or MPP in USDC. Calls priced from $0.50 can also be paid by card, prepaid Credits suit steady volume, and the [buyer skill](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/SKILL.md) is where to start.

## At a glance

- **Example endpoint:** `GET https://agents.x402stock.xyz/zcj/v18fbbwycj8e/api/v1/quote/{ticker}`
- **Price:** $0.01 per quote. Every other operation carries its own price in the API reference and the catalog.
- **Payment:** USDC on every call, over x402 on Base or MPP on Tempo. Calls priced at $0.50 or more can also be paid by card.
- **Credential:** an agent credential on every call, paid retries included, sent as `Authorization: Bearer <token>`, or as `ZC-Agent-Authorization: Bearer <token>` beside an MPP payment. Registering one at [auth.md](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/auth.md) is free and can be anonymous.
- **Steady volume:** prepaid Credits from $0.50. Buying them uses the same credential.
- **Response:** JSON with `ticker`, `data`, `source` and `as_of`.
- **Coverage:** US stocks, ETFs and options, forex, crypto and perps, energy, US and global macro, SEC filings and sentiment.
- **Full purchase flow:** [buyer skill](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/SKILL.md)

## Buy one stock quote

1. Send the request:

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

   The storefront answers with a 402 that states the exact `payment.amountUsd`. Nothing is charged at this step.
2. Pay the 402 and retry, as the [buyer skill](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/SKILL.md) describes. The example request paid $0.01.
3. Read the response. It is a JSON object with `ticker`, `data`, `source`, `as_of` and `feedback`.
   - `data` holds `price`, `change`, `change_percent`, `previous_close`, `timestamp`, `is_delayed` and `delayed_by`.
   - It also holds a `day` bar with `open`, `high`, `low`, `close`, `volume` and `vwap`.

Every other operation is bought the same way. To find one, use the free search `GET https://agents.x402stock.xyz/zcj/v18fbbwycj8e/openapi.json?q={short task}&page=1`. It returns the operation's parameters and its live price.

## Pick a way to pay

| Situation | Path |
| --- | --- |
| Wallet with USDC | x402 or MPP on each call, with the bearer. |
| Card, for a call priced at $0.50 or more | Card on that call, with the bearer. |
| Card for smaller calls, or steady volume | Credits from $0.50 ($0.50 by card), bought at `/plans/{planId}/purchase` with a bearer credential. The plan id is in the [catalog](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/manifest.json). Calls draw down the balance. |
| No payment client yet | [How to pay](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/payment.md) lists the setup options. |

The [buyer skill](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/SKILL.md) has the steps for each path.

## When you are charged

- Nothing is charged until you pay a 402. Reading the API reference, the search results and the catalog is free.
- Each pay-as-you-go call is its own purchase: one 402 and one payment.
- A card call under $0.50 is rejected. It is not rounded up, and separate calls do not add up toward the floor.
- Paying a 402 accepts the platform's buyer terms.
- A paid response carries a `zc-billing` header that states what was charged. A delivered response without that header billed nothing.
- A response funded from Credits reports `chargedUsd` and `remainingCreditUsd`.
- Any call sent without a bearer gets `401 bearer_required` before any price is quoted.

## Frequently asked questions

### Does x402stock need an account or API key?

No x402stock account or API key, but every call carries a free agent credential, pay-as-you-go included. Anonymous registration takes one call, with no email and no human step, as described in [identity](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/auth.md), and each call is then settled by its own signed payment.

### How much does x402stock market data cost per request?

Each operation has its own price. For example, a stock quote is $0.01. The 402 states the exact amount before you pay anything. The [catalog](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/manifest.json) lists every live price.

### Can I pay with a card instead of USDC?

Yes. A pay-as-you-go call priced at $0.50 or more takes a card directly. For cheaper calls, buy Credits by card from $0.50 through hosted checkout, and each call then draws down the balance. Funds you do not use stay as credit.

### Are the quotes real-time or delayed?

Each quote response reports its own timing in the `is_delayed` and `delayed_by` fields, alongside `timestamp` and `as_of`.

### What happens if a payment does not settle?

The call returns `settlement_failed`, and `settlementReason` gives the cause, such as `insufficient_funds`. Fix the wallet, then send the request again from the start to get a fresh 402. The [error reference](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/errors.md) covers every other code.

## Keep reading

- [Buyer skill](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/SKILL.md): the full purchase and recovery flow
- [How to pay](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/payment.md): x402, MPP and card
- [Services and pricing](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/services): the services and their prices
- [Identity](https://agents.x402stock.xyz/zcj/v18fbbwycj8e/auth.md): the bearer credential every call carries

---

Updated 2026-11-12. All x402stock guides: https://agents.x402stock.xyz/guides.md. Storefront: https://agents.x402stock.xyz/zcj/v18fbbwycj8e/llms.txt.
