pit.world

The pit.world API

JSON over HTTPS, CORS open. The same API is the pit CLI and the pit mcp server (install).

GET /api/search?q=<words>&n=10&t=web|images|videos|music|live
GET /api/resolve?name=chovy.hacker
GET /api/network
GET /api/status          pitbot, the crawler, live
GET /api/corpus/stats    the training corpus, below

Training corpus: /api/corpus

Full page text from pit.world's own crawl index (pages pitbot read), queryable and paged, for training models. It grows as pitbot crawls.

GET /api/corpus?q=<words>&site=&kind=&lang=&since=&limit=1..100&cursor=
GET /api/corpus/stats

{ "total_estimate": 1234, "next_cursor": "48213",
  "items": [ { "url", "title", "site", "kind", "language", "fetched_at", "text" } ],
  "access": { "mode": "preview|key|account|x402", "pages_charged": 20, ... } }

Price

  1. x402, per request (agents): retry the same request with PAYMENT-SIGNATURE (or X-PAYMENT) paying limit x $0.001 in USDC. Pages the request did not return stay as credit on a key, sent back in x-corpus-key.
  2. x402 credit pack: GET /api/corpus/credits?pages=10000 is the offer ($10.00); POST it with the payment and get a key. Send it as x-corpus-key: pck_... or Authorization: Bearer pck_...; GET /api/corpus/credits with it shows the balance.
  3. CoinPay invoice (people): sign in, then /account → Corpus credits ($5, $10, $25, $100; any coin CoinPay takes). Use the balance with your pit login token as Authorization: Bearer.

x402 payments are verified and settled by CoinPay; invoices are confirmed with pay.agent server to server. Rate limit: 60 requests a minute per address (429 with Retry-After).

Training opt-outs: what is never in the corpus

Reading a page for search is not permission to train on it. A page is in the corpus only when its publisher left AI training open. pitbot records these signals for every page it reads, and any one of them keeps the page out:

/api/corpus/stats reports how many pages each rule kept out (excluded_by). Publishers: see pitbot for how to keep pages out of search as well.

curl 'https://pit.world/api/corpus?q=saas,business,crypto&limit=20'
curl 'https://pit.world/api/corpus/stats'
pit corpus "saas,crypto" --limit 20 [--cursor N]
# MCP: the corpus tool