# SKILL.md — mekong-x402-fleet

**Pay-per-call x402 API fleet for coding agents** — 43 live endpoints, paid in USDC on Base. No signup, no API key: your wallet *is* the credential.

## Don't know which endpoint? Ask the free task router first

POST `https://api.mekongtradeintel.com/recommend/` with `{"task": "describe what you need in plain language"}`
→ returns the top-3 matching endpoints (price, paid URL, ready curl). Free, no payment, no key.
Start here whenever you're unsure which endpoint fits the task.

## When to use this skill

Use it whenever an agent needs live external data it cannot hallucinate: web search, token prices, market data, SEC filings, crypto safety checks (honeypot/AML/rug), company enrichment, FX rates, gas prices, academic papers, PDF extraction, speech-to-text, Vietnam market data, and more.

## How to call (x402 payment flow)

1. **Call the endpoint unpaid.** You get HTTP `402` with a JSON body containing `accepts[0]` (scheme `exact`, network `eip155:8453`/Base, USDC asset, `payTo` = agent wallet, `amount` in USDC base units = 6 decimals) plus payment instructions.
2. **Sign the payment.** Build the payment payload per the x402 v2 `exact` scheme: an EIP-712 signature authorizing a USDC transfer of `amount` to `payTo` from your Base wallet. Retry the same request with the `X-PAYMENT` (v1) or `PAYMENT-SIGNATURE` (v2) header carrying the base64 payment payload.
3. **Use a client library — don't hand-roll this.** `x402-axios` / `x402-fetch` (npm) handle the 402 → sign → retry loop automatically. Your wallet needs USDC on Base plus a little ETH for gas (~$0.0007/tx).

```js
// npm i x402-axios viem
import axios from 'axios';
import { withPaymentInterceptor } from 'x402-axios';
import { privateKeyToAccount } from 'viem/accounts';

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY); // Base wallet, holds USDC
const client = withPaymentInterceptor(axios.create(), account);
const { data } = await client.post(
  'https://api.mekongtradeintel.com/websearch',
  { query: 'x402 protocol', num: 10 }
); // pays $0.010 automatically, returns JSON
```

## Free trial (no payment needed to evaluate)

A per-IP daily quota applies automatically before payment is required: 10 calls/day for endpoints ≤ $0.002, 5/day up to $0.01, 2/day up to $0.10, 1/day above. Watch the `X-Free-Remaining` response header. When the trial is exhausted you get the standard `402`.

## Endpoint catalog (43 endpoints, prices live 2026-10-21)

Source of truth: `https://api.mekongtradeintel.com/tools/mcp-schema.json` (regenerated from the live fleet). Price = USDC per call on Base.

