Skip to content
AgentSearch

Web Search API With Full Page Content: Search and Read in One Call (Free, No API Key)

Most web search APIs give you ten blue links and a one-line snippet each. That is fine for a human, who clicks. An AI agent or a RAG pipeline can't answer from a snippet, so the usual next step is a second tool: scrape or extract each result, wait, clean the HTML, and stitch it all together.

A web search API with full page content does both in one request. You send a query and get the top results back, and each result already carries the page's main text as markdown.

This guide shows how to do that with AgentSearch Search + Read (search_and_read). You can try it right now with no API key, no account and no wallet:

Free tier: 10 free Search + Read calls per IP in total, then $0.005 per call. No key needed.

What we tested: on November 22, 2026 we sent real requests to the free relay from a Linux box: one with curl and one through langchain-agentsearch 0.8.2 from PyPI. The response below is from that curl call, trimmed. We also listed the tools on the hosted MCP server and read the source of @agentsearchhq/agentsearch-mcp 1.8.7, langchain-agentsearch 0.8.2 and n8n-nodes-agentsearch 0.7.5 (the current releases) to check every snippet in this post.

What "search and read" means

A search and scrape API answers two questions at once:

  1. Which pages match this query? (title, URL, snippet, domain)
  2. What do those pages say? (the page text, cleaned to markdown)

With AgentSearch Search + Read, you choose how many top results to read (1 to 5, default 3) and how many characters of text to keep per page (up to 20,000, default 8,000). The API searches, fetches those pages, extracts the main content, and returns one JSON document. If a page comes back empty or thin, render_fallback: true retries at most one page in a headless browser in the same call.

That makes it a good fit for:

  • RAG over the live web. Put the returned markdown straight into your context window, with the URL as the citation.
  • Research agents that need to read sources, not only list them.
  • Fact checks and summaries where a snippet is too short to trust.

Try it free with curl

No sign-up. Send a JSON body with a query:

curl -s -X POST https://relay.agentsearchhq.com/v1/search_and_read \
  -H "content-type: application/json" \
  -d '{"query": "retrieval augmented generation web search", "num_results": 2, "max_chars": 600}'

The request fields on the free relay are query (at least 2 characters), num_results (1–5), max_chars (1–20000) and render_fallback (true or false).

What the response looks like

Here is the real response from our test, trimmed: we cut the page text short and dropped a few fields (snippet, score, truncated) from the display. We asked for only 600 characters per page to keep it small.

{
  "query": "retrieval augmented generation web search",
  "result_count": 2,
  "extracted_count": 2,
  "retrieved_at": "2026-11-22T11:41:28Z",
  "results": [
    {
      "title": "Retrieval-augmented generation",
      "url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation",
      "snippet": "Retrieval-augmented generation (RAG) is a technique that enables large language models (LLMs) to retrieve and incorporate new information from external data ...",
      "domain": "en.wikipedia.org",
      "published_date": null,
      "markdown": "Jump to content\n\nMain menu\n\n...",
      "chars": 600,
      "extract_status": "ok",
      "source": "extract"
    },
    {
      "title": "What is RAG? - Retrieval-Augmented Generation AI Explained - AWS",
      "url": "https://aws.amazon.com/what-is/retrieval-augmented-generation/",
      "domain": "aws.amazon.com",
      "markdown": "Skip to main content\n\n...",
      "chars": 600,
      "extract_status": "ok",
      "source": "extract"
    }
  ],
  "free_allowance": {
    "tool": "search_and_read",
    "used": 1,
    "limit_per_ip": 10,
    "remaining": 9,
    "scope": "lifetime",
    "charged": false
  }
}

The fields worth knowing:

Field What it tells you
result_count / extracted_count How many results came back, and how many have page text
results[].markdown The page text as markdown, up to max_chars characters
results[].chars How many characters of text you got
results[].extract_status ok when the page was read
results[].source extract here; tells you how the text was fetched
free_allowance Free calls used and remaining for your IP (free relay only)

One tip from our test: with a very small max_chars, you mostly get the top of the page, and for many sites that is the navigation menu ("Jump to content", "Skip to main content"). The full article text starts further down. For real reading, keep the default of 8,000 characters or raise it.

Python (requests)

The same call from Python, with the free-allowance check:

import requests

resp = requests.post(
    "https://relay.agentsearchhq.com/v1/search_and_read",
    json={"query": "what is retrieval augmented generation", "num_results": 3, "max_chars": 8000},
    timeout=60,
)
if resp.status_code in (402, 429):
    # Free allowance used up: switch to the paid endpoint (see below).
    raise SystemExit(f"Free allowance used: {resp.text[:300]}")
resp.raise_for_status()
data = resp.json()

print(data["free_allowance"])
for r in data["results"]:
    if r.get("extract_status") == "ok":
        print(r["title"], r["url"], r["chars"])
        context = r["markdown"]  # feed this to your model, with r["url"] as the source

When the 10 free calls are used up, the relay answers 402 (or 429 for the AgentSearch packages), and the error says how to upgrade.

MCP: give your agent a search_and_read tool

The AgentSearch MCP server exposes Search + Read as the tool agentsearch_search_and_read, next to plain web search, extract, render, news and screenshot. Add it to any MCP client (Claude Desktop, Cursor, Cline, Windsurf and others) with this standard mcpServers entry:

{
  "mcpServers": {
    "agentsearch": {
      "command": "npx",
      "args": ["-y", "@agentsearchhq/agentsearch-mcp"]
    }
  }
}

With no configuration, agentsearch_search_and_read uses the free relay. It takes query, num_results (1–5), max_chars (1–20000) and render_fallback.

