YepAPI
SERP

Google AI Mode

Google AI Mode results — AI-generated answers, cited sources, and AI Overview data.

POST/v1/serp/google-ai-mode
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/serp/google-ai-mode', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ query: 'what is retrieval augmented generation', depth: 10 }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/serp/google-ai-mode \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "what is retrieval augmented generation", "depth": 10}'

Request Body

ParameterTypeRequiredDescriptionDefault
querystringYesSearch query to retrieve Google AI Mode results for
depthnumberNoNumber of results to return10
location_codenumberNoTarget country code (e.g., 2840 for US). See Location Codes.2840
languagestringNoISO language code (e.g., en, es)"en"

Response

{
  "ok": true,
  "data": {
    "query": "what is retrieval augmented generation",
    "totalResults": 0,
    "results": []
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.querystringThe search query that was executed in AI Mode
data.totalResultsnumberTotal number of results found
data.resultsobject[]Array of AI Mode result items (may be empty if no AI-generated content is available)
data.results[].positionnumberPosition in results (1-indexed)
data.results[].typestringResult type (e.g., aiOverview, citedSource)
data.results[].titlestringTitle of the result or cited source
data.results[].urlstringURL of the cited source
data.results[].descriptionstringAI-generated summary or source excerpt
data.results[].domainstringDomain of the cited source
Under the Hood

Under the hood, this queries our SERP engine. We normalize the response format and flatten nested structures for consistency.

On this page