{"uid":"cap_W6tGwN2K5IiZKipk1uYsF","slug":"x402stock-compare-endpoint-084d7693","name":"x402stock Compare Endpoint","description":"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","url":"https://agents.x402stock.xyz/api/v1/compare?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"object","required":["source","as_of","count","tickers","rows"],"properties":{"note":{"type":"string"},"rows":{"type":"array","items":{"type":"object","required":["ticker","name","price","change_percent","market_cap","pe_ratio","eps","revenue","gross_margin_percent","net_margin_percent","dividend_yield_percent","available"],"properties":{"eps":{"anyOf":[{"type":"number"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"anyOf":[{"type":"number"},{"type":"null"}]},"ticker":{"type":"string"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}]},"pe_ratio":{"anyOf":[{"type":"number"},{"type":"null"}]},"available":{"type":"string"},"market_cap":{"anyOf":[{"type":"number"},{"type":"null"}]},"change_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"net_margin_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"gross_margin_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"dividend_yield_percent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}},"as_of":{"type":"string"},"count":{"type":"number"},"source":{"type":"string","const":"x402stock"},"tickers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IJsPv-ekrW-aPFeZlT8Vb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_zM2Z0U2Z6ic141Hu-UrBD","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares market and economic data across multiple US stocks, ETFs, forex pairs, crypto, or macro indicators side by side","exampleAgentPrompt":"Compare AAPL and MSFT side by side — show me their key price and market metrics so I can see which is performing better right now.","exampleUseCases":[{"title":"Equity head-to-head comparison","prompt":"Can you compare AAPL and GOOGL for me — I want to see their latest prices and any key metrics side by side so I can decide which to buy?"},{"title":"ETF benchmark comparison","prompt":"Compare SPY and QQQ for me — which one has been doing better recently and what are their main differences in market data?"},{"title":"Commodity vs macro indicator comparison","prompt":"Compare crude oil and natural gas prices right now — I want to see both side by side with their current values."}],"resultDescription":"Returns a side-by-side comparison of requested market data properties for the specified tickers or assets, potentially including price, volume, financial ratios, or macro indicators depending on the properties parameter supplied.","failureModes":["Invalid or unsupported ticker symbols return an error","Missing required properties parameter may return incomplete data","Payment failure via x402/MPP returns 402 status","Rate limiting or server errors return 5xx responses","Unsupported asset class combinations may return partial results"],"whenToPreferThis":"Use this endpoint when you need to compare two or more financial assets or economic indicators side by side in a single call, rather than making separate individual lookups and manually comparing results. Ideal for equity vs equity, ETF vs ETF, or cross-asset comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:52:16.084Z","isFirstParty":false,"canonicalSlug":"x402stock-compare-endpoint-084d7693"}