Google Search API Python Client
Extract Google Search data with our Google Search API Python client. Get programmatic access to review ratings and business lead enrichment, related queries and product ads, AI overviews and People Also Ask answers, organic and paid search results, and more using simple Python code. Start free, no credit card required.

Trusted by industry leaders all over the world
Integrate our Google Search API
The Apify API client for Python is the official library that allows you to use Google Search API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.
Python
JavaScript
HTTP
MCP
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "queries": """javascript10typescript11python""",12 "resultsPerPage": 100,13 "maxPagesPerQuery": 1,14 "maximumLeadsEnrichmentRecords": 0,15}16
17# Run the Actor and wait for it to finish18run = client.actor("apify/google-search-scraper").call(run_input=run_input)19
20# Fetch and print Actor results from the run's dataset (if there are any)21print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])22for item in client.dataset(run["defaultDatasetId"]).iterate_items():23 print(item)24
25# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Get data with Google Search API Python client
Use our Python API client to extract Google Search data by providing search queries, URLs, country codes, and language settings. The API returns structured data, including organic results, paid ads, AI overviews, People Also Ask sections, related queries, review ratings, and business contact information with email addresses and LinkedIn profiles.
Input
{ "queries": "hotels in Seattle \\\\n hotels in New York", "saveHtml": false, "countryCode": "us", "languageCode": "en", "mobileResults": false, "maxConcurrency": 10, "resultsPerPage": 10, "maxPagesPerQuery": 2, "customDataFunction": "async ({ input, $, request, response, html }) => {\\\\\\\\n return {\\\\\\\\n pageTitle: $('title').text(),\\\\\\\\n };\\\\\\\\n};", "saveHtmlToKeyValueStore": false, "includeUnfilteredResults": false}
Output
[ { "paidResults": [], "searchQuery": { "url": "<http://www.google.com/search?q=Hotels+in+Seattle&num=5>", "page": 1, "term": "Hotels in Seattle", "type": "SEARCH", "device": "DESKTOP", "domain": "google.com", "countryCode": "US", "languageCode": null, "locationUule": null, "resultsPerPage": "5" }, "aiModeResult": { "url": "<http://www.google.com/search?q=Hotels+in+Seattle&num=5>", "text": "You can find many hotel options in Seattle, from high-end downtown hotels to budget-friendly hostels. Some options, like Hampton Inn & Suites, offer free amenities, while others focus on prime locations near major attractions. The best area to stay often depends on your budget and what you want to see. Downtown Seattle Known for being walkable and close to attractions, Downtown Seattle is home to a wide range of hotels. The Paramount Hotel: A 3-star hotel with a prime location for exploring downtown attractions like Pike Place Market and the Space Needle. Reviewers mention its modern rooms and friendly staff.Hyatt Regency Seattle: A 4-star hotel located downtown, receiving high marks for being an exceptional place to stay.Mayflower Park Hotel: Another downtown 4-star option, with travelers highlighting its excellent breakfast and beautiful dining room.Green Tortoise Hostel Seattle: For budget-conscious travelers, this highly-rated hostel is located directly across from Pike Place Market and offers free breakfast. Hampton Inn & Suites Seattle-Downtown4.1(1.6K)3-star hotel700 5th Ave NThe Paramount Hotel4.5(2.4K)3-star hotel724 Pine StHyatt Regency Seattle4.6(3.8K)4-star hotel808 Howell StMayflower Park Hotel4.4(1.4K)3-star hotel405 Olive WyGreen Tortoise Hostel Seattle4.5(2.3K)2-star hotel105B Pike StSee moreBelltown and South Lake Union These trendy neighborhoods offer a mix of boutique hotels and serviced apartments. The Ace Hotel (Belltown): A popular mid-range option.Hotel Ändra (Belltown): A cool boutique hotel.CitizenM South Lake Union: This location of a popular hotel chain is a great option for modern stays. Hôtel Ändra Seattle - MGallery Collection4.5(1.3K) · $$4-star hotel2000 4th AvecitizenM Seattle South Lake Union hotel4.3(1K)4-star hotel201 Westlake Ave NSeattle Center and Queen Anne This area is convenient for accessing attractions like the Space Needle, MoPOP, and Climate Pledge Arena. Hampton Inn & Suites Seattle-Downtown: Located in the Seattle Center area, this 3-star hotel offers free hot breakfast and is within walking distance of many tourist spots.Mediterranean Inn (near Seattle Center): A mid-range hotel that is consistently well-reviewed for its location and comfort. Northgate Located north of the downtown core, this area is a good option if you want to be near the University of Washington or other northern attractions. Hampton Inn & Suites by Hilton Seattle/Northgate: A 2-star hotel offering an indoor pool and free breakfast. Reviewers praise the friendly staff and find it a good value, especially if you plan to use the light rail to get downtown. Which Seattle hotels have the best views?Any hotels in Seattle known for unique architecture?Elaborate on the price ranges for hotels in different Seattle neighborhoods", "query": "Hotels in Seattle", "sources": [ { "url": "<https://wheatlesswanderlust.com/where-to-stay-in-seattle/>", "title": "Where To Stay In Seattle: A Complete Guide For First Timers", "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAtFBMVEX///8KKkoArLoAr70Leo0LIkUKJkcKJEYAJkcLHUIAJEYAHEEGlKQAGD8QZ3285upyzdUHna0NX3YAEDwAMFHf5ek3UGkAIUbFzdTq9veywMn0+/wPgpRQwszO7PAPTWaM194Li5zx8/WerrhjfI+Toa1CXHSrt8EaPlt/jZvQ2N5xg5RUb4IAADaCmKaf3eMWcocPQ15WipsMVm41usZTe41utsEODTun2N6kyNBskaFRZnziU2saAAAG2UlEQVR4nO1aCXOqSBBmQA45VATxQAWNBzEm4uru5m3+///a6RnEmcGk3pYDVm35VSVllKS/6bt7oihPPPHEE0/837HcvgweKT+OAi98IIN45SEUrB9H4APLR8FLE6LiW2+uQf5ws2xA/nazWk8GAotJYCFkh03IV9Z24Dko27xuRyWNXYjlW+GuCfmKMngLHcuyHc+xo7f1ZLdUBpmN5Q8nzcjH2K28ITY5MizH84JsH8FP7404YElhPyQUAJaNz4+81yblY4y+HBtdMVzdDI5aMdkEJQUre0QOjCeRYxUMnNEDCGAK26xg4DTtAgXGUUHAjpr3AYxlVMaC11wWYLBy4PDEFYdvD5BPKqCzf/UIg+blvwQgfxMrGzBE0HgcTECsDQmA1AKnaRsMQqhANqmA2wBykexiPO6mvdlZ07TzrJd255e3J6vXj5ftaMRVQHCDYCtT+jydaSoLbZbOSagP1uF74HkkB3plBYxsmTaIu1S6dgUhcT4QCuN1RqsAUwF3tiXNBvGhkK660zzv9DudvL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liQfcr169KIPYdjssnu6kCdAugFpg0F8SNNflVF3zBigkqwhD0uKgW/xz8JXYTbD391KKYJuREoa/B4TO8vCdgvSNH4hJoF+sSKoD2OSgXNMoE9GFL5vN93aFfCPehlM6HTCRQEoQK1XAZOjsKzmvMBwJcbgTSyzRCDAlkMoAzUr4MMLfY4At75o166AnUUmL0YBLquAjuwFjYj4C+bwhUpvCuD7gmsYfNkrKhEjWMQY+rHT6S80v9/pJOz6uJ3XnQOWEV2EGKYJicgzuH2xkV3m9dqwvc6BeqvSsEIvWm8ViCP7BwImJIi0Tvlw/fMTAckbwhv4sn8gAB5YbwgqgwB9T6ABD1R+eT8QgOVc3X3IjN0XCQRIEUjrlY8bMWYE4AkYsLmqtwiQRuQ6pQgE5G/pbxJgl3YcASNRazeAQtcRZQ/OEWiDAWr2QIWqoDQCS4AU6LoNADgw14cMAWKAmlMARczc31wJ0Aio3wAAYgRTINBIBFxAjNDmCJDrgUYMQABGOJosgRBuSxuTT4zgY7OXBEgNaMoAgENxW1cQIJNQ2qB8uptIzIIAWQbU3IWIgLWNHxoFAVfiOuZ3ARvyhU4IkMsTidekv4kUYtGDtvzUVAoUQGIRE9CbS4E8iBtgAovaR+HvcN2SpQ+Rf90T1juJ/gS6qHuIA1CQf615kANQdB/oABS9BzpAweBxDvDEE0888YRk/AuP63i5YfwhEgAAAABJRU5ErkJggg==", "description": "Here are some cool places to stay in Belltown that caught our eye. * The Ace Hotel: A Great Mid-Range Option (Where We've Stayed) * Hotel Ändra: A Cool Boutique..." }, { "url": "<https://www.expedia.com/Seattle-Hotels.d178307.Travel-Guide-Hotels>", "title": "Top 10 Hotels in Seattle, WA from $93 - Fully Refundable Options - Expedia", "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAD90lEQVRogc2av28cRRTHP+/t+mgogoA6sZyN7QBOfEiEGAokfkkYRBRBhXAQLTSYBEj4B1AICZKBhiCBJbqAUsRUFEggxSDl5JjICX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b5T96xI+AH5Q4AzhR+S+yZqeRvMy8L06XuUq8DmwFvPAIMkHvnC8Sr3p3d9EV5FRs1dZQtZ5iOaB6OzBUeArQusGVT5wGjjaPC/R7rDHDPA2g3fYowrM0emwx3rJalkQRoBXgWkG47jNAmGwqTtepcXN/wc7PMQyfEwyGgAAAABJRU5ErkJggg==", "description": "Compare 4,566 hotels, room rates, hotel reviews and availability. Most hotels are fully refundable. * The Belltown Inn. The Belltown Inn. The Belltown Inn. The ..." }, { "url": "<https://www.google.com/viewer/place?mid=/g/1td7sx3h>", "title": "Green Tortoise Hostel Seattle", "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAqFBMVEVHcEzxzAMvwDUpiff/xAkLuG7/YDH9TFb/SEsNu2MIr48IqaL/tgvgywIKo7X/cClDwST/gSD/kxcUl9XNyQEije4bkuK4yAGjxgJXwhhpww98xAmPxQQuh/zcek34hyr/UUAho6shkOX/T0D/SUUTuWTswwcVvFoMtXb4vgnzywXtxghzxBIdvFL+xgUvhv/+zgj/RkARvFv/UTgdvkkJtH3/pRAOncZK6lhHAAAAL3RSTlMA/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/q4TLpcyXs5aWHPPorqaS7SD1/Vt9HkAAAiMSURBVHicvVkJW+JKECQEEZTbmxUSiAK6Dw2y4v//Z29meo6eI3EmASoruvsFqrq6upO4jUYVzJOXNM2ybNfZkT/khzR9eZlX+qhwvKTZrgCd9CU5LXlSTE6toC9ExOnYi8kJO+0GAX3JTqBhXs4OCjr8G0F63F4kJc7vJDtQAy6PaQOl3/OjqPWcfYcUXF4eR0KSEWLK7GLH9evsTMERJMyzPSucvxSETziwQ/yArOZ2SPeAkha4HFAWXF6mNeiT9r4N9G72DhoBRQ/UwgKCygORcv4yCzpFBmBUM2GetdumAqt8JMJ0H2vIKvAn7TYIaOseuBywZ8CwoEIb0nZbKGASIAZm9+UKNBJg0ocPZDpst4dKAnfAYYFQ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BKpUDwcwvcK9ClQPlfFgAZwpJBuEYe+PETBU94AZgB0BXIEHZRDK6+sQVyH/nykyRiA0T9vAVKQhc3oViBHAV/fqZALICRnQCzBciBC7wLxDICBSH85JqqNUB2wOAXc6jvApUCPAlh/OSmxhlAFAGNvsgBdU3wmT8D+gJomvWbGTBSgHYB7UI4PcHWNYGq/i8zg4S/K3ugWbCpxE9ub6wNaCZQCwG34BtLYAoq2C9NKODv2i24QMtAuyJULZ9jLa/CRgKsCFiTwAy4qlE+YLFGBqgbEaVAG0QzBEFPM79IcBvw5XSAj+JR6IUE8yLkMoAr4GN4NHqGrXYVwi1wbcOL703t3ltYbJABsAmlA8aNic8DVDUN23V5F6gFm1Oxc7wKEbILSsLa8cByEswX5GlkvV532RWpu15vNtvXak3/H84+6dS9svPfAAAAAElFTkSuQmCC", "description": "Low-key hostel offering basic dorms & private rooms, plus a full communal kitchen & free Wi-Fi." }, { "url": "<https://totallyseattle.com/where-should-i-stay-in-seattle-an-unofficial-seattle-accommodation-guide/>", "title": "Where Should I Stay in Seattle? (An Unofficial Seattle Accommodation ...", "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABPlBMVEX///8nJSS9hbnRpR+7gbfPoQAkIiHQoxYfHRz6+voeGxoAAAD8+vwaFxb///0kIyTz8/P38PYxLy42NDPj4+PJncbavNfFlcLgxHj69ultbGtoZ2Y+PDvBwMC0s7NhYF+KiYiBgH/Bjb3NpMrr3Or38N3Z2dnVrTnNzczy5seop6aSkZEPCwlPTk2cm5vy5/Hkz+LTr9DdvmLv4bnlzYyAaCQ0LyRkUyQtKiQdHiTat1SLZYYbHhjq2KXo1JjewG1XSSephyJEOyaOciPGnCGykjS5kyJzXyZ2V3JfSVqheJ2tfKltWWqQcIxKQ0e4k6rBlaKrhH7QoFi0llCOe012aUyhgYjIloa5habIl2pdTxFDPzS5kUCKe4ldVUjRmpmIbTkHEACrhl+PfVynmG8vMz19dWO5pGvXyJ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tYCWpRLWMV2ziPv/jrlvtbmwrUr31bEBnuzOF0GoCkAGcPbLfpoRX3kjEmao6PwkeIgaQ2BSf7nV7CyTeZkTsn6qb4me9RGVx5AVP9Jfvee9P6ob4MTW15E+rMwVkomMPAbnGvax2wSQL/pXULDaq0fGvhFNPrBLs1Bf+R2dS1cAAlchcsLsKfshMvWpgam/pCyki0AUdmQJW7rcQHh/OfQL0T6Rwbo4uBLrZZTmqeMuMPFcK6B+DmT9EyZ+my72QjhdO0Vt4Q/mBO+bPUirQP01n1TAHby6/GmhEpaMzQOD/wH79LmmmFcgFAX+IR7ockQFwrgHPq26f4pa8uvrzYbcMnyfcD1Wqm/EdGIDOLmAlspF5oEeX1e2vnkVdZflCKroU4O1gP1eAulJL9153fY+nBB6RvJBZqtHlwJ1UpVfmD0iNtA3Ypgo0YmsH6mEVkAq53/wk2k5wk3q9w/LbpK76tPwTUbZ9z/RMz/RMz/T/RP8F6SwydFrDPMkAAAAASUVORK5CYII=", "description": "Recommended hotels in Downtown Seattle: * Four Seasons Hotel. * Fairmont Olympic Hotel. * The Alexis Hotel. * The Inn at the Market. Staying in Seattle's Bellto..." } ], "kvsHtmlUrl": "<https://api.apify.com/v2/key-value-stores/CzC2EqsvcNUUhWsSH/records/Hotels-in-Seattle_522be799a1919512562f544878e95f5e5ecfa59da52aeda4bcc768a3f9afacd2.html?signature=1PWgT4hZ9FTMZ9sBjH55k>" }, "paidProducts": [], "resultsTotal": null, "peopleAlsoAsk": [], "organicResults": [ { "url": "<https://www.edgewaterhotel.com/>", "type": "organic", "title": "Downtown Seattle Hotel | Luxury Waterfront Hotel Rooms", "position": 1, "siteLinks": [], "description": "The Edgewater Hotel is laden with a rich musical past and surrounded by breathtaking views of the Olympic Mountains, Elliott Bay and the sparkling city.", "productInfo": {}, "displayedUrl": "<https://www.edgewaterhotel.com>", "emphasizedKeywords": [ "The Edgewater Hotel" ] }, { "url": "<https://www.hotels.com/de1481165/hotels-seattle-washington/>", "type": "organic", "title": "Top 10 Hotels in Seattle, WA", "position": 2, "siteLinks": [], "description": "Flexible booking options on most hotels. Compare 2963 hotels in Seattle using 47993 real guest reviews. Pay what you see with upfront pricing on all hotels.", "productInfo": {}, "displayedUrl": "<https://www.hotels.com> › ... › Hotels in Washington", "emphasizedKeywords": [ "Compare 2963 hotels in Seattle" ] }, { "url": "<https://www.marriott.com/en-us/destinations/united-states/washington/seattle.mi>", "type": "organic", "title": "Hotels in Seattle, WA", "position": 3, "siteLinks": [], "description": "Marriott Bonvoy's hotels in Seattle provide the ideal starting point for your exploration, ensuring you are always close to the best the city has to offer.", "productInfo": {}, "displayedUrl": "<https://www.marriott.com> › united-states › washington", "emphasizedKeywords": [ "Marriott Bonvoy's hotels in Seattle" ] } ], "relatedQueries": [ { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Airbnb&stick=H4sIAAAAAAAAAOMwVOLWz9U3MDQozC2uKvjFyLCBheEVCy8XsugrFh4uLhDfOL3QxMgAwQVKF1m8YuHi4gBx06tKcuByecZV6clVcK5RdnlVeckrFm4uThDXsqDSsAguWVlRlWxYBZc0MU02T3rFwsnFDuJlW1QtYmVzzCxKyku6xSbJsHtRx08W1_2GGy2NN24Se7yd_Zf739q0GSsXcYgFpOYX5KQqJOYU5ysUpyYWJWcopOUXreBgBABeO2g95gAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglEAo>", "title": "Airbnb" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Expedia+Group&stick=H4sIAAAAAAAAAOMwVOLSz9U3ME4vNDEy-MXIsIGF4RULLxc3SNDQoDC3uKrgFQsPF5IiBBcoXWTxioWLiwPETa8qyYHL5RlXpSdXwblG2eVV5SWvWLi5OEFcy4JKwyK4ZGVFVbJhFVzSxDTZPOkVCycXO4iXbVG1iJXXtaIgNSUzUcG9KL-04BabJMPuRR0_WVz3G260NN64SezxdvZf7n9r02asXMQhFpCaX5CTqpCYU5yvUJyaWJScoZCWX7SCgxEARw2QBewAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglEA8>", "title": "Expedia Group" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Vrbo&stick=H4sIAAAAAAAAAOMwVOLSz9U3MDYozC2y-MXIsIGF4RULLxc3SNAQKFhcVfCKhYcLoii90MTIAMEF63nFwsXFAeKmV5XkwOXyjKvSk6vgXKPs8qryklcs3FycIK5lQaVhEVyysqIq2bAKLmlimmye9IqFk4sdxMu2qFrEyhJWlJR_i02SYfeijp8srvsNN1oab9wk9ng7-y_3v7VpM1Yu4hALSM0vyElVSMwpzlcoTk0sSs5QSMsvWsHBCACk6JiV4wAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglEBQ>", "title": "Vrbo" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Southwest+Airlines&stick=H4sIAAAAAAAAAOMwVOLQz9U3SK8qyfnFyLCBheEVCy8XN0jI0KAwt7iq4BULDxcXiG-cXmhiZIDgAqWLLF6xcHHBDYDL5RlXpSdXwblG2eVV5SWvWLi5OEFcy4JKwyK4ZGVFVbJhFVzSxDTZPOkVCycXO4iXbVG1iFUoOL-0JKM8tbhEwTGzKCczL7X4Fpskw-5FHT9ZXPcbbrQ03rhJ7PF29l_uf2vTZqxcxCEWkJpfkJOqkJhTnK9QnJpYlJyhkJZftIKDEQCjBkmc7wAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglEBk>", "title": "Southwest Airlines" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=trivago&stick=H4sIAAAAAAAAAOMwVOLSz9U3yDOuSk-u-sXIsIGF4RULLxc3SNDQoDC3uKrgFQsPF1iRcXqhiZEBgguULrJ4xcLFxQHipleV5MDlIObBuUbZ5VXlJa9YuLk4QVzLgkrDIrhkZUVVsmEVXNLENNk86RULJxc7iJdtUbWIlb2kKLMsMT3_Fpskw-5FHT9ZXPcbbrQ03rhJ7PF29l_uf2vTZqxcxCEWkJpfkJOqkJhTnK9QnJpYlJyhkJZftIKDEQArWf7U5gAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglEB4>", "title": "trivago" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=KAYAK&stick=H4sIAAAAAAAAAOMwVOLSz9U3MMouryov-cXIsIGF4RULLxc3SNDQoDC3uKrgFQsPF1iRcXqhiZEBgguULrJ4xcLFxQHipleV5MDl8oyr0pOr4FyI8a9YuLk4QVzLgkrDIrhkZUVVsmEVXNLENNk86RULJxc7iJdtUbWIldXbMdLR-xabJMPuRR0_WVz3G260NN64SezxdvZf7n9r02asXMQhFpCaX5CTqpCYU5yvUJyaWJScoZCWX7SCgxEA3hWrWOQAAAA&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQs9oBKAB6BAglECM>", "title": "KAYAK" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+seattle+downtown&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg7EAE>", "title": "Hotels in seattle downtown" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Best+hotels+in+seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg6EAE>", "title": "Best hotels in seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+Seattle+Washington+near+Airport&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg9EAE>", "title": "Hotels in Seattle Washington near Airport" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Cheap+hotels+in+seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg8EAE>", "title": "Cheap hotels in seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+seattle+luxury&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg_EAE>", "title": "Hotels in seattle luxury" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=hotels+in+seattle,+washington+near+cruise+port&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgrEAE>", "title": "hotels in seattle, washington near cruise port" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Boutique+hotels+Seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgoEAE>", "title": "Boutique hotels Seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Best+hotels+in+Seattle+Downtown&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgnEAE>", "title": "Best hotels in Seattle Downtown" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+seattle+downtown&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg7EAE>", "title": "Hotels in seattle downtown" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Best+hotels+in+seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg6EAE>", "title": "Best hotels in seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+Seattle+Washington+near+Airport&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg9EAE>", "title": "Hotels in Seattle Washington near Airport" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Cheap+hotels+in+seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg8EAE>", "title": "Cheap hotels in seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Hotels+in+seattle+luxury&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAg_EAE>", "title": "Hotels in seattle luxury" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=hotels+in+seattle,+washington+near+cruise+port&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgrEAE>", "title": "hotels in seattle, washington near cruise port" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Boutique+hotels+Seattle&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgoEAE>", "title": "Boutique hotels Seattle" }, { "url": "<https://www.google.com/search?num=5&sca_esv=49b6c55cfef21711&hl=en&q=Best+hotels+in+Seattle+Downtown&sa=X&ved=2ahUKEwiEk-Li5qWPAxXzrokEHTUEOVcQ1QJ6BAgnEAE>", "title": "Best hotels in Seattle Downtown" } ] }]
Sign up for Apify account01
Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.
Install Apify Python client02
Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with Google Search API from your Python applications.
Get your Apify API token03
Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.
Integrate Google Search API04
Navigate to the Google Search API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate Google Search API into your Python application.
Get your Google Search data via API05
The Google Search API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.

