{"id":15594951,"url":"https://github.com/simonneutert/jquery-google-reviews","last_synced_at":"2025-06-20T05:35:13.122Z","repository":{"id":47158799,"uuid":"109999619","full_name":"simonneutert/jquery-google-reviews","owner":"simonneutert","description":"simple jquery Plugin that utilizes Google API to get data from a Place on Google Maps","archived":false,"fork":false,"pushed_at":"2021-09-10T16:39:58.000Z","size":72,"stargazers_count":44,"open_issues_count":3,"forks_count":26,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-12T20:08:26.849Z","etag":null,"topics":["google","google-maps","google-maps-api","google-places-api","jquery","jquery-plugin","plugin","reviews","stars"],"latest_commit_sha":null,"homepage":"https://github.com/simonneutert/jquery-google-reviews","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonneutert.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":"2017-11-08T16:16:37.000Z","updated_at":"2024-08-07T09:09:11.000Z","dependencies_parsed_at":"2022-08-28T17:52:12.527Z","dependency_job_id":null,"html_url":"https://github.com/simonneutert/jquery-google-reviews","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/simonneutert/jquery-google-reviews","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fjquery-google-reviews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fjquery-google-reviews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fjquery-google-reviews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fjquery-google-reviews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonneutert","download_url":"https://codeload.github.com/simonneutert/jquery-google-reviews/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fjquery-google-reviews/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260890026,"owners_count":23077857,"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-maps","google-maps-api","google-places-api","jquery","jquery-plugin","plugin","reviews","stars"],"created_at":"2024-10-03T00:42:21.972Z","updated_at":"2025-06-20T05:35:08.105Z","avatar_url":"https://github.com/simonneutert.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Plugin to display Google Reviews of a Place on Google Maps\n\nthis will get the 5 reviews, google offers you. \n\n#### But I need more than 5 reviews!\n\nif you need more, let me direct you a bit: https://developers.google.com/my-business/content/review-data#list_all_reviews - but this will be a different project all by its own\n\n## I do not like jQuery!!!1eleven\n\nThe NPM Package is [here](https://github.com/simonneutert/google-maps-reviews) - Frontend Devs will know how to webpack :) or simply extract the code and adapt it to your needs, dropping jQuery as a dependency.\n\n## Credits\nInspired by Steven Monson's magnificent article here:\nhttps://www.launch2success.com/guide/display-google-reviews-website-2017/ or check out [Steven's github](https://github.com/stevenmonson/googleReviews). Steven's code is based on [peledies jquery plugin repo](https://github.com/peledies/google-places). So, I simply remixed their work into this repo. *Thank you guys!*\n\n#### Dear beginners and copy-pasters\n\n:octocat: *For those of you, who are new in programming or can only copy-paste, please make sure, that jQuery, the Google Maps API and the .js-file of this plugin are successfully loaded, before you call this script in your html page.*\n\n*./demo/index.html is a working demo, the comments will guide you :wink:*\n\n## Prerequisites\n\n* You must have jQuery in your project: [jQuery](http://jquery.com)\n\n* add the .js and .css of this repo to your project (see ./demo/index.html for inspiration :wink:)\n\n* ___if you do not have a working Google Maps API key already:___ create a Google API Key: [https://console.developers.google.com/apis/](https://console.developers.google.com/apis/) **make sure to set a limit to your payments**\n\n* add the following line with your  Google Maps API key with the key param:\n\n  ``` html\n  \u003cscript src=\"https://maps.googleapis.com/maps/api/js?v=3.exp\u0026libraries=places\u0026key=YourApiKeyHere\"\u003e\u003c/script\u003e\n  ```\n\n* add an empty ***div*** element in your html template with an unique ID, where the reviews should show up. In this case:\n\n  `\u003cdiv id=\"google-reviews\"\u003e\u003c/div\u003e`\n  \n## How to get link to “View All Google Reviews” or \"Write a review\"\n\nPlease see the official Documents for this topic:  \nhttps://developers.google.com/my-business/content/review-data#list_all_reviews\n\n* Step 1.  Open a browser, but don’t use Chrome.  You can use Firefox, or Edge, or even Internet Explorer but not Google Chrome because it alters the URL and your link will not work correctly.\n\n* Step 2. Go to [Google.com](http://www.google.com) and search for your company’s name.\n\n* Step 3. Find the card on the right and click “View All Google Reviews” or \"Write a review\"\n\n* Step 4. Copy the URL in the address bar.\n\n* Step 5. Now paste the URL as a link on `more_reviews_button_url` or `write_review_button_url` param.\n\n## Call the Plugin\n\n[Grab your place's ID (https://developers.google.com/places/place-id) and call it as ***placeId*** parameter, when calling the plugin. ](https://developers.google.com/places/place-id)\n\n``` html\n\u003cscript\u003e\njQuery(document).ready(function($) {\n  if ($(\"#google-reviews\").length == 0) {\n    return\n  }\n  // Find a placeID via https://developers.google.com/places/place-id\n  $(\"#google-reviews\").googlePlaces({\n    placeId: 'ChIJZa6ezJa8j4AR1p1nTSaRtuQ',\n    // the following params are optional (default values)\n    header: \"\u003ch3\u003eGoogle Reviews\u003c/h3\u003e\", // html/text over Reviews\n    footer: '', // html/text under Reviews block\n    maxRows: 5, // max 5 rows of reviews to be displayed\n    minRating: 4, // minimum rating of reviews to be displayed\n    months: [\"Jan\", \"Feb\", \"Mär\", \"Apr\", \"Mai\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Okt\", \"Nov\", \"Dez\"],\n    textBreakLength: \"90\", // length before a review box is set to max width\n    shortenNames: true, // example: \"Max Mustermann\" -\u003e \"Max M.\"\",\n    moreReviewsButtonUrl: '', // url to Google Place reviews popup\n    moreReviewsButtonLabel: 'Show More Reviews',\n    writeReviewButtonUrl: '', // url to Google Place write review popup\n    writeReviewButtonLabel: 'Write New Review',\n    showProfilePicture: true\n  });\n});\n\u003c/script\u003e\n```\n\n## Are Pull Requests welcome?\nYes, of course :octocat:\n\n**You do not need to update the demo folder!** I will do this, when your code was merged.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonneutert%2Fjquery-google-reviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonneutert%2Fjquery-google-reviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonneutert%2Fjquery-google-reviews/lists"}