Google Related Questions API

Google Related Questions API allows you to retrieve more results from Google's "People also ask" search block. The API is accessed through the following endpoint: /search?engine=google_related_questions. A user may query the following: https://serpapi.com/search?engine=google_related_questions utilizing a GET request. Head to the playground for a live and interactive demo.

API Parameters

Search Query

next_page_token

Required

Parameter defines the token needed to show the additional related questions that Google generates when a specifc question gets clicked. This token can be found in the Related Questions block returned in a regular Google Search API response.

Serpapi Parameters

engine

Required

Set parameter to google_related_questions to use the Google Related Questions API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the Google Related Questions results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data similar to related questions.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

This API does not have html response, just a text. search_metadata.prettify_html_file contains prettified version of result. It is displayed in playground.

API Examples

Example with next_page_token: eyJvbnMiOiI2MjAiLCJ... parameter

Example with next_page_token: eyJvbnMiOiI2MjAiLCJ... parameter

JSON Example

{
  ...
  "related_questions": [
    {
      "question": "What are negative effects of coffee?",
      "snippet": "Caffeine is possibly unsafe when used for a long time or in doses over 400 mg daily. Caffeine can cause insomnia, nervousness, restlessness, nausea, increased heart rate, and other side effects. Larger doses might cause headache, anxiety, and chest pain. Caffeine is likely unsafe when used in very high doses.",
      "title": "CAFFEINE - Uses, Side Effects, and More - WebMD",
      "link": "https://www.webmd.com/vitamins/ai/ingredientmono-979/caffeine#:~:text=Caffeine%20is%20possibly%20unsafe%20when,used%20in%20very%20high%20doses.",
      "source_logo": "https://serpapi.com/searches/66d9bb50de9834129c5f117a/images/86524565fafc7cca3e581d6192258a41643f3bfcd1ba01b2b899600261fda0a8.png",
      "next_page_token": "eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9vQkNreEJTa2M1U210T1JsQjZhMjAyTVRCMVVsRmhlV05HVnpSdUxTMTRWemhVUm5OVk4yaGxjRXRCWlRKR1RUbHlRWGswU2sxWWVXSTVYemhIWkhWTFNscExNRUpPV25WNWFtcFFUa3d3RWhaT1RIWmFXbk54WDBSTVV6RjNUalJRYnpkcVdFOUJHaUpCUmxoeVJXTnZZMHBFWmxacU5GQnljR3h0Um5KV1lsOVdOVmh1WkcxWFZGRjMiLCJmY3YiOiIzIiwiZWkiOiJOTHZaWnNxX0RMUzF3TjRQbzdqWE9BIiwicWMiOiJDZ1pqYjJabVpXVVFBSDA1VEQ4XyIsInF1ZXN0aW9uIjoiV2hhdCBhcmUgbmVnYXRpdmUgZWZmZWN0cyBvZiBjb2ZmZWU/IiwibGsiOiJHaU4zYUdGMElHRnlaU0J1WldkaGRHbDJaU0JsWm1abFkzUnpJRzltSUdOdlptWmxaUSIsImJzIjoiYy1QeTRWTDBMRlpJems5TFMwMVZTTV9QVDFISUwxSklTa3hSU0FQU0dhbUpPU1VaOWhLYmVEUVlqWlNrRkRJSnFPUnk0WklMejZoRVVsZWNEMUVLVWxPWlgyb3ZzVm5PU0Y1S3RoeWZJaTVYTHZud2pNUVNoY1NpVkFWREE0V2sxTHpVdE15U1lvWDhOS2dPZXdrVEl3VXB1WEs4aXJqaXVIVEF4cVRrcHdLRjgxSVZra3NMRU5KQVlZV1NmSkI5UUZfa3AxVGFTeXl1TmRLVzBpeUhhekhFcjRFcmdFc0Y3c3k4MVBURWtzeXlWSVZVb05Ka1ZMY2VkVFZTbFZJdUo2eVV5NDFMSGhFWnNLQUZXNWlkbVpLWFdsbHNMOUVtQ19KNUpsNVZBb3dBIn0=",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9vQkNreEJTa2M1U210T1JsQjZhMjAyTVRCMVVsRmhlV05HVnpSdUxTMTRWemhVUm5OVk4yaGxjRXRCWlRKR1RUbHlRWGswU2sxWWVXSTVYemhIWkhWTFNscExNRUpPV25WNWFtcFFUa3d3RWhaT1RIWmFXbk54WDBSTVV6RjNUalJRYnpkcVdFOUJHaUpCUmxoeVJXTnZZMHBFWmxacU5GQnljR3h0Um5KV1lsOVdOVmh1WkcxWFZGRjMiLCJmY3YiOiIzIiwiZWkiOiJOTHZaWnNxX0RMUzF3TjRQbzdqWE9BIiwicWMiOiJDZ1pqYjJabVpXVVFBSDA1VEQ4XyIsInF1ZXN0aW9uIjoiV2hhdCBhcmUgbmVnYXRpdmUgZWZmZWN0cyBvZiBjb2ZmZWU%2FIiwibGsiOiJHaU4zYUdGMElHRnlaU0J1WldkaGRHbDJaU0JsWm1abFkzUnpJRzltSUdOdlptWmxaUSIsImJzIjoiYy1QeTRWTDBMRlpJems5TFMwMVZTTV9QVDFISUwxSklTa3hSU0FQU0dhbUpPU1VaOWhLYmVEUVlqWlNrRkRJSnFPUnk0WklMejZoRVVsZWNEMUVLVWxPWlgyb3ZzVm5PU0Y1S3RoeWZJaTVYTHZud2pNUVNoY1NpVkFWREE0V2sxTHpVdE15U1lvWDhOS2dPZXdrVEl3VXB1WEs4aXJqaXVIVEF4cVRrcHdLRjgxSVZra3NMRU5KQVlZV1NmSkI5UUZfa3AxVGFTeXl1TmRLVzBpeUhhekhFcjRFcmdFc0Y3c3k4MVBURWtzeXlWSVZVb05Ka1ZMY2VkVFZTbFZJdUo2eVV5NDFMSGhFWnNLQUZXNWlkbVpLWFdsbHNMOUVtQ19KNUpsNVZBb3dBIn0%3D"
    },
    {
      "question": "Is coffee bad for your kidneys?",
      "snippet": "Research has not shown that drinking 3-4 cups of coffee a day increases the risk of kidney disease or increases the rate of decline of kidney function, however, moderating how much coffee you drink is a good idea. Those struggling with blood pressure control should especially drink less than three cups per day.",
      "title": "Does Coffee Lead to Kidney Disease - Campbell County Health",
      "date": "Oct 1, 2022",
      "link": "https://www.cchwyo.org/news/2022/october/does-coffee-lead-to-kidney-disease/#:~:text=Research%20has%20not%20shown%20that,than%20three%20cups%20per%20day.",
      "source_logo": "https://serpapi.com/searches/66d9bb50de9834129c5f117a/images/86524565fafc7cca3e581d6192258a419232666bad80727bfde3621230f51751.png",
      "next_page_token": "eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9vQkNreEJTa2M1U210T1JsQjZhMjAyTVRCMVVsRmhlV05HVnpSdUxTMTRWemhVUm5OVk4yaGxjRXRCWlRKR1RUbHlRWGswU2sxWWVXSTVYemhIWkhWTFNscExNRUpPV25WNWFtcFFUa3d3RWhaT1RIWmFXbk54WDBSTVV6RjNUalJRYnpkcVdFOUJHaUpCUmxoeVJXTnZZMHBFWmxacU5GQnljR3h0Um5KV1lsOVdOVmh1WkcxWFZGRjMiLCJmY3YiOiIzIiwiZWkiOiJOTHZaWnNxX0RMUzF3TjRQbzdqWE9BIiwicWMiOiJDZ1pqYjJabVpXVVFBSDA1VEQ4XyIsInF1ZXN0aW9uIjoiSXMgY29mZmVlIGJhZCBmb3IgeW91ciBraWRuZXlzPyIsImxrIjoiR2g1cGN5QmpiMlptWldVZ1ltRmtJR1p2Y2lCNWIzVnlJR3RwWkc1bGVYTSIsImJzIjoiYy1QeTRWTDBMRlpJems5TFMwMVZTTV9QVDFISUwxSklTa3hSU0FQU0dhbUpPU1VaOWhLYmVEUVlqWlNrRkRJSnFPUnk0WklMejZoRVVsZWNEMUVLVWxPWlgyb3ZzVm5PU0Y1S3RoeWZJaTVYTHZud2pNUVNoY1NpVkFWREE0V2sxTHpVdE15U1lvWDhOS2dPZXdrVEl3VXB1WEs4aXJqaXVIVEF4cVRrcHdLRjgxSVZra3NMRU5KQVlZV1NmSkI5UUZfa3AxVGFTeXl1TmRLVzBpeUhhekhFcjRFcmdFc0Y3c3k4MVBURWtzeXlWSVZVb05Ka1ZMY2VkVFZTbFZJdUo2eVV5NDFMSGhFWnNLQUZXNWlkbVpLWFdsbHNMOUVtQ19KNUpsNVZBb3dBIn0=",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9vQkNreEJTa2M1U210T1JsQjZhMjAyTVRCMVVsRmhlV05HVnpSdUxTMTRWemhVUm5OVk4yaGxjRXRCWlRKR1RUbHlRWGswU2sxWWVXSTVYemhIWkhWTFNscExNRUpPV25WNWFtcFFUa3d3RWhaT1RIWmFXbk54WDBSTVV6RjNUalJRYnpkcVdFOUJHaUpCUmxoeVJXTnZZMHBFWmxacU5GQnljR3h0Um5KV1lsOVdOVmh1WkcxWFZGRjMiLCJmY3YiOiIzIiwiZWkiOiJOTHZaWnNxX0RMUzF3TjRQbzdqWE9BIiwicWMiOiJDZ1pqYjJabVpXVVFBSDA1VEQ4XyIsInF1ZXN0aW9uIjoiSXMgY29mZmVlIGJhZCBmb3IgeW91ciBraWRuZXlzPyIsImxrIjoiR2g1cGN5QmpiMlptWldVZ1ltRmtJR1p2Y2lCNWIzVnlJR3RwWkc1bGVYTSIsImJzIjoiYy1QeTRWTDBMRlpJems5TFMwMVZTTV9QVDFISUwxSklTa3hSU0FQU0dhbUpPU1VaOWhLYmVEUVlqWlNrRkRJSnFPUnk0WklMejZoRVVsZWNEMUVLVWxPWlgyb3ZzVm5PU0Y1S3RoeWZJaTVYTHZud2pNUVNoY1NpVkFWREE0V2sxTHpVdE15U1lvWDhOS2dPZXdrVEl3VXB1WEs4aXJqaXVIVEF4cVRrcHdLRjgxSVZra3NMRU5KQVlZV1NmSkI5UUZfa3AxVGFTeXl1TmRLVzBpeUhhekhFcjRFcmdFc0Y3c3k4MVBURWtzeXlWSVZVb05Ka1ZMY2VkVFZTbFZJdUo2eVV5NDFMSGhFWnNLQUZXNWlkbVpLWFdsbHNMOUVtQ19KNUpsNVZBb3dBIn0%3D"
    }
  ]
  ...
}