Google Light Related Searches API

SerpApi is able to scrape, extract, and make sense of related searches results for certain search queries.

When SerpApi encounters related searches results, we add them to our JSON output as the array related_searches.

For each related searches result, we are able to extract its query, link, and serpapi_link.

Internet connection seems to not be working.
Register / Sign In for a full access to our APIs.
  • Collapse / Expand
    JSON
    CTRL + Left Mouse Button
  • Copy JSON path:ALT + Left Mouse Button
  • {
    • "error": "Internet connection seems to not be working."
    }

Code to integrate

  • require 'google_search_results' 
    
    params = {
      engine: "google_light",
      q: "Coffee",
      location: "Austin, Texas, United States",
      api_key: "secret_api_key"
    }
    
    search = GoogleSearch.new(params)
    related_searches = search.get_hash[:related_searches]
    

Free Plan · 100 searches / month

Get started

Example with q: latest hurricane

Example with q: latest hurricane

Code to integrate

  • require 'google_search_results' 
    
    params = {
      engine: "google_light",
      q: "latest hurricane",
      hl: "en",
      gl: "us",
      api_key: "secret_api_key"
    }
    
    search = GoogleSearch.new(params)
    related_searches = search.get_hash[:related_searches]
    

JSON Example

{
  ...
  "related_searches": [
    {
      "query": "Latest hurricane tracker",
      "link": "https://www.google.com/search?sca_esv=a03d90e6355dafdc&sca_upv=1&hl=en&gbv=1&gl=us&q=Latest+hurricane+tracker&sa=X&ved=2ahUKEwjywOT11ZKGAxVPJUQIHanlCYcQ1QJ6BAgCEAI",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&q=Latest+hurricane+tracker"
    },
    {
      "query": "Hurricane coming this weekend",
      "link": "https://www.google.com/search?sca_esv=a03d90e6355dafdc&sca_upv=1&hl=en&gbv=1&gl=us&q=Hurricane+coming+this+weekend&sa=X&ved=2ahUKEwjywOT11ZKGAxVPJUQIHanlCYcQ1QJ6BAgCEAQ",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&q=Hurricane+coming+this+weekend"
    },
    {
      "query": "Latest hurricane gulf of mexico",
      "link": "https://www.google.com/search?sca_esv=a03d90e6355dafdc&sca_upv=1&hl=en&gbv=1&gl=us&q=Latest+hurricane+gulf+of+mexico&sa=X&ved=2ahUKEwjywOT11ZKGAxVPJUQIHanlCYcQ1QJ6BAgCEAY",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&q=Latest+hurricane+gulf+of+mexico"
    },
    ...
  ],
  ...
}

JSON structure overview

{
  "related_searches": [
    {
      "query": "String - Query of the related search",
      "link":  "String - Link to the Google search",
      "serpapi_link":  "String - SerpApi Link of the Google search",
    },
  ],
}

SerpApi results for ""