AI Optimization
Gemini Scraper
See what Google Gemini says about any topic — scrape AI responses with source references.
POST
$0.05/call/v1/seo/ai/geminiUsage
const res = await fetch('https://api.yepapi.com/v1/seo/ai/gemini', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ keyword: 'best seo tools for startups', location: 'us' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/ai/gemini \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "best seo tools for startups", "location": "us"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keyword | string | Yes | Query to send to Gemini | — |
location | string | No | Country code | "us" |
Response
{
"ok": true,
"data": {
"keyword": "best seo tools for startups",
"response": "For startups looking to improve their SEO, several tools stand out based on pricing, features, and ease of use...",
"references": [
{
"url": "https://ahrefs.com/blog/seo-tools",
"title": "12 Best SEO Tools in 2026",
"snippet": "A curated list of SEO tools..."
},
{
"url": "https://www.searchenginejournal.com/best-seo-tools",
"title": "Top SEO Tools Reviewed",
"snippet": "Expert reviews of the best..."
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.keyword | string | The query that was sent to Gemini |
data.response | string | The full text response from Google Gemini |
data.references | array | Sources and references cited in the Gemini response |
data.references[].url | string | URL of the cited source |
data.references[].title | string | Title of the cited source |
data.references[].snippet | string | Snippet or description of the cited source |
Under the Hood
Scrapes Google Gemini for AI visibility monitoring.