Web Search API for AI Agents — Multi-Engine SERP API avatar

Web Search API for AI Agents — Multi-Engine SERP API

Pricing

from $1.50 / 1,000 search results

Go to Apify Store
Web Search API for AI Agents — Multi-Engine SERP API

Web Search API for AI Agents — Multi-Engine SERP API

Web search API for AI agents and RAG — multi-engine search across 34 sources returning clean JSON: web, images, videos, news, maps, science and files, plus full page text. A pay-per-result SERP API and a simple alternative to Tavily, Exa and Serper. No API key; batch up to 1,000 queries per run.

Pricing

from $1.50 / 1,000 search results

Rating

0.0

(0)

Developer

Agent X

Agent X

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 hours ago

Last modified

Features

Limited permissions

Share

Cheap, fast, multi-engine web search for AI agents, SEO tools and RAG pipelines. One run can carry up to 1,000 queries. No API key, no LLM inside — just clean JSON results merged from 34 keyless sources (Bing, DuckDuckGo, Brave, Wikipedia, GitHub, arXiv and more), powered by an open-source metasearch engine. Think of it as a SERP API for programs: queries in, ranked JSON results out.

For: AI-agent builders, RAG pipelines, SEO researchers, and anyone who needs search results in JSON without paying per-engine API prices or managing keys.

Quick start

  1. Add your queries to the queries list (batch them — one run with 100 queries is far cheaper than 100 runs with 1 query).
  2. Pick a mode: search, images, videos, news, maps, science, files, or read_page (fetch full page text for urls).
  3. Run it and read the Dataset. Every item is one result, charged once.

Example input

{
"queries": ["tokio runtime documentation", "open source metasearch engines compared", "best open source search for AI agents"],
"mode": "search",
"maxResults": 5,
"language": "en",
"includeRawContent": false,
"safeSearch": 1
}

Example output (one Dataset item)

{
"query": "tokio runtime documentation",
"mode": "search",
"title": "Tokio — Asynchronous Rust",
"url": "https://tokio.rs/",
"snippet": "Tokio is a runtime for writing reliable asynchronous applications with Rust...",
"engine": "bing",
"engines": ["bing", "duckduckgo"],
"category": "general",
"language": "en",
"position": 1,
"searchedAt": "2026-11-19T10:30:00.000Z",
"actor": "web-search-api",
"actorVersion": "0.1.0"
}

Modes

ModeWhat you get
searchGeneral web results merged and ranked across engines
imagesImage results with imageUrl + thumbnail
videosVideo results with thumbnails
newsNews results (combine with timeRange: day / week / month / year)
mapsPlaces / map results
scienceScholarly results (arXiv, Semantic Scholar, PubMed where available)
filesFile / document results
read_pageFull page content for the urls[] you pass (billed per successful read) — as plain text, Markdown, or raw HTML

Useful filters: engines (allow-list), includeDomains / excludeDomains, language, timeRange, safeSearch (0–2), includeRawContent (attach full page text to each result), strictEngines (fail a query on unknown engine names instead of falling back).

Options

OptionWhat it does
maxResultsResults per query, 1–100 (default 5). Values above 10 walk further result pages automatically — positions stay continuous (1, 2, 3, …) and duplicates are removed before billing
groupByQueryReturn one dataset item per query whose results field holds all of that query's results (plus resultCount). Charges stay per result — only the shape changes. Ideal for LLM/RAG pipelines that process one query at a time
siteOnly results from one site (e.g. docs.python.org), applied to every query — enforced at engine level, so it holds on every source
exactPhraseOnly results containing this exact phrase, applied to every query
excludeWordsSpace-separated words to exclude from every query
intitle / inurl / filetypeOnly results with the word/phrase in the title / in the URL / of this file type, applied to every query
pageFormatread_page output format: text (default), markdown (best for AI/RAG), or html (raw page HTML)
chunkSizeread_page: also split the returned content into chunks of this many characters (with chunkCount) — ready to embed
maxConcurrencyQueries processed in parallel inside the run (default 8, max 16). Results are always pushed in input order
agentContextAdd an agentContext object to every delivered result (see For AI agents below). Never changes charges

Deep results, grouped for an agent:

{ "queries": ["vector databases compared"], "maxResults": 25, "groupByQuery": true }

Read pages as Markdown, chunked for RAG:

{ "mode": "read_page", "urls": ["https://tokio.rs/"], "pageFormat": "markdown", "chunkSize": 1000 }

Site-scoped research:

{ "queries": ["getting started", "routing"], "site": "docs.python.org", "maxResults": 10 }

For AI agents

Turn on agentContext and every delivered result also carries an agentContext object, shaped the way AI-agent context APIs answer: the content cleaned and ready to paste straight into an LLM prompt, where it came from, and how big it is.

