Tolca

Web search API for AI agents: search and read the pages in one call

Updated 2026-10-18

The problem: "search the web" is rarely one step for an agent

When an AI agent needs a fact from the web, the usual pipeline looks like this:

  1. Call a search API with a query and get a list of links and snippets.
  2. Pick which links to open (usually the first few).
  3. Fetch each page, which can be HTML, a PDF or JSON.
  4. Strip menus, ads and scripts to keep the readable text.
  5. Hand that text to the model, with some record of where it came from.

Each step is a separate tool call, often a separate vendor, a separate API key and a separate bill. For an autonomous agent, each extra call is also an extra place for something to fail. This guide shows the manual way first, then the one-call way.

The manual way (free or nearly free)

If you build this yourself, you need:

This works well if you have the time to maintain it. The cost is mostly engineering and upkeep, not money.

The one-call way: Tolca web-search

Tolca's web-search endpoint does the pipeline above in a single request:

Input fields: query (required), and optionally read, official, lang, country, freshness, site.

How payment works (x402)

There is no account and no API key. The flow is:

  1. POST https://tolca.tonbot.ca/v1/web-search with your JSON body.
  2. The server answers 402 Payment Required with the payment terms (x402 v2, USDC on Base).
  3. Your x402-capable client pays and repeats the request with a payment signature header.
  4. You receive the JSON result.

Any x402 client library can do steps 2 and 3 for you. The full description of the endpoint is in the OpenAPI file and in llms.txt.

Example request body

{
  "query": "licence RBQ exigée pour travaux de plomberie Québec",
  "read": 3,
  "official": true
}

Because the query is in French, the French and Canada defaults apply. With official set, the best pages read are the ones from government and registry sources when they are available.

For an English, UK-focused question you could pass lang and country explicitly instead of relying on defaults.

When one call is better, and when it is not

Good fit:

Not a good fit:

Comparing with a search API plus a scraper

A common setup is one vendor for search and another for page extraction, so an agent makes at least two calls (usually more, one per page). The one-call approach folds this into a single request. Pricing and limits for other providers change often, so check their current pages before comparing costs. Tolca's price is the figure above: $0.008 per call.

Use it from an MCP client

Tolca also exposes its tools through MCP at https://tolca.tonbot.ca/mcp. The web_search tool is there alongside the other services. Payments go through the x402 payment header.

Related

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