Compare 2 to 3 US-listed stocks side by side (peer or watchlist comparisons)
Compare 2 to 3 US-listed stocks side by side (peer or watchlist comparisons). Pass a comma-separated list via `?tickers=AAPL,MSFT,NVDA` (1 to 3 symbols). Returns price and day change, market cap, P/E, EPS, revenue, gross and net margins, and dividend yield per ticker. Built for multiple stocks — for a single stock, `/api/v1/quote/{ticker}` is cheaper. From x402stock
50000 (raw units)
price
2
calls / 30d
2
unique payers
2026-09-14
updated
Provider
x402stock.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"tickers": "AAPL,MSFT,NVDA"
},
"type": "http"
},
"output": {
"example": {
"as_of": "2026-05-30T07:00:00.000Z",
"count": 2,
"rows": [
{
"available": "ok",
"change_percent": -0.371,
"dividend_yield_percent": 0.35,
"eps": 8.26,
"gross_margin_percent": 47.86,
"market_cap": 4589945623560,
"name": "Apple Inc.",
"net_margin_percent": 27.15,
"pe_ratio": 37.69,
"price": 311.35,
"revenue": 451442000000,
"ticker": "AAPL"
},
{
"available": "ok",
"change_percent": 5.45,
"dividend_yield_percent": 0.66,
"eps": 11.82,
"gross_margin_percent": 69.4,
"market_cap": 3346000000000,
"name": "Microsoft Corporation",
"net_margin_percent": 36.1,
"pe_ratio": 38.1,
"price": 450.24,
"revenue": 270000000000,
"ticker": "MSFT"
}
],
"source": "x402stock",
"tickers": [
"AAPL",
"MSFT"
]
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": {},
"properties": {
"tickers": {
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"as_of": {
"type": "string"
},
"count": {
"type": "number"
},
"note": {
"type": "string"
},
"rows": {
"items": {
"additionalProperties": false,
"properties": {
"available": {
"type": "string"
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"dividend_yield_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"eps": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"gross_margin_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"market_cap": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"net_margin_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"pe_ratio": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"revenue": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"ticker": {
"type": "string"
}
},
"required": [
"ticker",
"name",
"price",
"change_percent",
"market_cap",
"pe_ratio",
"eps",
"revenue",
"gross_margin_percent",
"net_margin_percent",
"dividend_yield_percent",
"available"
],
"type": "object"
},
"type": "array"
},
"source": {
"const": "x402stock",
"type": "string"
},
"tickers": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"source",
"as_of",
"count",
"tickers",
"rows"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402stock.xyz/api/v1/compare" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402stock.xyz/api/v1/compare");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402stock.xyz/api/v1/compare")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5272.json, and this resource appears in /discovery/resources and /discovery/search.