Anthropic web_search Tool

Claude AI Ranking from $6.67/1K

The cheapest Claude AI ranking API. Monitor how Claude AI mentions and ranks your brand when answering queries with web search. Get structured rank data, citations, context, and full response text. 100 free searches included.

Try Now API Documentation

Claude web search, structured for developers

Under the hood, Serpent sends your query to Anthropic's Claude model with the web_search tool enabled. Claude performs a live web search, reads the results, and generates a grounded response with citations. Serpent then checks whether your brand was mentioned, extracts its rank position, and returns everything as clean JSON.

1
Your Query
Send a keyword and your brand name to the Serpent API endpoint
2
Claude + Web Search
Claude searches the web and generates a grounded, cited response
3
Structured JSON
Receive mention status, rank position, citations, and full response text

Everything you need from each Claude query

Mentioned (Boolean)

A simple true/false indicating whether Claude mentioned your brand in the response -- the fastest way to track AI visibility.

Rank Position

Where your brand appeared in Claude's response relative to competitors. Track whether you're #1 or buried at #10.

Context

The exact surrounding text where Claude mentioned your brand, showing how the AI described and positioned you.

Citations

All source URLs that Claude referenced in its response, showing which web pages informed the AI's answer.

Full Response Text

The complete Claude response with all inline citations preserved, ready for analysis or display.

Cost Tracking

Per-request cost breakdown so you can monitor spend and calculate ROI on your AI visibility tracking.

$6.67
per 1,000 Claude rank tracking queries (Scale tier)
$12.00/1K
Default tier
$9.33/1K
Growth tier
$6.67/1K
Scale tier
100 free
Trial searches

Start tracking Claude AI mentions in seconds

cURL - Claude Rank Query
curl "https://apiserpent.com/api/ai/rank/claude?keyword=best+crm+software+for+startups" \
  -H "X-API-Key: YOUR_API_KEY"

# Response
{
  "engine": "claude",
  "query": "best crm software for startups",
  "mentioned": true,
  "rank": 3,
  "context": "...Another strong option is YourBrand, which offers an intuitive...",
  "citations": [
    {
      "position": 1,
      "url": "https://example.com/best-crms",
      "title": "10 Best CRM Software for Startups in 2026"
    },
    {
      "position": 2,
      "url": "https://another-site.com/crm-guide",
      "title": "Startup CRM Buyer's Guide"
    }
  ],
  "response_text": "Based on my research, here are the top CRM options for startups...",
  "cost": 0.006
}
Python - Track Multiple Keywords
import requests

API_KEY = "YOUR_API_KEY"
keywords = ["best crm software", "top project management tools", "email marketing platforms"]

for kw in keywords:
    resp = requests.get(
        "https://apiserpent.com/api/ai/rank/claude",
        params={"q": kw},
        headers={"X-API-Key": API_KEY}
    )
    data = resp.json()
    status = "Mentioned" if data["mentioned"] else "Not mentioned"
    rank = data.get("rank", "N/A")
    print(f"{kw}: {status} (rank: {rank})")

Frequently asked questions

How does the Claude AI rank tracking API work?

The API sends your query to Anthropic's Claude model with the web_search tool enabled. Claude searches the web, generates a grounded response with citations, and Serpent extracts whether your brand was mentioned, its rank position, the surrounding context, and all cited sources into structured JSON.

What data does the Claude rank API return?

Each response includes: a boolean "mentioned" field, your brand's rank position, the context surrounding your mention, an array of citations with URLs and titles, the full Claude response text, and a cost breakdown per request.

How does Claude's web_search tool differ from ChatGPT's?

Anthropic's web_search tool gives Claude access to live web results to ground its answers in real-time data. Unlike ChatGPT which uses Bing via OpenAI's web_search_preview, Claude uses its own web search infrastructure. Both produce grounded, cited responses but may return different sources and rankings for the same query -- which is why tracking both is valuable.

How much does Claude rank tracking cost?

Claude AI rank tracking starts at $6.67 per 1,000 requests on the Scale tier. Default pricing is $12.00/1K, Growth tier is $9.33/1K, and Scale tier is $6.67/1K. This includes upstream Anthropic API costs. All new accounts get 100 free searches to test the endpoint.

Can I compare my brand's rank across Claude and ChatGPT?

Yes. Serpent API offers both Claude and ChatGPT rank tracking endpoints with a unified response format. You can run the same query against both engines and compare how each AI model ranks and cites your brand versus competitors.

Track your Claude AI visibility now

Sign up for free and start monitoring how Claude mentions your brand. 100 free searches included.

Related pages