Zahlung pro Aufruf über x402: was das ist und was ein Aufruf kostet
Ein KI-Agent oder ein MCP-Client kann unsere Tools ohne Konto und ohne API-Schlüssel aufrufen und zahlt jeden Aufruf in USDC auf Base über das x402-Protokoll.
API-DokumentationBezahlung pro Aufruf (x402)#
Kein Konto und kein API-Schlüssel nötig: dieselben MCP-Tools an einem eigenen Endpunkt, jeder Aufruf bezahlt in USDC auf Base über das x402-Protokoll.
Endpunkt für Bezahlung pro Aufruf
https://api.cryptoattention.com/mcp/pay| Tool | Preis pro Aufruf |
|---|---|
| btc_correlation | $0.01 |
| coin_rating | $0.01 |
| daily_index | $0.01 |
| daily_top | $0.01 |
| get_story | $0.01 |
| industry_activity | $0.01 |
| list_sources | $0.01 |
| list_stablecoins | $0.01 |
| list_stories | $0.01 |
| list_topics | $0.01 |
| list_universes | $0.01 |
| market_overview | $0.01 |
| search | $0.01 |
| search_archive | $0.01 |
| stablecoin | $0.01 |
| topic_history | $0.01 |
So funktioniert es#
- Rufen Sie ein Tool an diesem Endpunkt auf, wie bei jedem MCP-Server.
- Ohne Zahlung ist das Ergebnis ein Fehler mit PaymentRequired in structuredContent: der Preis, das Netzwerk und die Zahlungsadresse.
- Bezahlen Sie mit einem x402-Client und wiederholen Sie den Aufruf mit der Zahlung in _meta["x402/payment"]; die Antwort enthält den Beleg in _meta["x402/payment-response"].
Als HTTP-Ressourcen#
Dieselben Tools als einfache HTTPS-Endpunkte, jeweils eigens bepreist: kein MCP-Client nötig.
| Ressource | Preis pro Aufruf |
|---|---|
| POST https://api.cryptoattention.com/x402/btc_correlation | $0.01 |
| POST https://api.cryptoattention.com/x402/coin_rating | $0.01 |
| POST https://api.cryptoattention.com/x402/daily_index | $0.01 |
| POST https://api.cryptoattention.com/x402/daily_top | $0.01 |
| POST https://api.cryptoattention.com/x402/get_story | $0.01 |
| POST https://api.cryptoattention.com/x402/industry_activity | $0.01 |
| POST https://api.cryptoattention.com/x402/list_sources | $0.01 |
| POST https://api.cryptoattention.com/x402/list_stablecoins | $0.01 |
| POST https://api.cryptoattention.com/x402/list_stories | $0.01 |
| POST https://api.cryptoattention.com/x402/list_topics | $0.01 |
| POST https://api.cryptoattention.com/x402/list_universes | $0.01 |
| POST https://api.cryptoattention.com/x402/market_overview | $0.01 |
| POST https://api.cryptoattention.com/x402/search | $0.01 |
| POST https://api.cryptoattention.com/x402/search_archive | $0.01 |
| POST https://api.cryptoattention.com/x402/stablecoin | $0.01 |
| POST https://api.cryptoattention.com/x402/topic_history | $0.01 |
- Senden Sie die Argumente des Tools per POST als JSON-Body an seine URL.
- Ohne Zahlung lautet die Antwort 402 mit den Konditionen im Header PAYMENT-REQUIRED: der Preis, das Netzwerk und die Zahlungsadresse.
- Bezahlen Sie mit einem x402-Client und wiederholen Sie die Anfrage mit dem Header PAYMENT-SIGNATURE; die Antwort enthält den Beleg im Header PAYMENT-RESPONSE.
Sie zahlen nur für eine gelieferte Antwort: Ein fehlgeschlagener Tool-Aufruf wird nie berechnet.
Bezahlen mit einem x402-Client (Coinbase) · Das x402-Protokoll