No Node.js? Use the hosted remote MCP server instead. It needs no install and no authentication, and its tool list includes agentsearch_search_and_read:

{
  "mcpServers": {
    "agentsearch": {
      "url": "https://relay.agentsearchhq.com/mcp"
    }
  }
}

Some clients want a type or transport field for remote servers; see the free remote MCP server guide for per-client examples.

LangChain (Python)

langchain-agentsearch ships Search + Read as AgentSearchSearchAndReadTool (tool name agentsearch_search_and_read). From version 0.8.2 it is free by default and uses the same relay:

pip install langchain-agentsearch
from langchain_agentsearch import AgentSearchSearchAndReadTool

read = AgentSearchSearchAndReadTool()
print(read.invoke({"query": "what is retrieval augmented generation", "num_results": 3, "max_chars": 8000}))

It returns a JSON string with the same fields as above, plus a note that the content is untrusted third-party data. Pass the tool to your agent like any other LangChain tool. For a full agent that searches first and then reads only the best pages, see LangChain Agent: Search the Web, Then Read the Page.

n8n

Install the community node n8n-nodes-agentsearch (Settings > Community Nodes), add an AgentSearch node and pick the Search and Read operation. Set Query, Number of Results to Read (default 3, max 5), Max Characters Per Page (default 8000) and, if you want, Render Fallback. With no wallet credential it uses the free relay (10 calls per IP in total). For complete workflows, see the n8n deep research agent guide.

After the free calls: $0.005 per call over x402

Once the 10 free calls are used, Search + Read costs $0.005 per call in USDC on Base, paid per request with x402. There is no account, subscription or API key. The paid endpoint is:

POST https://api.agentsearchhq.com/x402/v1/search_and_read

An unpaid request gets HTTP 402 with a PAYMENT-REQUIRED header that states the price (5000 atomic USDC, that is $0.005). Any x402 client signs the payment and retries. You are charged only when at least one page has text, and failed calls are never charged.

The paid endpoint also takes search filters: freshness (day, week, month or year), date_from / date_to, country, language, include_domains and exclude_domains (up to 5 each). The free relay does not apply filters.

With the packages, you don't write x402 code yourself:

  • MCP: set AGENTSEARCH_WALLET_PRIVATE_KEY (the key of a new wallet made only for this, funded with a little USDC on Base) and AGENTSEARCH_MODE=paid in the server's env block. Spending is capped at $0.020 per call and $1.00 per session by default.
  • LangChain: pip install 'langchain-agentsearch[paid]', set the same two environment variables (or pass mode="paid" to the tool).
  • n8n: add an AgentSearch Wallet API credential to the node.

The background on the paid endpoint is in Search and Read in One Paid Call.

Search and read, search then extract, or render?

All three are good tools. Pick by what you know and how many pages you need:

You have... Use Why
A question, and you want 2–5 pages of text search_and_read One request, one payment, sources and text together
A question, and you only need 1 page, or want to pick pages yourself first search, then extract the best URL Search is free for 25 calls per IP; you read only what you choose
A URL already extract No search needed
A JavaScript app that returns an empty page render (or render_fallback: true) A headless browser runs the scripts before reading

A simple rule: if your agent would call extract on two or more results right after a search anyway, use Search + Read.

Cost math

Prices on the direct x402 API, after the free tiers:

Approach Calls Cost
Search + Read, 3 pages 1 $0.005
Search ($0.003) + 3 extracts ($0.002 each) 4 $0.009
Search ($0.003) + 1 extract ($0.002) 2 $0.005
Render one JavaScript page 1 $0.005

So reading three pages costs about 44% less with Search + Read, and it is one payment instead of four. If you only ever read one page, search then extract costs the same. With $1 you get about 200 Search + Read calls.

Free tiers per IP, for comparison: search 25 calls, news 10, Search + Read 10 and screenshot 10 (all lifetime), extract 5 per day and render 3 per day. That puts AgentSearch's pay-per-call prices among the lowest for agent web tools, with no monthly minimum.

Treat page text as untrusted input

Search + Read puts other people's web pages into your model's context. A page can contain text written to steer an AI ("ignore your instructions and..."). Treat the markdown field as data, never as instructions:

  • Keep it clearly separated in your prompt (for example, inside a quoted "sources" block).
  • Don't let page text trigger tools with side effects (sending messages, payments, file writes) without a check.
  • Keep the source URL with each chunk so answers can be cited and verified.

FAQ

What is a web search API with full page content?

It is a search API that returns the text of each result page along with the title, URL and snippet. You get search results and page content in one request, instead of searching first and then scraping every link.

Is Search + Read free?

Yes, to start. The free relay gives 10 Search + Read calls per IP in total, with no API key, account or wallet. After that it costs $0.005 per call in USDC on Base over x402.

How many pages can one call read?

Up to 5. Set num_results from 1 to 5 (default 3) and max_chars from 1 to 20,000 characters per page (default 8,000).

What happens with JavaScript-heavy pages?

Set render_fallback to true. Search + Read then retries at most one empty or thin page in a headless browser within the same call. For a page you already know needs JavaScript, use the render tool directly.

Am I charged when no page could be read?

No. A paid Search + Read call is charged only when at least one page has text, and failed calls are never charged.

Can I use it for RAG?

Yes. Each result has the URL and the page text as markdown, so you can put the text in the model's context and cite the URL. Treat the text as untrusted data, not as instructions.

Get started

Run the curl command above to see real results with page text. Then add agentsearch_search_and_read to your agent through MCP, LangChain or n8n. When the free calls run out, switch on paid calls with the x402 docs. More detail on the endpoint is on the Search + Read page.

More from the blog

Service pages: Web Search API · Web Extract API · Web Render API · Search + Read API