How It Works
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.
Data Returned
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.
Pricing
Quick Start
Start tracking Claude AI mentions in seconds
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
}
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})")
FAQ
Frequently asked questions
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.
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.
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.
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.
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.