The pit.world API
JSON over HTTPS, CORS open. The same API is the pit CLI and the pit mcp server (install).
Search and names (free)
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, ... } }
- q: words, all of which must appear. Commas separate alternatives:
q=saas,business,cryptois pages with any of the three;q=open source,self hostedis (open and source) or (self and hosted). Punctuation is ignored, never an error: q is not a query language. Empty q pages through everything. - site (host,
www.ignored), kind (page, article, product, profile, site, ...), lang (enmatches en-us too), since (ISO date: fetched at or after). - Paging: results come in index order (oldest first), not by relevance. Pass
next_cursorback ascursoruntil it isnull. Cursors never expire and pages never shift: keepresume_cursorand come back later for pages added since. A page can come back with fewer items thanlimit(a rare match is scanned in slices); keep following the cursor. textis the page's main text, up to 10,000 characters as pitbot stores it.total_estimate: matching pages after opt-outs, estimated (counted up to 10,000 matches, then scaled).
Price
- Free preview: 20 pages a day per address,
textcut to 500 characters, so you can see what is there./api/corpus/statsis always free. - Full text: $1.00 per 1,000 pages returned ($0.001 a page). Only pages actually returned are charged.
- Over the preview,
/api/corpusanswers402 Payment Requiredwith the price, an x402 offer (in the body and thePAYMENT-REQUIREDheader) and these ways to pay:
- x402, per request (agents): retry the same request with
PAYMENT-SIGNATURE(orX-PAYMENT) payinglimitx $0.001 in USDC. Pages the request did not return stay as credit on a key, sent back inx-corpus-key. - x402 credit pack:
GET /api/corpus/credits?pages=10000is the offer ($10.00);POSTit with the payment and get a key. Send it asx-corpus-key: pck_...orAuthorization: Bearer pck_...;GET /api/corpus/creditswith it shows the balance. - CoinPay invoice (people): sign in, then /account → Corpus credits ($5, $10, $25, $100; any coin CoinPay takes). Use the balance with your
pit logintoken asAuthorization: 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:
X-Robots-Tagor<meta name="robots">(or apitbotmeta) containingnoai. (noimageaialone is about images, and the corpus is text.)- TDMRep (W3C): a
tdm-reservation: 1header,<meta name="tdm-reservation" content="1">, or a/.well-known/tdmrep.jsonrule reserving the path. - robots.txt keeping any AI-training crawler off the path: GPTBot, Google-Extended, CCBot, ClaudeBot, anthropic-ai, Claude-Web, cohere-ai, cohere-training-data-crawler, Bytespider, PerplexityBot, Applebot-Extended, meta-externalagent, Amazonbot, omgilibot, Diffbot, ImagesiftBot, Timpibot, AI2Bot, YouBot (each by its own group, or
User-agent: *when it has none). - Unknown is out: a robots.txt that could not be fetched (a 404 is an answer: no rules), and pages read before these signals were recorded until they are judged. Those older pages are judged on robots.txt and tdmrep.json alone, and on their own headers and meta when pitbot reads them again (every 30 days).
/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