Google Ask AI Mode API

For eligible searches, Google may display an “Ask AI Mode anything” block with suggested questions. SerpApi extracts this section into ask_ai_mode with the following fields: position, link, image, question, and serpapi_link. The serpapi_link is a ready-to-use SerpApi request URL targeting the Google AI Mode engine, derived from the Google link's q parameter.

API Examples

Results for: esport teams

Results for: esport teams

JSON Example

{
  ...
  "ask_ai_mode": [
    {
      "position": 1,
      "link": "https://www.google.com/search?sca_esv=a95b1a567a7f3cbf&hl=en&gl=us&udm=50&q=What+to+look+for+in+sunscreen+if+I+have+sensitive+skin&aep=78&sa=X&ved=2ahUKEwi47-mDxpKQAxVGUKQEHV6KCLkQhdULegUIgQEQCw",
      "image": "https://ssl.gstatic.com/showcase/square/en-us/light/7010.jpg",
      "question": "how to identify sunscreen for sensitive skin",
      "serpapi_link": "https://serpapi.com/search.json?engine=google_ai_mode&q=What+to+look+for+in+sunscreen+if+I+have+sensitive+skin&hl=en&gl=us&device=mobile"
    },
    {
      "position": 2,
      "link": "https://www.google.com/search?sca_esv=a95b1a567a7f3cbf&hl=en&gl=us&udm=50&q=hardside+vs+softside+carry+on&aep=78&sa=X&ved=2ahUKEwi47-mDxpKQAxVGUKQEHV6KCLkQhdULegUIgQEQEQ",
      "image": "https://ssl.gstatic.com/showcase/square/en-us/light/7011.jpg",
      "question": "hardside vs softside carry-on",
      "serpapi_link": "https://serpapi.com/search.json?engine=google_ai_mode&q=hardside+vs+softside+carry+on&hl=en&gl=us&device=mobile"
    }
    ...
  ]
  ...
}

JSON structure overview

{
  ...
  "ask_ai_mode": [
    {
        "position": "Integer - Position of the item in the block",
        "link": "String - URL to the Google search for the suggested question",
        "image": "String - URL of the thumbnail image",
        "question": "String - Suggested question text",
        "serpapi_link": "String - SerpApi link to query the same question via Google AI Mode"
    },
    ...
  ],
  ...
}