{"id":23394301,"url":"https://github.com/outscraper/google-maps-reviews-python","last_synced_at":"2025-04-11T12:53:38.172Z","repository":{"id":40587693,"uuid":"440306613","full_name":"outscraper/google-maps-reviews-python","owner":"outscraper","description":"Python SDK that allows fetching Google Maps Reviews from any place. Fetch reviews from any business on Google Maps without limitations.","archived":false,"fork":false,"pushed_at":"2022-01-21T14:11:16.000Z","size":16,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-25T09:11:55.247Z","etag":null,"topics":["google","google-api-python-client","google-maps","google-maps-api","google-rating-api","google-reviews-api","google-scraping","google-serp-api","scraping","scraping-websites","serp-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outscraper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-20T21:05:57.000Z","updated_at":"2025-02-11T08:41:49.000Z","dependencies_parsed_at":"2022-09-19T08:20:51.214Z","dependency_job_id":null,"html_url":"https://github.com/outscraper/google-maps-reviews-python","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Fgoogle-maps-reviews-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Fgoogle-maps-reviews-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Fgoogle-maps-reviews-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Fgoogle-maps-reviews-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outscraper","download_url":"https://codeload.github.com/outscraper/google-maps-reviews-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248403680,"owners_count":21097569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","google-api-python-client","google-maps","google-maps-api","google-rating-api","google-reviews-api","google-scraping","google-serp-api","scraping","scraping-websites","serp-api"],"created_at":"2024-12-22T06:14:20.233Z","updated_at":"2025-04-11T12:53:38.138Z","avatar_url":"https://github.com/outscraper.png","language":"Python","readme":"# Outscraper SDK in Python\nPython SDK that allows fetching Google Maps reviews from any place. Fetch reviews from any business on Google Maps without limitations.\n\n\n[API Docs](https://app.outscraper.com/api-docs#tag/Google-Maps/paths/~1maps~1reviews-v3/get)\n\n[Generate API Token](https://app.outscraper.com/profile)\n\n## Installation\n\nPython 3+\n```bash\npip install google-maps-reviews\n```\n\n[Link to the python package page](https://pypi.org/project/google-maps-reviews/)\n\n## Initialization\n```python\nfrom google_maps_reviews import ReviewsClient\n\nclient = ReviewsClient(api_key='SECRET_API_KEY')\n```\n\n## Fetch Google Maps Reviews\n\n```python\n# Get reviews from the place by name and lcoation\nresults = client.get_reviews('Trump Tower, NY, USA', reviewsLimit=10, language='en')\n\n# Get reviews from many places found by search query\nresults = client.get_reviews('Memphis Seoul brooklyn usa', reviewsLimit=10, limit=10, language='en')\n\n# Get reviews from the place by google id\nresults = client.get_reviews('0x89c258faf553cfad:0x8e9cfc7444d8f876', reviewsLimit=20, language='en')\n\n# Get reviews from the place by URL\nresults = client.get_reviews('https://www.google.com/maps/place/Trump+Tower/@40.7608106,-73.983412,15z/data=!3m1!5s0x89c259a1e735d943:0xb63f84c661f84258!4m9!1m2!2m1!1sTrump+Tower!3m5!1s0x89c258faf553cfad:0x8e9cfc7444d8f876!8m2!3d40.7624284!4d-73.973794!15sCgtUcnVtcCBUb3dlcloNIgt0cnVtcCB0b3dlcpIBCGxhbmRtYXJr', reviewsLimit=20, language='en')\n\n# Get only new reviews during last 24 hours\nfrom datetime import datetime, timedelta\nyesterday_timestamp = int((datetime.now() - timedelta(1)).timestamp())\n\nresults = client.get_reviews(\n    '0x89c258faf553cfad:0x8e9cfc7444d8f876', sort='newest', cutoff=yesterday_timestamp, reviewsLimit=100, language='en')\n```\n\n## Results Demo\n```json\n{\n  \"name\": \"Memphis Seoul\",\n  \"address\": \"569 Lincoln Pl, Brooklyn, NY 11238, \\\\u0421\\\\u043f\\\\u043e\\\\u043b\\\\u0443\\\\u0447\\\\u0435\\\\u043d\\\\u0456 \\\\u0428\\\\u0442\\\\u0430\\\\u0442\\\\u0438\",\n  \"address_street\": \"569 Lincoln Pl\",\n  \"address_borough\": \"\\\\u041a\\\\u0440\\\\u0430\\\\u0443\\\\u043d-\\\\u0413\\\\u0430\\\\u0439\\\\u0442\\\\u0441\",\n  \"address_city\": \"Brooklyn\",\n  \"time_zone\": \"America/New_York\",\n  \"type\": \"\\\\u0420\\\\u0435\\\\u0441\\\\u0442\\\\u043e\\\\u0440\\\\u0430\\\\u043d\",\n  \"types\": \"\\\\u0420\\\\u0435\\\\u0441\\\\u0442\\\\u043e\\\\u0440\\\\u0430\\\\u043d\",\n  \"postal_code\": \"11238\",\n  \"latitude\": 40.6717258,\n  \"longitude\": -73.9579098,\n  \"phone\": \"+1 347-349-2561\",\n  \"rating\": 3.9,\n  \"reviews\": 32,\n  \"site\": \"http://www.getmemphisseoul.com/\",\n  \"photos_count\": 77,\n  \"google_id\": \"0x89c25bb5950fc305:0x330a88bf1482581d\",\n  \"reviews_link\": \"https://www.google.com/search?q=Memphis+Seoul,+569+Lincoln+Pl,+Brooklyn,+NY+11238,+%D0%A1%D0%BF%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D1%96+%D0%A8%D1%82%D0%B0%D1%82%D0%B8\u0026ludocid=3677902399965648925#lrd=0x89c25bb5950fc305:0x330a88bf1482581d,1\",\n  \"reviews_id\": \"3677902399965648925\",\n  \"photo\": \"https://lh5.googleusercontent.com/p/X_6-QqMphC_ctqs3bHSqFg\",\n  \"working_hours\": \"\\\\u0432\\\\u0456\\\\u0432\\\\u0442\\\\u043e\\\\u0440\\\\u043e\\\\u043a: 16:00\\\\u201322:00 | \\\\u0441\\\\u0435\\\\u0440\\\\u0435\\\\u0434\\\\u0430: 16:00\\\\u201322:00 | \\\\u0447\\\\u0435\\\\u0442\\\\u0432\\\\u0435\\\\u0440: 16:00\\\\u201322:00 | \\\\u043f\\\\u02bc\\\\u044f\\\\u0442\\\\u043d\\\\u0438\\\\u0446\\\\u044f: 16:00\\\\u201322:00 | \\\\u0441\\\\u0443\\\\u0431\\\\u043e\\\\u0442\\\\u0430: 16:00\\\\u201322:00 | \\\\u043d\\\\u0435\\\\u0434\\\\u0456\\\\u043b\\\\u044f: 16:00\\\\u201322:00 | \\\\u043f\\\\u043e\\\\u043d\\\\u0435\\\\u0434\\\\u0456\\\\u043b\\\\u043e\\\\u043a: 16:00\\\\u201322:00\",\n  \"reviews_per_score\": \"1: 6, 2: 0, 3: 4, 4: 3, 5: 19\",\n  \"verified\": true,\n  \"reserving_table_link\": null,\n  \"booking_appointment_link\": null,\n  \"owner_id\": \"100347822687163365487\",\n  \"owner_link\": \"https://www.google.com/maps/contrib/100347822687163365487\",\n  \"reviews_data\": [\n    {\n      \"google_id\": \"0x89c25bb5950fc305:0x330a88bf1482581d\",\n      \"autor_link\": \"https://www.google.com/maps/contrib/112314095435657473333?hl=en-US\",\n      \"autor_name\": \"Eliott Levy\",\n      \"autor_id\": \"112314095435657473333\",\n      \"review_text\": \"Very good local comfort fusion food ! \\\\nKimchi coleslaw !! Such an amazing idea !\",\n      \"review_link\": \"https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s112314095435657473333!2s0x0:0x330a88bf1482581d?hl=en-US\",\n      \"review_rating\": 5,\n      \"review_timestamp\": 1560692128,\n      \"review_datetime_utc\": \"06/16/2019 13:35:28\",\n      \"review_likes\": null\n    },\n    {\n      \"google_id\": \"0x89c25bb5950fc305:0x330a88bf1482581d\",\n      \"autor_link\": \"https://www.google.com/maps/contrib/106144075337788507031?hl=en-US\",\n      \"autor_name\": \"fenwar1\",\n      \"autor_id\": \"106144075337788507031\",\n      \"review_text\": \"Great wings with several kinds of hot sauce. The mac and cheese ramen is excellent.\\\\nUPDATE:\\\\nReturned later to try the meatloaf slider, a thick meaty slice  topped with slaw and a fantastic sauce- delicious. \\\\nConsider me a regular.\\\\ud83d\\\\udc4d\",\n      \"review_link\": \"https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s106144075337788507031!2s0x0:0x330a88bf1482581d?hl=en-US\",\n      \"review_rating\": 5,\n      \"review_timestamp\": 1571100055,\n      \"review_datetime_utc\": \"10/15/2019 00:40:55\",\n      \"review_likes\": null\n    },\n    ...\n  ]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscraper%2Fgoogle-maps-reviews-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutscraper%2Fgoogle-maps-reviews-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscraper%2Fgoogle-maps-reviews-python/lists"}