TolcaCall the API

Web search API for AI agents: the clean text of the top pages in one call

Updated 2026-12-02

When an AI agent needs one fact from the web (a licence status, a regulation date, a company's services, a price on a public page), it usually runs a small pipeline before it can answer:

  1. Search: send a query to a search engine or search API and get a list of links.
  2. Choose: pick the 2 or 3 links that look like primary sources.
  3. Fetch: download each page, which can fail, time out, or return a JavaScript shell.
  4. Clean: strip the navigation, cookies banners and ads so the model reads the content and not the chrome.
  5. Pass: feed the text to the model with the question.

That is four or five network calls, four or five places where it can fail, and a lot of tokens spent on boilerplate. This guide explains how to do the same job by hand first, then the one-call version.

The manual method (free)

You can do the whole pipeline yourself with no API key:

This works well for a human. For an agent that runs hundreds of times a day, the manual method breaks down on steps 3 and 4: fetching and cleaning are where the code gets fragile.

The one-call version with Tolca web-search

Tolca's web-search endpoint does steps 1 to 4 in a single paid call, at 0.008 $ USD per call over x402 (USDC on Base or Solana), with no account:

Pattern for the agent:

POST https://tolca.tonbot.ca/v1/web-search
(x402 payment on first call; read the parameters in openapi.json)
→ clean text of the top 3 pages + source URL for each
→ the model answers from those texts and cites the URLs

Keep the source URLs in the answer. A fact without its page is hard to audit, for you and for the person who reads the agent's output.

When not to use a search API

Checklist before you ship an agent that searches the web

Related guides on this site: recherche web pour un agent IA, en français and an MCP server for AI agents.

Try it: Business Verification on the Apify Store ($0.05 per company, card payment) · for AI agents: POST https://tolca.tonbot.ca/v1/verify-business (x402, USDC on Base) · free in Claude or ChatGPT through MCP: https://tolca.tonbot.ca/mcp/public