{
"agentContext": {
"text": "Example Domain\n\nThis domain is for use in documentation examples…",
"source": { "type": "search", "url": "https://example.com/", "title": "Example Domain" },
"citation": "\"Example Domain\" — https://example.com/",
"tokens": 21,
"retrievedAt": "2026-11-22T10:15:30.123Z",
"rank": 1
}
}
  • text — the result's content as clean text: the full page content when raw content is included, otherwise the title plus snippet. In read_page mode it is the page text (Markdown when pageFormat: "markdown").
  • source — {type, url, title}: where this result came from.
  • citation — a ready-to-paste citation line (with the result's date when the source provides one).
  • tokens — estimated token count of text (≈4 characters per token), so an agent can budget its context window.
  • retrievedAt — ISO 8601 UTC time the result was retrieved.
  • rank — the result's position for the query (search modes).

With groupByQuery, each result inside results carries its own agentContext, and the grouped row carries one too, holding all of that query's result texts joined together. agentContext is off by default, adds no rows, and never changes charges — it rides on the rows you already pay for.

Pricing (Pay-Per-Event)

EventPriceWhen
Actor start$0.0001Once per run
Search result$0.0015 — $1.50 per 1,000 resultsOnce per result pushed to the Dataset
Page read$0.0020 — $2.00 per 1,000 readsOnly when a page fetch succeeds (includeRawContent=true or mode=read_page)

Failed searches, empty results and retries are never charged. The prices above are the FREE-plan prices; Apify automatically applies plan discounts (BRONZE / SILVER / GOLD / PLATINUM / DIAMOND pay less).

What does $5 of Free credit actually buy? (honest math)

Compute on Apify is billed as CU = memory GB × hours, at $0.20/CU on Free/Starter. This Actor runs at 128 MB, so one second of runtime costs 0.125 × (1/3600) × $0.20 ≈ $0.0000069.

  • 100,000 batched searches at ~1 s each ≈ $0.69 of compute; at ~2 s each ≈ $1.39; at ~5 s each ≈ $3.47.
  • $5 = 25 CU = 200 hours at 128 MB. So $5 covers the compute for roughly 360k–720k fast batched searches.

But the per-result fee dominates, and we will not pretend otherwise: at $1.50 per 1,000 results, a search returning 5 results costs $0.0075 in event fees. 100,000 searches × 5 results = 500,000 results = $750 in event fees — $5 does not cover that. $5 of Free credit is a trial for ~3,300 results at $1.50/1k. For 100k searches, batch 100–1,000 queries per run, keep maxResults=5 and includeRawContent=false, and use a paid Apify plan for the volume discount. There is no way to make 100k searches both free for the user and profitable for the developer at $1.50/1k results — any Actor claiming that is hiding the fee somewhere.

Use it from code (API)

curl -X POST "https://api.apify.com/v2/acts/agentxpro~web-search-api/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "queries": ["open source metasearch"], "maxResults": 10 }'
from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("agentxpro/web-search-api").call(run_input={
"queries": ["open source metasearch"], "maxResults": 10,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["position"], item["title"], item["url"])

MCP

This Actor is Pay-Per-Event, so it is MCP-compatible: connect your MCP client (Claude, ChatGPT, Cursor) to Apify's official MCP server (https://mcp.apify.com) with your Apify token, add this actor (agentxpro/web-search-api) to the tool list, and the agent can search the web and read pages through it in plain language.

Limits (v1)

  • One engine profile only (34 keyless sources). No Google HTML scraping, no login/paywall bypass.
  • No JavaScript rendering — pages that need a browser return snippets only.
  • No PDF text extraction in v1; no login/paywall pages.
  • Results are ranked snippets from many engines, not AI-written answers (there is no LLM in this Actor).
  • Upstream engines can rate-limit or go down; the Actor retries, logs the engine, and continues with the others. A query with no results is logged and charged $0.
  • maxResults goes up to 100 per query; very deep pulls depend on how much the upstream sources hold for that query, and duplicates across pages are removed before billing.

FAQ

Do I need an API key or a subscription? No API key and no monthly subscription — you run it with your Apify account and pay per result. Failed and empty searches are never charged.

How is this different from Tavily, Exa, Serper or the Brave Search API? Those are single-provider APIs with their own keys and plans. This actor merges results from 34 sources into one ranked JSON feed, bills per result instead of per search, and needs no key management. If you already pay for one of them, this is a cheap second opinion; if you don't, it's the simplest way to give an agent web search.

Can AI agents call it directly? Yes — it is MCP-compatible (see the MCP section above), and it can also be called from any code through the Apify API or wired into Make, Zapier and n8n.

Which kinds of search are supported? Web, images, videos, news, maps and places, science and scholarly, and file/document search — plus read_page mode, which fetches the full text of specific URLs.

How many queries can one run carry? Up to 1,000 queries per run. Batching is the cheapest way to use it: one run of 100 queries costs far less compute than 100 separate runs.

How many results can one query return? Up to 100 (maxResults). Above 10 the actor walks further result pages and merges them, removing duplicates before billing.

Can I get one item per query instead of one per result? Yes — groupByQuery returns one item per query with a results array inside. Same charges, friendlier shape for agents.

Can read_page return Markdown or chunks? Yes — pageFormat: "markdown" returns Markdown, and chunkSize adds ready-to-embed chunks to the same item.

Where do the results come from? From 34 public search sources, merged and de-duplicated. Every result names the source it came from in its engine / engines fields, so you can audit where an answer came from.

  • Built on open-source components; all license texts are included in the package.
  • Only documented public APIs and feeds are used. Provider terms are respected; robots.txt is honoured for page reads; private/localhost URLs are rejected.
  • A code license does not grant rights over provider data — you are responsible for how you use the results.

Support

  • Actor issues: use the Issues tab on this Actor's Apify page.
  • Platform issues: Apify Discord.