{
  "x402Version": 2,
  "id": 5272,
  "slug": "5272",
  "resource": "https://x402stock.xyz/api/v1/compare",
  "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",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402stock.xyz",
  "lastUpdated": "2026-09-14T18:58:28.97Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-14T18:58:28.743Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402stock.xyz",
    "manifest_name": "x402stock.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}