How It Works
Gemini Search grounding, structured for developers
Serpent sends your query to Google's Gemini model with Google Search grounding enabled. Gemini augments its response with live Google Search data, providing real-time citations and source URLs. Serpent analyzes the response for brand mentions, extracts citation data, and returns everything as clean JSON.
Data Returned
Comprehensive AI visibility data from Gemini
Mention Detection
Boolean flag plus detailed mention objects with position, context text, and sentiment analysis for each brand reference.
Position Tracking
Where your brand appeared in Gemini's response relative to competitors, with ordinal position data.
Citation URLs
All source URLs that Gemini referenced via Google Search grounding, with titles and domains.
Context & Sentiment
The surrounding text where your brand was mentioned, plus sentiment classification (positive, neutral, negative).
Pricing - Cheapest AI Engine
Quick Start
Track AI visibility in seconds
Send a query and your brand domain. Get back mention data, citations, and position tracking from Gemini AI responses.
curl "https://apiserpent.com/api/ai/rank/gemini?q=best+project+management+tools&domain=monday.com" \ -H "X-API-Key: YOUR_API_KEY"
{
"query": "best project management tools",
"engine": "gemini",
"domain": "monday.com",
"mentioned": true,
"mentions": [
{
"position": 2,
"context": "Monday.com is a popular project management platform known for its visual workflow builder...",
"sentiment": "positive"
}
],
"citations": [
{
"url": "https://monday.com/project-management",
"title": "Project Management Software | monday.com"
}
],
"totalCitations": 8,
"credits": { "used": 1, "remaining": 99 }
}
FAQ
Frequently asked questions
The Gemini AI Rank API lets you track how your brand or website is mentioned in Google Gemini AI responses. It sends your query to Gemini with Google Search grounding enabled, analyzes the response, and returns brand mentions, citation URLs, mention positions, and sentiment data.
Google offers competitive API pricing for Gemini, especially with Search grounding. The underlying API costs are lower than Claude or Perplexity. At $2.20/1K Default ($1.22/1K Scale), Gemini is the cheapest AI ranking engine. Compare with Claude ($12.00/1K Default) and Perplexity ($20.00/1K Default).
Google Search grounding connects Gemini to real-time Google Search data. When enabled, Gemini augments its responses with current web results, providing citations and source URLs. This makes AI responses more accurate and allows us to track which websites Gemini cites.
Provide a query and a brand or domain to track. The API sends the query to Gemini, analyzes the AI response, and identifies where your brand is mentioned. It returns the mention position, context, citation URLs, and overall sentiment. You can track multiple brands per query.
Yes. Serpent API offers AI Rank endpoints for Gemini, Claude, ChatGPT, and Perplexity. You can run the same query across all engines to compare how your brand appears in different AI platforms. This gives you a comprehensive view of your AI visibility landscape.
Track Gemini AI visibility for free
100 free searches included. Test brand mention tracking in Google Gemini with no credit card required.