x402MCPUSDC on Base

goseli data API

Wallet analytics for Polymarket and Hyperliquid, and floor prices of Telegram collectible gifts, for AI agents and scripts. Pay per call with x402 (USDC on Base). No signup, no API key, no subscription.

Endpoints

EndpointWhatPrice
GET /v1/polymarket/wallet/{address}/pnlPolymarket wallet P&L$0.03
GET /v1/polymarket/wallet/{address}/positionsPolymarket wallet positions$0.02
GET /v1/hyperliquid/wallet/{address}/pnlHyperliquid wallet P&L$0.03
GET /v1/telegram-gifts/floorsTelegram gift floor prices$0.01
GET /v1/healthHealth checkfree

OpenAPI: /openapi.json · Discovery: /.well-known/x402 · Payments go to 0xD84Fb6861d6F7A6a4Ae730756a01454E2704Ac80 and settle through the PayAI facilitator. Invalid addresses get HTTP 400 before any payment is requested; if an upstream source fails you get HTTP 502 and the payment is not settled.

Try it

curl -i https://api.goseli.com/v1/polymarket/wallet/0xad5353afe30c2da57709e2704ef3ccdcf67eef24/pnl
# HTTP/1.1 402 Payment Required  (PAYMENT-REQUIRED header = base64 JSON with price, asset, payTo)

Pay automatically with the official x402 client (Node):

import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register("eip155:*", new ExactEvmScheme(privateKeyToAccount(process.env.KEY)));
const pay = wrapFetchWithPayment(fetch, client);
const r = await pay("https://api.goseli.com/v1/hyperliquid/wallet/0x8bffefd54ab61dbb8de6efe7b708375cfda361b6/pnl");
console.log(await r.json());

MCP server

Remote MCP server (streamable HTTP): https://api.goseli.com/mcp. Tools: polymarket_wallet_pnl, polymarket_wallet_positions, hyperliquid_wallet_pnl, telegram_gift_floors, usage_info. 20 free data-tool calls per IP per UTC day; after that each call returns an x402 payment request (clients such as @x402/mcp pay automatically; the payment goes in _meta["x402/payment"]).

{ "mcpServers": { "goseli-data": { "type": "http", "url": "https://api.goseli.com/mcp" } } }

Listed in the official MCP Registry as com.goseli/data-api.

Data and limits

Related: @PolymarketTaxBot (Polymarket and Hyperliquid tax statements) · @GiftsLedgerBot (Telegram gifts portfolio).