- Home
- Web Search API
Web Search API
Search the web, extract page content and research across sources. One API key for your application or AI agent.
set up https://beatapi.io/SKILL.mdGive this to your agent
- 4 · Search / Read / Map / Research
- REST / MCP
- Markdown · JSON
Four BeatAPI Web Search API endpoints: Search, Read, Map, and Research
Inspect POST /v1/web/* requests, MCP tools (web_search, web_read, web_map, web_research), and structured Markdown or cited JSON responses.
Search
Ranked results for a query. Queries in Chinese, Japanese or Korean search in that language and region by default.
/v1/web/search- query
- OpenAPI 3.1 webhooks
- max_results
- 3
/v1/web/searchOpenAPI Specification v3.1.0
The OpenAPI Specification defines a standard, language-agnostic interface to HTTP APIs.
POST /v1/web/search
cURLPOST /v1/web/search
JSONRead
Page content as Markdown or plain text. Pass a query and a character limit to keep only what matters.
/v1/web/read- urls
- https://spec.openapis.org/oas/v3.1.0
- query
- webhooks object
- max_chars
- 4000
/v1/web/readWebhooks Object
A map of possibly out-of-band callbacks related to the parent operation.
POST /v1/web/read
cURLPOST /v1/web/read
JSONMap
List the URLs inside a site, narrowed by path patterns, so your agent reads real pages instead of guessing URLs.
/v1/web/map- url
- https://spec.openapis.org
- select_paths
- /oas/.*
- limit
- 20
/v1/web/mapPOST /v1/web/map
cURLPOST /v1/web/map
JSONResearch
Weighs several sources and returns notes with numbered citations. It can also search posts on X for what people are saying.
/v1/web/research- query
- What does OpenAPI 3.1 add for describing webhooks?
/v1/web/researchOpenAPI 3.1 adds a top-level `webhooks` field for requests the API may send that consumers can choose to implement [source_1].
POST /v1/web/research
cURLPOST /v1/web/research
JSONHow AI agents combine Web Search, Read, Map, and Research
From checking documentation to comparing products, combine the tools around the answer you need.
Find the current specification or release notes, then read the relevant passage before writing an integration.
Webhooks Object
A map of possibly out-of-band callbacks related to the parent operation.
Read the page before you cite it
Search results are leads. Read the pages your answer depends on, with a query that keeps the response short.
Map a product site, locate its pricing and docs, then read the limits that matter to your comparison.
Use Research when the question needs several sources weighed. Follow its task status and review the sources before citing.
OpenAPI 3.1 adds a top-level `webhooks` field for requests the API may send that consumers can choose to implement [source_1].
How to connect BeatAPI Web Search API via MCP or REST
The same key works for web tools, models and social data.
IntegrationsUse the same request bodies from your backend, or connect an MCP client for web_search, web_read, web_map and web_research. Keep the API key in your application's secret settings.
POST /v1/web/search
cURLSend your agent: set up https://beatapi.io/SKILL.md. It reads the guide, asks for your key and learns when to search, read or research.
set up https://beatapi.io/SKILL.mdGive this to your agent
How BeatAPI Web Search API billing works per endpoint
Each response includes usage and cost. Billing follows the work each tool performs.
Review pricing and billingSearchweb_search · POST /v1/web/search | Per successful call. |
|---|---|
Readweb_read · POST /v1/web/read | Per URL read. Unreadable URLs are not charged. |
Mapweb_map · POST /v1/web/map | Per URL returned. Empty maps are not charged. |
Researchweb_research · POST /v1/web/research | Per successful run, including partial results. Failed runs are not charged. |
Budget, AI prompts & engineering guardrails
See what $1 buys, copy ready-to-run prompts for Claude or Cursor, and review real edge cases before writing code.
Pages read per $1 ($0.002 / URL)
web_read bills per readable URL (failed URLs cost $0); web_map bills $0.001 per returned URL.
Web searches per $1 ($0.005 / call)
Flat $0.005 across all 8 search types (web, news, scholar, patents, shopping, places, images, videos).
Per cited web_research brief
Multi-source research with inline source URLs ($1 buys 20 runs); failed runs cost $0.
One API key across Social, SEO, Web Search & AI Models. Unlike single-vertical data APIs, BeatAPI lets your agent chain Social Data, SEO metrics, live Web Search, and leading LLMs from one balance and one MCP server.
Say this to your AI
Once BeatAPI MCP is connected, paste any of these directly into Claude Code, Cursor, or Codex.
Use web_map on https://docs.example.com filtered to /guides and /pricing, pick the 3 most relevant URLs, read them with web_read, and build a comparison table.
web_mapweb_readEdge cases & operational limits
04- web_research vs search + read
- Use search + read when you already know the target sites (lower latency and cost); use web_research when you need multi-source cited synthesis.
- Filter large sites with select_paths
- Pass select_paths (e.g. ["/docs", "/pricing"]) to web_map before batch-reading so agents never crawl irrelevant pages.
- Public pages only
- BeatAPI does not bypass logins, paywalls, or anti-bot gates; private or gated URLs return restricted or empty results.
- Python 403 & timeout hygiene
- Set generous client timeouts (60s+ for web_research) and send standard Authorization: Bearer headers in requests/httpx.
Deep-dive guides & Q&A
06MCP prompt, cURL example, and cost breakdown.
Use select_paths on web_map to keep token usage lean.
Latency, citation depth, and cost trade-offs.
Exact parameter bounds for web_search.
Auth headers, timeouts, and client troubleshooting.
Truncated text, partial reads, and private pages.
Web Search API FAQ
Use Search to find ranked results, Read to extract content from URLs you already have, Map to discover a site's pages, and Research to investigate a question across several sources.
Yes. Claude Code, Codex, Cursor and other compatible clients can use the tools through BeatAPI MCP or Skills. Your backend can call the REST endpoints directly, using the same BeatAPI key and balance.
Yes. Find sources with Search, then pass their URLs to Read for Markdown or plain text. Add a query to return relevant passages and max_chars to control the amount of content per page.
Choose Search when you need a list of sources to explore. Choose Research when a question needs several searches and page reads combined into research notes with source references, such as a product comparison or a technical briefing.
Yes. Set include_x to true to include posts from X alongside web research. Posts used in the research are listed with their x.com URLs in the returned sources.
Search is billed per call, Read per URL read, Map per URL returned and Research per successful run. Responses report usage and cost, and all four tools use your existing BeatAPI balance.
Explore more capabilities
Models, social data, SEO and web tools. One API key.
