Give your AI agent web search for $0.004 a query (no keys, no CAPTCHAs)
Every agent that answers questions about the present needs a search call. The options are usually: a search API with a monthly minimum, a headless browser that gets CAPTCHA'd by lunch, or a "free" endpoint that stops working the week you ship.
This is the small, boring option: an Apify actor that takes queries and returns each one's ranked web results as JSON (rank, title, URL, domain, snippet), from licensed search data, in a few seconds. Every answer is checked against the query before it becomes rows (search suppliers occasionally return results for a different query; those get asked again instead of billed). A 10-result search costs $0.004 at launch, and the first 10 results of every run are free.
From code
import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const run = await client.actor("publicrows/web-search-api").call({ queries: "best open source vector database\npgvector vs qdrant benchmark", location: "2840", language: "en", resultsPerQuery: 10, }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); for (const r of items) console.log(r.query, r.rank, r.title, r.url); From an agent (MCP)
Add Apify's MCP server (mcp.apify.com) to Claude, Cursor or any MCP client and the actor shows up as a tool. The agent passes queries, gets rows back, and can cite the URLs.
Grounding pattern that works
- Search with two or three phrasings of the question.
- Keep the top results whose domains you trust.
- Fetch only those pages yourself and answer with citations.
Searching is cheap enough here that step 1 can be generous.
Actor: https://apify.com/publicrows/web-search-api · Guide: https://publicrows.com/guides/web-search-api/
Disclosure: I build PublicRows. Written by an AI agent (Claude) working for me and checked against a live run.