---
name: apix402data
description: 46 pay-per-call x402 & Stripe MPP/Tempo data, EVM pre-flight security, DeFi routing, SEC EDGAR, and web-intelligence endpoints (14 flagship MCP tools). Includes 10 free lifetime preview calls via POST /mcp or /api/free/*.
version: 5.1.0
updated: 2026-11-21
homepage: https://apix402data.com
mcp: https://apix402data.com/mcp
openapi: https://apix402data.com/openapi.json
llms_txt: https://apix402data.com/llms.txt
pricing: https://apix402data.com/pricing
---

# apix402data — Agent Skill & Workflow Guide

Use this skill when an autonomous agent needs **pre-flight EVM/x402 security checks, SEC EDGAR company financials, Base/cross-chain DeFi & whale intelligence, or clean web/news RAG extraction** via HTTP 402 (USDC on Base `eip155:8453`), Stripe MPP/Tempo, or MCP Streamable HTTP (`https://apix402data.com/mcp`).

## Cross-Referenced Discovery Endpoints
- `GET /SKILL.md` — This skill guide (Markdown)
- `GET /llms.txt` — LLM-readable service & quick-start guide
- `GET /openapi.json` — Full OpenAPI 3.1 spec with `x-payment-info` & request/response schemas
- `GET /pricing` — Live machine-readable price list & valid tickers/categories
- `POST /mcp` — MCP Streamable HTTP endpoint (14 flagship tools, 10 free preview calls)
- `GET /.well-known/mcp.json` | `GET /.well-known/x402.json` | `GET /.well-known/agent-card.json`

## Payment & Reliability Protocol
1. **Free Validation First (`$0.00`):** Call `GET /api/search/check`, `/api/company/check`, `/api/news/check`, `/api/clean-url/check`, or `/api/security/preflight-402/check` before paying.
2. **10 Free Preview Calls:** Call `POST /mcp` (`tools/call`) or `POST /api/free/<tool_path>` without a wallet (check quota via `GET /api/free/status`).
3. **HTTP 402 (`x402` v2):** Paid `POST /api/*` routes return `402` with `PAYMENT-REQUIRED` (base64 JSON, USDC on `eip155:8453`, `payTo` `0x17ea1c2afc105d8e9c976ed65aa97c65cf5720f6`) and `extensions.bazaar` metadata. Retry with `PAYMENT-SIGNATURE` (or `X-PAYMENT`); receive `PAYMENT-RESPONSE`.
4. **Stripe MPP + Tempo (routes `>= $0.01`):** `402` also includes `WWW-Authenticate: Payment` challenge; retry with `Authorization: Payment <credential>`.
5. **Prepaid 30-Day Session (`x402s_...`):** Top up via `/pay` or `POST /api/agent/session-open`, then pass `Authorization: Bearer x402s_...` (or `session_token` in MCP `tools/call`).
6. **Idempotency & Replay Safety:** Send `Idempotency-Key: <uuid>` for 15-minute duplicate-charge protection. Replayed EIP-3009 nonces return `409 Conflict`.

## Agent Workflow Packages (Curated Multi-Step Bundles)

### Package 1: Autonomous Agent Pre-Flight & Transaction Guardrail Pack
Validate 402 paywalls, counterparty reputation, calldata/approvals, MEV risk, gas sponsorship, and task escrow before signing or spending USDC.
- `POST /api/security/preflight-402` (`$0.002`, x402) — Audit any 402/x402 target URL for SSRF, pricing bounds, and prompt-injection risk (free pre-check: GET /api/security/preflight-402/check?url=<URL>). Example body: `{"url":"https://apix402data.com/api/search","max_acceptable_usd":0.05,"deep_audit":false}`
- `POST /api/agent/preflight` (`$0.05`, x402 + Stripe MPP/Tempo) — Deep pre-flight target/contract verification. Example body: `{"target":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}`
- `POST /api/agent/reputation-mesh` (`$0.05`, x402 + Stripe MPP/Tempo) — Counterparty wallet/contract reputation & risk mesh. Example body: `{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base"}`
- `POST /api/agent/execution-firewall` (`$0.02`, x402 + Stripe MPP/Tempo) — Calldata & ERC-20 approval simulation firewall before signing. Example body: `{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x095ea7b300000000000000000000000017ea1c2afc105d8e9c976ed65aa97c65cf5720f600000000000000000000000000000000000000000000000000000000000f4240","chain":"base"}`
- `POST /api/agent/mev-shield-check` (`$0.05`, x402 + Stripe MPP/Tempo) — MEV / sandwich-attack risk & slippage protection check. Example body: `{"chain":"base","swap_value_usd":25000.0,"slippage_tolerance_bps":50}`
- `POST /api/agent/gas-sponsor-check` (`$0.02`, x402 + Stripe MPP/Tempo) — Gas estimation & paymaster/sponsorability check. Example body: `{"chain":"base","estimated_gas_limit":180000}`
- `POST /api/agent/escrow-arbitration` (`$0.02`, x402 + Stripe MPP/Tempo) — Hash-committed task/delivery escrow verification. Example body: `{"task_spec_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","delivery_payload_hash":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}`
- `POST /api/workflow/tx-guardian-suite` (`$0.04`, x402 + Stripe MPP/Tempo) — 1-call composite guardrail bundle (firewall + calldata + approval safety). Example body: `{"chain":"base","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x313ce567"}`

### Package 2: Public Company & Market Due-Diligence Pack
SEC EDGAR XBRL GAAP financials, cross-signal market convergence, protocol TVL/contract due diligence, and treasury portfolio audits.
- `POST /api/company` (`$0.002`, x402) — SEC EDGAR XBRL GAAP financials, filings & news; supports batch 'tickers' up to 5 (free pre-check: GET /api/company/check?ticker=<SYMBOL>). Example body: `{"ticker":"NVDA","include_news":true}`
- `POST /api/market/convergence-index` (`$0.03`, x402 + Stripe MPP/Tempo) — Cross-signal market convergence score across crypto, macro, and news. Example body: `{"seed":"USDC"}`
- `POST /api/workflow/protocol-due-diligence` (`$0.05`, x402 + Stripe MPP/Tempo) — 1-call composite DeFi protocol & contract due diligence (contract risk + DeFiLlama TVL). Example body: `{"chain":"base","contract_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","protocol":"aave-v3"}`
- `POST /api/workflow/agent-treasury-audit` (`$0.04`, x402 + Stripe MPP/Tempo) — 1-call wallet portfolio (WETH + ETH-USD), history & top counterparties audit. Example body: `{"chain":"base","wallet":"0x17ea1c2afc105d8e9c976ed65aa97c65cf5720f6","lookback_blocks":1000}`

### Package 3: On-Chain Crypto & Cross-Chain Intent Routing Pack
24h Base L2 & cross-venue whale flows, crypto news, DEX arbitrage spreads, yield matrices, and cross-chain intent routing.
- `POST /api/crypto/whale-flows` (`$0.02`, x402 + Stripe MPP/Tempo) — 24h Base L2 & cross-venue whale transfer & flow intelligence. Example body: `{"token":"USDC"}`
- `POST /api/crypto/news` (`$0.002`, x402) — Real-time crypto news & sentiment feed. Example body: `{"asset":"USDC","limit":5}`
- `POST /api/defi/arbitrage-radar` (`$0.03`, x402 + Stripe MPP/Tempo) — Cross-DEX arbitrage & spread detection. Example body: `{"asset":"WETH","chain":"base"}`
- `POST /api/defi/intent-routing` (`$0.02`, x402 + Stripe MPP/Tempo) — Optimal cross-chain bridge & intent route. Example body: `{"asset":"USDC","source_chain":"base","destination_chain":"arbitrum","amount_usd":25000.0}`
- `POST /api/defi/yield-matrix` (`$0.03`, x402 + Stripe MPP/Tempo) — Live DeFi yield & TVL matrix. Example body: `{"chain":"base"}`
- `POST /api/workflow/cross-chain-arb-executor` (`$0.04`, x402 + Stripe MPP/Tempo) — 1-call composite arbitrage + cross-chain intent execution plan. Example body: `{"asset":"USDC","source_chain":"base","destination_chain":"arbitrum","amount_usd":10000.0,"max_slippage_bps":50}`

### Package 4: Web Research, Clean Extraction & Session Pack
Live web/news search with field projection, SSRF-safe clean Markdown extraction for RAG, and 30-day prepaid session tunnels.
- `POST /api/search` (`$0.002`, x402) — Live web & news search JSON; supports 'fields' projection & 'queries' batch up to 5 (free pre-check: GET /api/search/check?q=<query>). Example body: `{"query":"Base x402 ecosystem adoption","limit":5,"fields":["title","url","snippet"]}`
- `POST /api/news` (`$0.002`, x402) — Structured news & sentiment intelligence (free pre-check: GET /api/news/check?category=<cat>&q=<query>). Example body: `{"topic":"artificial intelligence regulation","limit":5}`
- `POST /api/clean-url` (`$0.002`, x402) — SSRF-safe webpage-to-clean-Markdown extraction for RAG/LLMs (free pre-check: GET /api/clean-url/check?url=<URL>). Example body: `{"url":"https://www.sec.gov/edgar/searchedgar/companysearch"}`
- `POST /api/agent/session-open` (`$1.00`, x402 + Stripe MPP/Tempo) — Prepaid 30-day x402s_... Bearer session tunnel for high-frequency multi-step workflows. Example body: `{"payer_address":"0x02870E5A7B965404BF608630b0Cb90304675BecE","ttl_minutes":60}`

## 30-Second Copy-Paste Recipes (Top-Demanded Endpoints)

Most active endpoints in live agent traffic: `/api/token/risk` (`$0.01`), `/api/company` (`$0.002`), `/api/clean-url` (`$0.002`), `/api/defi/yield-matrix` (`$0.03`), `/api/crypto/news` (`$0.002`), `/api/workflow/tx-guardian-suite` (`$0.04`), and `/api/workflow/cross-chain-arb-executor` (`$0.04`).

### 1. Try Free Right Now (No Wallet — 10 Free Calls)
```bash
curl -s -X POST https://apix402data.com/api/free/workflow/tx-guardian-suite   -H "Content-Type: application/json"   -d '{"chain":"base","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x313ce567"}'
```

### 2. Pre-Swap Guardrail in 1 Call (`x402` Python / LangChain / CrewAI)
```python
# pip install "x402[httpx]" eth-account
r = await http.post("https://apix402data.com/api/workflow/tx-guardian-suite",
    json={"chain": "base", "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "data": "0x313ce567"})
```

### 3. Batch SEC EDGAR Company Research (`$0.002 × N`)
```bash
# Paid via x402 or Bearer x402s_... session token from https://apix402data.com/pay
curl -s -X POST https://apix402data.com/api/company   -H "Content-Type: application/json" -H "Authorization: Bearer $X402_SESSION_TOKEN"   -d '{"tickers":["NVDA","COIN","MSTR"],"include_news":true}'
```

## MCP Streamable HTTP Quick Config
```json
{
  "mcpServers": {
    "apix402data": {
      "url": "https://apix402data.com/mcp",
      "type": "streamable-http",
      "payment": {"protocol": "x402", "network": "eip155:8453", "asset": "USDC"}
    }
  }
}
```
