### Retrieve Google Search Results Source: https://serper.dev This snippet demonstrates how to fetch general Google search results for a given query using the Serper API. Ensure you have your API key configured. ```python import requests API_KEY = "YOUR_API_KEY" QUERY = "The World's Fastest & Cheapest" url = "https://google.serper.dev/search" params = { "q": QUERY, } headers = { "X-API-KEY": API_KEY, "Content-Type": "application/json" } response = requests.post(url, headers=headers, params=params) print(response.json()) ``` -------------------------------- ### Google Search Results Source: https://serper.dev Retrieve standard Google search results, including knowledge graph and organic listings. This is the most common use case for the API. ```json { "knowledgeGraph": { "title": "Google Search", "type": "Website", "website": "https://google.com/", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmIN-ig-CYut49zgv_OgPnqThWsg2BCotm216cyQrdDuNvi0zzbyEWBA&s=0", "description": "Google Search is a search engine provided and operated by Google. Handling more than 3.5 billion searches per day, it has a 92% share of the global search engine market. It is the most-visited website in the world. Additionally, it is the most...", "descriptionSource": "Wikipedia", "descriptionLink": "https://en.wikipedia.org/wiki/Google_Search", "attributes": { "Written in": "Python, C, and C++", "Category": "Search engine", "Date launched": "1998" } }, "organic": [ { "title": "Google", "link": "https://www.google.com/?gws_rd=ssl", "snippet": "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking ...", "sitelinks": [ { "title": "My Activity", "link": "https://myactivity.google.com/" }, { "title": "Images", "link": "https://images.google.com/" }, { "title": "Photos", "link": "https://www.google.com/photos/about/" }, { "title": "Search", "link": "https://www.google.com/search/howsearchworks/" } ], "position": 1 }, { "title": "Google Search - Stay in the Know with Your Google App", "link": "https://www.google.com/search/about/", "snippet": "Discover keeps you up to date on all your favorite topics. Follow everything from sports teams and movies to celebrities, hobbies, and more. Plus, you can dive ...", "position": 2 }, { "title": "Google Search Console Tools", "link": "https://search.google.com/search-console/about", "snippet": "Search Console tools and reports help you measure your site's Search traffic and performance, fix issues, and make your site shine in Google Search results.", "position": 3 }, { "title": "Google Search Help", "link": "https://support.google.com/websearch/?hl=en", "snippet": "Official Google Search Help Center where you can find tips and tutorials on using Google Search and other answers to frequently asked questions.", "position": 4 }, { "title": "Google Search - Wikipedia", "link": "https://en.wikipedia.org/wiki/Google_Search", "snippet": "Google Search is a search engine provided and operated by Google. Handling more than 3.5 billion searches per day, it has a 92% share of the global search ...", "attributes": { "Available in": "149 languages", "URL": "www.google.com" }, "position": 5 }, { "title": "Welcome to My Activity - Google", "link": "https://myactivity.google.com/", "snippet": "Welcome to My Activity. Data helps make Google services more useful for you. Sign in to review and manage your activity, including things you've searched ...", "position": 6 }, { "title": "Your data in Search - Google Account", "link": "https://myaccount.google.com/intro/yourdata/search?hl=en-US", "snippet": "Your Search history is saved to your Google Account as part of your Web & App Activity, along with activity from other Google services. Signed-out Search ...", "position": 7 }, { "title": "Google Trends", "link": "https://trends.google.com/trends/", "snippet": "See how Google Trends is being used across the world, by newsrooms, charities, and more. Local Year in Search. Explore searches in your zipcode.", "position": 8 }, { "title": "What Google Search Isn't Showing You | The New Yorker", "link": "https://www.newyorker.com/culture/infinite-scroll/what-google-search-isnt-showing-you", "snippet": "The search engine has made up so much of our online experience for so long that it can be hard to imagine something better.", "date": "Mar 10, 2022", "position": 9 }, { "title": "Google", "link": "https://images.google.com/", "snippet": "Google Images. The most comprehensive image search on the web.", "position": 10 } ], "peopleAlsoAsk": [ { "question": "How do I get Google to search?", "answer": "You can use the Google Search app or go to google.com to perform searches. The Google app also offers features like Discover to keep you updated on your favorite topics." } ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.