YepAPI
AI Optimization

Gemini Scraper

See what Google Gemini says about any topic — scrape AI responses with source references.

POST/v1/seo/ai/gemini
$0.05/call

Usage

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

ParameterTypeRequiredDescriptionDefault
keywordstringYesQuery to send to Gemini
locationstringNoCountry 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

FieldTypeDescription
okbooleanWhether the request succeeded
data.keywordstringThe query that was sent to Gemini
data.responsestringThe full text response from Google Gemini
data.referencesarraySources and references cited in the Gemini response
data.references[].urlstringURL of the cited source
data.references[].titlestringTitle of the cited source
data.references[].snippetstringSnippet or description of the cited source
Under the Hood

Scrapes Google Gemini for AI visibility monitoring.

On this page