How It Works
ChatGPT web search, structured for developers
Under the hood, Serpent sends your query to OpenAI's Responses API with the web_search_preview tool enabled. ChatGPT performs a live Bing web search, reads the results, and generates a grounded response with inline citations. Serpent extracts and normalizes every citation into clean JSON.
Data Returned
Everything you need from each ChatGPT query
Citation URLs
Every source URL that ChatGPT referenced in its response, in the order they were cited.
Page Titles
The title of each cited page as displayed by ChatGPT, useful for identifying which content earns citations.
Cited Text Excerpts
The exact text that ChatGPT extracted and cited from each source, showing what content the model found relevant.
Full Response Text
The complete ChatGPT response with all inline citations preserved, ready for analysis or display.
Token Usage
Detailed token breakdown: input tokens, output tokens, and total tokens consumed for each request.
Visibility Score
A 0-100 score showing how prominently your target domain was cited relative to other sources in the response.
Pricing
Quick Start
Start tracking ChatGPT citations in seconds
curl "https://apiserpent.com/api/ai/rank/chatgpt?q=best+crm+software+for+startups" \
-H "X-API-Key: YOUR_API_KEY"
# Response
{
"engine": "chatgpt",
"model": "gpt-4o",
"query": "best crm software for startups",
"response_text": "Based on my research, here are the top CRM options...",
"citations": [
{
"position": 1,
"url": "https://example.com/best-crms",
"title": "10 Best CRM Software for Startups in 2026",
"cited_text": "HubSpot CRM offers a free tier that includes..."
},
{
"position": 2,
"url": "https://another-site.com/crm-guide",
"title": "Startup CRM Buyer's Guide",
"cited_text": "For teams under 10 people, Pipedrive provides..."
}
],
"token_usage": {
"input_tokens": 1247,
"output_tokens": 892,
"total_tokens": 2139
},
"visibility_score": null,
"cost": 0.005
}
Pass a domain parameter to calculate the visibility score for a specific target.
curl "https://apiserpent.com/api/ai/rank/chatgpt?q=best+crm+software&domain=hubspot.com" \ -H "X-API-Key: YOUR_API_KEY" # visibility_score will be calculated for hubspot.com
FAQ
Frequently asked questions
The API sends your query to OpenAI's Responses API with the web_search_preview tool enabled. ChatGPT performs a live web search, generates a response with inline citations, and Serpent extracts and normalizes all citation data into a structured JSON format.
Each response includes: an array of citations with URL, title, and cited text excerpt; the full ChatGPT response text; token usage breakdown (input, output, total); model version used; and a visibility score if a target domain was specified.
The API uses OpenAI's GPT-4o model with the web_search_preview tool. This is the latest model with web browsing capabilities, providing the most accurate and up-to-date citations.
ChatGPT citation tracking starts at $5.56 per 1,000 requests on the Scale tier. Default pricing is $10.00/1K, Growth tier is $7.78/1K, and Scale tier is $5.56/1K. This includes the upstream OpenAI API costs for the GPT-4o model with web search. All new accounts get 100 free searches to test the endpoint.
Yes. You can query any keyword and check if competitor domains appear in ChatGPT's citations. Compare citation counts, positions, and cited text across brands to build competitive intelligence reports for AI-driven search.
Track your ChatGPT visibility now
Sign up for free and start monitoring how ChatGPT cites your brand. 100 free searches included.