```yaml
product: AlterLab
title: "Search API for AI Agents With Full Page Content | AlterLab | AlterLab"
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/search-api
```

Search API

# Search API for AI agents that *returns the page*, not just the link

One call returns ranked results and each result page as markdown. Every page is fetched at the lowest tier that works, and you are billed only for pages that came back.

[Start building free](https://alterlab.io/signin)[Continue in the Playground](https://alterlab.io/dashboard/playground?mode=search&q=open+source+vector+databases)

- [Docs](https://alterlab.io/docs/api/search)
- Pricing

- Up to 5,000 free requests
- No credit card
- From $0.001 per search

Teams building on AlterLab

- ![Walmart](https://alterlab.io/home/customers/walmart-k.png)
- ![Microsoft](https://alterlab.io/home/customers/microsoft-k.png)
- ![Groupon](https://alterlab.io/home/customers/groupon-k.png)
- ![Alpiq](https://alterlab.io/home/customers/alpiq-k.png)
- ![AgentMail](https://alterlab.io/home/customers/agentmail-k.png)
- ![AgainstData](https://alterlab.io/home/customers/againstdata-k.png)
- ![Revel Street](https://alterlab.io/home/customers/revelstreet-k.png)

api.alterlab.io/v1/searchNo signup needed

**Recorded run** · 2026-11-09

Try

1. 1
   [8 Best Open Source Vector Database Tools for 2026](https://www.datastackhub.com/top-tools/open-source-vector-database-tools/)datastackhub.comTier 2 · Full HTTP client · $0.0003
   Why Use Open Source Vector Database Tools? Open source vector database tools give teams more control over how embedding data is stored, indexed, and queried. This can be useful for AI applications…
2. 2
   [9 Best Open Source Vector Databases in 2026 (Tested) - Geekflare](https://geekflare.com/open-source/vector-database/)geekflare.comTier 2 · Full HTTP client · $0.0003
   Best Open Source Vector Databases in 2026 I looked at 31 open source vector databases, Postgres extensions and search engines with vector search, and ranked the ones I'd go with a production RAG or…
3. 3
   [Open Source Vector Database Tools (2026) - Zaira Labs](https://zairalabs.ai/guide/guides/open-source-vector-database/)zairalabs.aiTier 2 · Full HTTP client · $0.0003
   You need to prototype vector search locally and later promote the same collection model to a deployed service without redesigning your retrieval layer.| Chroma (OSS) Your project requires…
4. 4
   [Best Open-Source Vector Database In 2026: 10 Options Compared](https://www.designveloper.com/blog/best-open-source-vector-database/)designveloper.comTier 2 · Full HTTP client · $0.0003
   KEY TAKEAWAYS: - Milvus, Qdrant, Weaviate, and Chroma are purpose-built vector databases; pgvector is a PostgreSQL extension, FAISS is a library, and Vespa and OpenSearch are broader search…
5. 5
   [Vector database](https://en.wikipedia.org/wiki/Vector_database)en.wikipedia.orgTier 1 · Direct fetch · $0.0002
   Type of database that uses vectors to represent other data A vector database , vector store or vector search engine is a database that stores and retrieves embeddings> "Embedding (machine learning)")…

**200**search *$0.001*pages *$0.0014*total *$0.0024*Recorded 2026-11-09: one call with scrape_results, 5 results, coverage 1.

[Continue in the Playground](https://alterlab.io/dashboard/playground?mode=search&q=open+source+vector+databases&content=full)

- $0.001per query, one flat price for unified search$1.00 per 1,000
- from $0.0002per page of content, by fetch tierBilled only when the page came back
- 5 queriesin one request, billed as onequeries parameter
- content_statuson every result, so you can tell what was readok, partial, blocked, timeout, dead_origin, pending

## A search API that reads the pages for you

### What is a search API with page content?

A search API with page content returns ranked search results and the text of each result page in a single request, so you do not run a separate fetch step. The [AlterLab Search API](https://alterlab.io/docs/api/search) does this with scrape_results: true. Each result comes back with its page as markdown and a content_status saying whether the page was read.

- **For agents and RAG pipelines**Give an agent one tool that finds pages and returns their text, so grounding needs no second fetch step.
- **For SERP data by market**Track results and SERP features by country, city and device as structured fields, not HTML you parse.
- **For teams that want one key**The same key and balance cover scrape, extract, crawl and research when a result needs more than a search.

## One request, three outcomes you can check

Ask once. The results, the pages and the receipt come back in the same response.

api.alterlab.io/v1/searchRequest

Request

```
curl -X POST https://api.alterlab.io/api/v1/search \
  -H "X-API-Key: $ALTERLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"open source vector databases","engine":"auto","num_results":5,"scrape_results":true,"formats":["markdown"],"sync":true}'
```

response.jsonrecorded 2026-11-09

Response

```
{
  "search_id": "c135aaad-5803-4555-a9dd-bc199779b6b6",
  "query": "open source vector databases",
  "results_count": 5,
  "cost_breakdown": {
    "base_cost_microcents": 1000,
    "total_microcents": 2400,
    "scrape_cost_microcents": 1400
  },
  "content_coverage": 1,
  "fetched_at": "2026-11-09T10:07:12.795648+00:00",
  "results": [
    {
      "rank": 1,
      "title": "8 Best Open Source Vector Database Tools for 2026",
      "url": "https://www.datastackhub.com/top-tools/open-source-vector-database-tools/",
      "tier": "2",
      "cost_microcents": 300,
      "content_status": "ok",
      "content": {
        "markdown": "Why Use Open Source Vector Database Tools? Open source vector database tools give teams more control over how embedding data is stored, indexed, and queried. This can be useful for AI applications…"
      }
    },
    "..."
  ]
}
```

A real response, recorded 2026-11-09. One of five results shown; page text cut to an excerpt.

1. 01
   ### Ask
   POST your query to `/api/v1/search.` Use `engine: auto` for the unified search, or name google, bing or duckduckgo. Set country, language, `time_range`, device or domain to narrow it.
2. 02
   ### Read the results
   You get a title, URL, snippet and rank for every result. Named engines also return featured snippets, People Also Ask, related searches and knowledge panels when the engine has them.
3. 03
   ### Add the pages
   Set `scrape_results: true` and each result comes back with its page as markdown (or text, HTML, JSON, RAG chunks). `sync: true` waits for the pages and returns everything in one 200; otherwise you get a 202 and poll GET `/v1/search/{search_id}.`
4. 04
   ### Check what you got
   Each result carries a `content_status` and the fetch tier that read it, and the response carries `content_coverage` and `cost_breakdown`, so your agent can tell a page that was read from one that was not.

## Pages are fetched at the lowest tier that works

A result page starts at direct fetch and moves up only when the page needs it. You pay the price of the tier that read it, nothing for a page that did not come back.

- TIER 1
  ### Direct fetch
  $0.0002 per page
  A direct HTTP fetch. Static pages, blogs, docs, news.
  Read 1 of the pages in the example
- TIER 2
  ### Full HTTP client
  $0.0003 per page
  A full-featured HTTP client with modern protocol support. Modern sites, JSON endpoints.
  Read 4 of the pages in the example
- TIER 3
  ### Managed sessions
  $0.002 per page
  Managed sessions with cookies, redirects and retries handled for you.
- TIER 4
  ### Full browser rendering
  $0.004 per page
  Full browser rendering. React, Vue, Angular, Next.js, infinite scroll, wait_for.

The marked tier is the one that read each page in the recorded run above.

## What you get that a snippet API does not give you

Search and the page behind each result, on one key and one balance.

- ### You pay for pages that came back
  Search is $0.001. Each result page is billed at its fetch tier only when it was retrieved (`content_status` ok or partial). Blocked, timed-out and dead pages cost nothing.
- ### The lowest tier that works
  Pages start at direct fetch ($0.0002) and move to a full HTTP client, managed sessions or full browser rendering only when the page needs it.
- ### SERP fields without parsing HTML
  Name Google or Bing ($0.004 per query) and get People Also Ask, featured snippets, knowledge panels, local, shopping, video and news as structured fields, localised by country, city, coordinates, language and device.
- ### Five queries, one price
  Send up to five queries in one request and pay for one. A failing query never fails the others.
- ### Built for agents
  preset: agent for concise markdown, fields to return only what you need, `max_total_chars` to cap context, `zero_trace` to skip caching. The `alterlab_search` MCP tool runs the unified search with content.
- ### One key for the rest of the job
  When a result needs more than a search, the same key and balance handle scrape, extract, crawl, browser actions and Research.

## What teams build with it

Each row is a request shape: the parameters you set and the fields you read back.

| Use case | Parameters you set | Fields you get |
| --- | --- | --- |
| Ground an agent or RAG pipelineGive the agent one tool that finds pages and returns their text, so grounding needs no second fetch step. Cite the returned URLs in the answer.[Search grounding](https://alterlab.io/use-cases/search-grounding) | scrape_resultspreset: agentnum_results | content.markdowncontent_statusurl |
| Track SERPs and SERP features by marketRun the same query across countries, cities and devices and keep featured snippets, People Also Ask and related searches as structured data.[SERP API reference](https://alterlab.io/docs/api/serp) | engine: googlecountrycitydevice | featured_snippetpeople_also_askrelated_searches |
| Monitor a query over timeSchedule a search in a workflow and get a webhook when the result set changes.[Search monitoring](https://alterlab.io/use-cases/search-monitoring) | scheduletime_rangewebhook | resultsfetched_at |
| Research a company or marketSearch the name, fetch the pages and pass them to your model, or hand the whole question to the Research API.[Research API](https://alterlab.io/research) | scrape_resultsqueriesdomain | content.markdownsourcetier |

## The same request in cURL, Python and Node

One POST to one endpoint. Python and Node.js SDKs, or any HTTP client you already have.

api.alterlab.io/v1/searchrequest

```
curl -X POST https://api.alterlab.io/api/v1/search \
  -H "X-API-Key: $ALTERLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"open source vector databases","engine":"auto","num_results":5,"scrape_results":true,"formats":["markdown"],"sync":true}'
```

response.jsonrecorded 2026-11-09

Response

```
{
  "search_id": "c135aaad-5803-4555-a9dd-bc199779b6b6",
  "query": "open source vector databases",
  "results_count": 5,
  "cost_breakdown": {
    "base_cost_microcents": 1000,
    "total_microcents": 2400,
    "scrape_cost_microcents": 1400
  },
  "content_coverage": 1,
  "fetched_at": "2026-11-09T10:07:12.795648+00:00",
  "results": [
    {
      "rank": 1,
      "title": "8 Best Open Source Vector Database Tools for 2026",
      "url": "https://www.datastackhub.com/top-tools/open-source-vector-database-tools/",
      "tier": "2",
      "cost_microcents": 300,
      "content_status": "ok",
      "content": {
        "markdown": "Why Use Open Source Vector Database Tools? Open source vector database tools give teams more control over how embedding data is stored, indexed, and queried. This can be useful for AI applications…"
      }
    },
    "..."
  ]
}
```

**200***$0.0024*5 resultscoverage 1

- [MCP server](https://alterlab.io/docs/integrations/mcp)Hosted at [`mcp.alterlab.io/mcp`](https://alterlab.io/integrations/mcp-server); Claude, Cursor, Windsurf, Codex, Gemini CLI
- [LangChain](https://alterlab.io/docs/integrations/langchain)Document loader
- [LlamaIndex](https://alterlab.io/docs/integrations/llamaindex)Web data connector for RAG
- [CrewAI](https://alterlab.io/docs/integrations/crewai)Scrape, search and extract tools
- [n8n](https://alterlab.io/docs/integrations/n8n)Community node with a template library
- [Supabase](https://alterlab.io/docs/integrations/supabase)Store and query results in Postgres
- [Browser extension](https://alterlab.io/docs/integrations/extension)Capture your own authenticated sessions (BYOS)
- [REST](https://alterlab.io/docs/api/rest)Any language, OpenAPI at `/openapi.json`

[Get your API key](https://alterlab.io/signin)[Search API reference](https://alterlab.io/docs/api/search)

## Pay per query and per page. No subscription.

Unified search is $0.001 per query and each page of content is billed by its fetch tier, from $0.0002.

### How much does a search API with page content cost?

Unified search is $0.001 per query. Named engines are $0.001 for DuckDuckGo and $0.004 for Google or Bing. If you add page content, each page is billed at its fetch tier ($0.0002, $0.0003, $0.002 or $0.004) and only when the page was retrieved. There is no subscription. Prices as of 2026-11-06.

### Per query

- Unified search (auto)**$0.001**per query
- DuckDuckGo**$0.001**per query
- Google or Bing**$0.004**per queryNamed engines, richer SERP fields

### Per page of content

- Direct fetch**$0.0002**per pageTier 1
- Full HTTP client**$0.0003**per pageTier 2
- Managed sessions**$0.002**per pageTier 3
- Full browser rendering**$0.004**per pageTier 4

| If every page is read by | Formula | Total |
| --- | --- | --- |
| Direct fetch | 1,000 x ($0.001 + 10 x $0.0002) | $3.00 |
| Full HTTP client | 1,000 x ($0.001 + 10 x $0.0003) | $4.00 |
| Managed sessions | 1,000 x ($0.001 + 10 x $0.002) | $21.00 |
| Full browser rendering | 1,000 x ($0.001 + 10 x $0.004) | $41.00 |

- Monthly total **$250.00**
- search **$100.00**
- page content **$150.00**
- [Set this up in the Playground](https://alterlab.io/dashboard/playground?mode=search&n=5)

Page price follows the page: a set that needs full browser rendering costs more per page than a flat per-page rate elsewhere, and a set of ordinary pages costs less. Failed or blocked pages are not billed. Up to 5,000 free requests: about 5,000 direct fetch, 500 managed sessions or 250 full browser rendering requests.

Prices as of 2026-11-06.

[Start with the free requests](https://alterlab.io/signin)

- [Full pricing](https://alterlab.io/pricing)

## How AlterLab search is priced next to the alternatives

List prices as each vendor published them, read 2026-11-06. Links go to the source.

| Vendor | List price | Page content | Free tier |
| --- | --- | --- | --- |
| AlterLab | $0.001 per query (unified), $0.004 for Google or Bing; pages $0.0002 and up | Markdown per result in the same call, billed per page by fetch tier | Up to 5,000 free requests |
| Exa | $4 (lite), $7 (auto) or $12 (deep) per 1,000 searches of up to 10 results, plus $1 per 1,000 pages of content | Contents priced separately, per 1,000 pages | $10 monthly credit plus a $10 onboarding bonus |
| Perplexity | $5 per 1,000 requests (Search API), $1 per 1,000 with fast search | Per-request price; token caps shape the content | Not stated |
| Serper | $1.00 per 1,000 down to $0.30 per 1,000 by pack size | Search results only; fetching a page is a separate call | 2,500 free queries |
| Brave Search API | $5 per 1,000 requests | Snippets and an LLM context endpoint | $5 in free credits every month |
| Parallel | Search API $1 to $5 per 1,000 requests of 10 results; Task API $5 (lite) to $2,400 (ultra8x) per 1,000 runs | Search priced by processor; Task runs priced per run | $5 in free credits every month |

AlterLab's page price follows the page. If most of your pages need full browser rendering, a flat per-page rate elsewhere can cost less. If most are ordinary pages, the entry price is lower. Read 2026-11-06. Sources: [Exa](https://exa.ai/pricing), [Perplexity](https://docs.perplexity.ai/guides/pricing), [Serper](https://serper.dev/), [Brave Search API](https://brave.com/search/api/), [Parallel](https://parallel.ai/).

## Search API questions, answered

**What is a search API with page content?**

A search API with page content returns ranked search results and the text of each result page in a single request, so you do not run a separate fetch step. The AlterLab Search API does this with `scrape_results: true`. Each result comes back with its page as markdown and a `content_status` saying whether the page was read.

**How much does the AlterLab Search API cost?**

Unified search is $0.001 per query. Named engines are $0.001 for DuckDuckGo and $0.004 for Google or Bing. If you add page content, each page is billed at its fetch tier ($0.0002, $0.0003, $0.002 or $0.004) and only when the page was retrieved. There is no subscription. Prices as of 2026-11-06.

**Which search engines does it use?**

Set engine to auto for the unified search, which queries several independent sources at one flat price, or to duckduckgo (the API default), google, bing or yahoo for that engine's results. If a named engine fails, the request can fail over to another engine, the response reports `engine_used`, and you are billed for the engine that served it.

**What does the response contain?**

Each result has a title, URL, snippet and rank. With content on, it also has the page in content.markdown (or text, HTML, JSON or RAG chunks under content), plus a `content_status` and the fetch tier. The response includes `cost_breakdown`, `fetched_at` and `content_coverage`, the share of results whose pages were read.

**Are failed pages billed?**

No. A result page is billed only when it was retrieved, with `content_status` ok or partial (a short or capped page). Blocked, timed-out and dead-origin pages are not charged, so a query that retrieves three pages out of five costs the query plus three pages. The query itself is refunded when the search fails.

**Can I use it as a web search tool for an AI agent?**

Yes. The `alterlab_search` MCP tool runs the unified search and returns each page as concise markdown, and the REST endpoint has an agent preset that caps characters. A capped page is marked partial, so your agent can tell. The Python SDK (pip install alterlab) and Node SDK (npm install alterlab) wrap the same call.

**How is it different from Serper, Exa or Brave Search API?**

Serper and Brave Search API return search results, and Exa sells page contents as a separate line item, from the list prices each vendor published (read 2026-11-06). AlterLab returns the page in the same request and prices it by how hard the page was to fetch, starting at $0.0002. The table above shows each vendor with its source.

**Can I localise results?**

Yes. Pass country, language, city, coordinates, device and `time_range` to narrow a search. Google and Bing results include local, shopping, video and news blocks when the engine returns them, and People Also Ask, featured snippets and related searches come back as structured fields instead of HTML you parse.

**Can I try it without an account?**

Yes. The live window at the top of this page runs a real search with no account. It returns ten results without page content and is rate limited per IP address. To fetch pages, create an API key: Up to 5,000 free requests are included, with no card.

**Does it keep my queries?**

Set `zero_trace: true` and the result is not cached and no raw page or result row is stored for that request. Without it, identical queries can be served from cache, which is free, and `no_cache: true` fetches fresh results at the full price.

Last updated 2026-11-09.

## Search is one of six primitives on one key

The same key and balance cover the rest of the job.

- [**Research**Cited research on your own model key](https://alterlab.io/research)
- [**Extract**Turn a page into structured data](https://alterlab.io/extract)
- [**Crawl**Walk a whole site](https://alterlab.io/crawl)
- [**Scrape**Fetch one URL at the lowest tier that works](https://alterlab.io/docs/api/generated/scrape)
- [**Map**List every URL on a site](https://alterlab.io/map-api)

- [Search API reference](https://alterlab.io/docs/api/search)
- [Search guide](https://alterlab.io/docs/guides/search)
- [Search grounding use case](https://alterlab.io/use-cases/search-grounding)
- [Search monitoring use case](https://alterlab.io/use-cases/search-monitoring)
- [Pricing](https://alterlab.io/pricing)
- [Compare search vendors](https://alterlab.io/vs)
- [JavaScript rendering API](https://alterlab.io/javascript-rendering-api)
- [Browser actions API](https://alterlab.io/browser-actions-api)
- [n8n integration](https://alterlab.io/docs/integrations/n8n)
- [Scraping pipelines for AI agents](https://alterlab.io/blog/web-scraping-pipelines-for-ai-agents-cut-token-waste)

## Give your agent a search tool that reads the page.

Up to 5,000 free requests, no card. One key covers search, scrape, extract, crawl and research.

[Start building free](https://alterlab.io/signin)

- [Read the docs](https://alterlab.io/docs/api/search)
- [Need cited reports instead? See the Research API](https://alterlab.io/research)

about 5,000 direct fetch, 500 managed sessions or 250 full browser rendering requests.

- Machine-readable:
- [llms.txt](https://alterlab.io/llms.txt)
- [agent-setup.md](https://alterlab.io/agent-setup.md)
- [auth.md](https://alterlab.io/auth.md)
- [openapi.json](https://alterlab.io/openapi.json)
- [mcp server card](https://alterlab.io/.well-known/mcp/server-card.json)
- [ai-catalog](https://alterlab.io/.well-known/ai-catalog.json)
- [agent card](https://alterlab.io/.well-known/agent-card.json)
- [this page as markdown](https://alterlab.io/search-api.md)