37trust / 100

Company Compare

by apix402data.com in Company & people data

x402 APIFailing, checked 2 h ago

Compare 2 to 5 public companies side-by-side using live SEC EDGAR financial metrics, filing activity, and recent news sentiment in a normalized JSON matrix.

POST
https://apix402data.com/api/company/compare
Price
$0.03
per call in USDC
Uptime
66.7%
last 30 days
Response time
585 ms
670 ms slowest 5%
Last check
Failed
2 h ago, next in 3 days

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 2 h ago: Expected HTTP 402, got 410

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://apix402data.com/api/company/compare

Each call costs $0.03 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://apix402data.com/api/company/compare
content-type: application/json

{
  "tickers": [
    "NVDA",
    "AMD",
    "MSFT"
  ]
}

Parameters

ParameterTypeRequiredDescription
tickersarray of stringNo2-5 tickers to compare: array ["NVDA","AMD"] or comma string 'NVDA,AMD'
timeout_msintegerNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data

Example response

The provider's example. We can't check it without paying.

Example response, 102 lines
{
  "cached": false,
  "companies": [
    {
      "bearish_news": 2,
      "bullish_news": 1,
      "cik": "0001045810",
      "company_name": "NVIDIA CORP",
      "filings_by_form": {},
      "fiscal_year_end": "0131",
      "latest_filing": {},
      "news_count": 5,
      "news_sentiment": "bullish",
      "recent_filing_count": 10,
      "sector": "Semiconductors & Related Devices",
      "sic_code": "3674",
      "state": "DE",
      "ticker": "NVDA"
    }
  ],
  "comparison": {
    "companies": [
      "NVDA"
    ],
    "comparison_summary": "NVIDIA, AMD, and Microsoft represent thr",
    "investment_note": "Investors should consider NVIDIA for exp",
    "key_differences": [
      "NVIDIA focuses almost exclusively on sem"
    ],
    "relative_size": "Microsoft is the largest company by tota",
    "sector_overlap": "While NVIDIA (Semiconductors) and AMD (S"
  },
  "degraded": false,
  "endpoint": "company_compare",
  "matrix": {
    "bearish_news": {
      "AMD": 0,
      "MSFT": 2,
      "NVDA": 2
    },
    "bullish_news": {
      "AMD": 0,
      "MSFT": 1,
      "NVDA": 1
    },
    "cash_usd": {
      "AMD": 7404000000,
      "MSFT": 20281000000,
      "NVDA": 22443000000
    },
    "company_name": {
      "AMD": "ADVANCED MICRO DEVICES INC",
      "MSFT": "MICROSOFT CORP",
      "NVDA": "NVIDIA CORP"
    },
    "latest_filing": {
      "AMD": {},
      "MSFT": {},
      "NVDA": {}
    },
    "net_income_usd": {
      "AMD": 4335000000,
      "MSFT": 133749000000,
      "NVDA": 120067000000
    },
    "news_count": {
      "AMD": 1,
      "MSFT": 5,
      "NVDA": 5
    },
    "news_sentiment": {
      "AMD": "neutral",
      "MSFT": "bullish",
      "NVDA": "bullish"
    },
    "recent_filing_count": {
      "AMD": 10,
      "MSFT": 10,
      "NVDA": 10
    },
    "revenue_usd": {
      "AMD": 34639000000,
      "MSFT": 331839000000,
      "NVDA": 215938000000
    },
    "sector": {
      "AMD": "Semiconductors & Related Devices",
      "MSFT": "Services-Prepackaged Software",
      "NVDA": "Semiconductors & Related Devices"
    },
    "total_assets_usd": {
      "AMD": 94812000000,
      "MSFT": 779403000000,
      "NVDA": 320272000000
    }
  },
  "schema_version": "1.0",
  "tickers": [
    "NVDA"
  ],
  "unknown_tickers": []
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.03.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://apix402data.com/api/company/compare' \
  -H 'content-type: application/json' \
  --data-raw '{"tickers":["NVDA","AMD","MSFT"]}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://apix402data.com/api/company/compare' \
  -H 'content-type: application/json' \
  --data-raw '{"tickers":["NVDA","AMD","MSFT"]}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.03 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.03" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.03 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapix402data.com%2Fapi%2Fcompany%2Fcompare&method=POST
const res = await pay("https://apix402data.com/api/company/compare", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "tickers": [
      "NVDA",
      "AMD",
      "MSFT"
    ]
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.03 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.03"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://apix402data.com/api/company/compare",
        json={
            "tickers": [
                "NVDA",
                "AMD",
                "MSFT",
            ],
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 410410566 ms-
4 days agoExpected HTTP 402, got 410410171 ms-
5 days agoExpected HTTP 402, got 410410592 ms-
7 days agoExpected HTTP 402, got 410410743 ms-
8 days agoExpected HTTP 402, got 404404587 ms-
Show 10 older checks
8 days agoExpected HTTP 402, got 404404542 ms-
9 days agoExpected HTTP 402, got 404404650 ms-
9 days agoExpected HTTP 402, got 404404588 ms-
9 days agoExpected HTTP 402, got 404404535 ms-
9 days agoExpected HTTP 402, got 404404584 ms-
10 days agoExpected HTTP 402, got 404404601 ms-
10 days agoPassed402595 ms$0.03
10 days agoPassed402613 ms$0.03
10 days agoPassed402613 ms$0.03
11 days agoPassed402586 ms$0.03