Skip to main content
← All APIs

Web search and extraction for your next workflow.

Find public webpages and bring clean Markdown content into your app or agent.

Web Search$0.005 / search
Page Fetch$0.002 / fetch
OutputSearch results & Markdown
Search responsePOST /search
querycountlocalizationneed_content
results[].titlestring
Page title of each matched source
results[].urlstring
Canonical source URL for attribution or fetching
results[].snippetstring
Search excerpt matching the query
results[].contentstring
Inline page body when need_content is enabled
results[].rerank_scorenumber
Relevance score for ordering candidates

Published response fields from the current release.

View full response contract

Put live web content to work.

Grounded research

Find current public sources with titles, URLs and snippets before deciding what to read.

Clean page extraction

Turn selected HTTP or HTTPS pages into Markdown ready for indexing, review or storage.

Agent web access

Give AI agents traceable search and fetch tools under one project key and budget.

Keep source selection in your application.

Search and fetch are separate, independently priced operations so your product decides what to retrieve and how to attribute it.

Read the guide

Discover first, fetch on demand

Run POST /search with a query to evaluate URLs, titles and snippets, then call POST /fetch only for pages worth ingesting.

Markdown built for downstream pipelines

Fetch returns page title and clean Markdown content without browser chrome, ready for RAG indexing or agent context.

Operations and pricing

Release v1.0.0 · 2 endpoints

API reference
PathDescriptionBilling
POST/searchSearch the web$0.005 / search
POST/fetchFetch a webpage$0.002 / fetch
Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
40 s
Request body
16 KiB
Response body
4 MiB

Your first API request

Send requests to https://api.antapi.dev with ANTAPI_KEY in your environment.

Call directly from your AI agent

Connect over Streamable HTTP MCP with browser OAuth under your project budget.

web_searchweb_fetch
POST /web/v1/search
curl --request POST 'https://api.antapi.dev/web/v1/search' \
  --header "Authorization: Bearer $ANTAPI_KEY" \
  --data-raw '{"count":5,"need_content":false,"query":"Docusaurus documentation"}' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <YOUR_SAVED_OPERATION_KEY>'

Bring live web material into your workflow.

Create an account, issue a key, and make your first request.

Start building