Why use Apify?
Never get blocked
Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.
Customers love us
We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.
Monitor your runs
With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.
Export to various formats
Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.
Integrate Apify to your workflow
You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.
Large developer community
Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!
Python-ready Google Search data extraction
Connect to hundreds of apps right away using ready-made integrations, or set up your own with webhooks and our API.
No, Google doesn't provide an official public Python API for scraping search results pages (SERPs). However, this Google Search Python API client provides a reliable alternative that can extract comprehensive data from Google search pages, including organic results, paid ads, AI overviews, and additional metadata that you typically can't get through other means.
Yes, you can try the Google Search Python API client for free. Apify offers $5 worth of free credits on the Free plan, which lets you scrape over 1,000 Google Search results using the Python API client without using add-ons. If you upgrade to any paid plan, you get additional discounts that allow you to scrape thousands of results in seconds with the Python API client.
You can extract organic search results, paid advertisements, AI mode summaries and overviews, People Also Ask questions and answers, related search queries, product ads with prices, review ratings and counts, business lead information (including full names, work email addresses, phone numbers, job titles, and LinkedIn profiles), and suggested results using a Python API client. Data can be exported in JSON, CSV, Excel, XML, or HTML formats through Python.
Yes, it is legal to scrape Google Search data using a Python API client as long as you're extracting publicly available information and respecting boundaries such as personal data protection and intellectual property regulations. You should only scrape personal data with your Python API client if you have a legitimate reason and should consider Google's Terms of Use. If you're unsure about your specific Python API client use case, consult with legal professionals.
Getting started with our Google Search Python API is easy — simply create a free Apify account, get your API token, and start using the Google Search API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.