| Endpoint | Method | URL | Price | What it does |
|---|---|---|---|---|
| `13fintel` | GET | https://api.mekongtradeintel.com/13fintel | $0.10/call | Hedge-fund 13F holdings intelligence: latest filing, top positions, quarter-over |
| `academic` | POST | https://api.mekongtradeintel.com/academic/api/papers | $0.008/call | Academic paper search with abstracts, authors, citations |
| `agentrecommend` | POST | https://api.mekongtradeintel.com/agentrecommend/api/recommend | $0.008/call | Recommend x402 APIs for your task, ranked by keyword match + real on-chain deman |
| `agrivi` | POST | https://api.mekongtradeintel.com/agrivi | $0.01/call | Agri Viet Q&A: hoi dap nong nghiep tieng Viet (enzyme, vi sinh, trong trot) |
| `aisearch` | POST | https://api.mekongtradeintel.com/aisearch | $0.015/call | AI-synthesized web search |
| `aiverdict` | POST | https://api.mekongtradeintel.com/aiverdict | $0.01/call | AI token verdict: GoPlus honeypot/tax/owner screening + DexScreener liquidity, t |
| `amlscreen` | POST | https://api.mekongtradeintel.com/amlscreen | $0.50/call | Pre-payment safety check for crypto wallets on Base: AML/KYT screening + address |
| `chain` | POST | https://api.mekongtradeintel.com/chain | $0.002/call | Read live Base chain state for any address: ETH balance, latest block, contract/ |
| `chainread` | GET | https://api.mekongtradeintel.com/chainread | $0.002/call | On-chain read API |
| `contractaudit` | POST | https://api.mekongtradeintel.com/contractaudit | $1.00/call | Smart contract security audit: bytecode analysis + AI risk scoring |
| `defi` | POST | https://api.mekongtradeintel.com/defi/api/defi | $0.010/call | Token contract intelligence on Base: supply, metadata, source verification (Sour |
| `defiyield` | GET | https://api.mekongtradeintel.com/defiyield/api/yield | $0.001/call | Top DeFi yield pools by APY across chains (DefiLlama data): pool, chain, project |
| `dnswhois` | POST | https://api.mekongtradeintel.com/dnswhois | $0.005/call | Domain intelligence in one call: DNS records (A, AAAA, MX, TXT, NS, CNAME), WHOI |
| `doanhnghiep` | POST | https://api.mekongtradeintel.com/doanhnghiep | $0.03/call | Tra cuu doanh nghiep VN: ten cong ty, ma so thue, trang thai |
| `docextract` | POST | https://api.mekongtradeintel.com/docextract | $0.30/call | Document AI extraction: upload PDF/image, get structured JSON (text, tables, for |
| `earningspack` | POST | https://api.mekongtradeintel.com/earningspack | $0.35/call | Earnings prep pack: date, consensus EPS/revenue, recent SEC filings, news sentim |
| `enrich` | POST | https://api.mekongtradeintel.com/enrich | $0.02/call | Company enrichment from a domain: homepage metadata (title, OG tags, JSON-LD, so |
| `fxrates` | POST | https://api.mekongtradeintel.com/fxrates/api/fx | $0.004/call | FX rates (daily reference — not real-time) |
| `gastracker` | POST | https://api.mekongtradeintel.com/gastracker/api/gas | $0.001/call | Base gas tracker: base fee + slow/standard/fast tiers in gwei |
| `gianongsan` | POST | https://api.mekongtradeintel.com/gianongsan | $0.05/call | Gia nong san VN: bang gia nong san cap nhat hang ngay (ho tieu, ca phe, sau rien |
| `gpubroker` | POST | https://api.mekongtradeintel.com/gpubroker | $1/call | Pay-per-job GPU rental on Base: pay $1 |
| `gpuspot` | POST | https://api.mekongtradeintel.com/gpuspot/api/gpuspot | $0.10/call | GPU spot-price oracle: cheapest verified rentable GPU per class (RTX 3090/4090/3 |
| `ksearch` | POST | https://api.mekongtradeintel.com/ksearch | $0.010/call | MTI Knowledge Search: query 11 Vietnam trade & natural-farming guides (EN+VI) |
| `macro` | GET | https://api.mekongtradeintel.com/macro/api/macro | $0.002/call | US macro indicators (CPI, Fed funds rate, unemployment, GDP) from FRED + FOMC me |
| `markdown` | POST | https://api.mekongtradeintel.com/markdown | $0.002/call | Fetch a public web page and return clean markdown with title, author, excerpt an |
| `marketdata` | GET | https://api.mekongtradeintel.com/marketdata | $0.01/call | Live market overview: BTC/ETH/SOL prices + SPY/QQQ/DIA + VNINDEX |
| `news` | POST | https://api.mekongtradeintel.com/news/api/news | $0.002/call | Headlines by topic from public RSS feeds (Google News + Hacker News) |
| `pdf` | POST | https://api.mekongtradeintel.com/pdf/api/pdf | $0.002/call | Extract text from any public PDF URL with SSRF protection |
| `perpfunding` | POST | https://api.mekongtradeintel.com/perpfunding | $0.001/call | Perp funding rate + mark price for any Hyperliquid perps symbol |
| `polymarket` | POST | https://api.mekongtradeintel.com/polymarket/api/polymarket | $0.006/call | Search Polymarket prediction markets: prices, volume, outcomes |
| `random` | GET | https://api.mekongtradeintel.com/random | $0.001/call | Novelty randomness API |
| `researchmemo` | POST | https://api.mekongtradeintel.com/researchmemo | $0.10/call | AI investment memo: thesis, bull/bear cases, key risks, catalysts from live web  |
| `rugcheck` | POST | https://api.mekongtradeintel.com/rugcheck | $0.005/call | Token safety screen: proxy/owner/liquidity checks + transfer simulation |
| `sbscore` | POST | https://api.mekongtradeintel.com/sbscore | $0.05/call | AI score 0-100 for any stock/crypto symbol: price action + news sentiment + AI r |
| `sec8k` | POST | https://api.mekongtradeintel.com/sec8k | $0.002/call | Recent SEC 8-K filings with Item codes parsed from the latest filing |
| `sentiment` | POST | https://api.mekongtradeintel.com/sentiment | $0.03/call | Sentiment intelligence: aggregate news headlines for any symbol/topic, AI sentim |
| `stocks` | POST | https://api.mekongtradeintel.com/stocks | $0.003/call | Stocks/ETF/crypto OHLCV via Yahoo Finance |
| `stt` | POST | https://api.mekongtradeintel.com/stt | $0.05/call | Speech-to-text transcription for AI agents: upload an audio file (multipart 'fil |
| `tokenprice` | POST | https://api.mekongtradeintel.com/tokenprice | $0.002/call | Token price, market cap, 24h volume and liquidity via DexScreener |
| `tokenscreener` | POST | https://api.mekongtradeintel.com/tokenscreener | $0.008/call | New-token screener: latest profiled tokens ranked by liquidity |
| `trendsintel` | GET | https://api.mekongtradeintel.com/trendsintel | $0.10/call | Google Trends intelligence: interest over time, rising/related queries, regional |
| `weather` | POST | https://api.mekongtradeintel.com/weather | $0.001/call | Current weather + 3-day forecast for any latitude/longitude, powered by Open-Met |
| `websearch` | POST | https://api.mekongtradeintel.com/websearch | $0.010/call | Web search via Google (Serper) |

## Verify before you trust (independent verification)

Don't take our word for the paywall or the settlement. Run the one-command verify kit:

```bash
curl -sL -o verify-kit.sh https://api.mekongtradeintel.com/tools/skill-files/verify-kit.sh
bash verify-kit.sh            # checks 402 shape, on-chain settlement; exits non-zero on any failure
# with your own CDP key for the full preflight check:
CDP_API_KEY_ID=... CDP_API_KEY_SECRET=... bash verify-kit.sh
# check YOUR OWN payment settled:
bash verify-kit.sh <your-tx-hash>
```

## Honest caveats (from our own benchmarks)

- `tokenprice` ticker lookup is ambiguous across chains ("ETH" may match a Solana token with the same symbol). For precision, query by `{chain, address}`.
- `fxrates` returns a daily reference rate, not a real-time trading price.
- `gpuspot` prices are oracle snapshots of rentable GPU listings, not a reservation.

## Links

- API store / docs: https://api.mekongtradeintel.com/tools/store/
- Pricing: https://api.mekongtradeintel.com/tools/pricing
- Status: https://api.mekongtradeintel.com/tools/status
- Benchmarks (build in public): https://api.mekongtradeintel.com/tools/build-in-public
- x402 discovery: https://api.mekongtradeintel.com/.well-known/x402

