{"id":15594792,"url":"https://github.com/simonneutert/google-maps-reviews","last_synced_at":"2025-04-06T10:11:40.849Z","repository":{"id":40267152,"uuid":"137089390","full_name":"simonneutert/google-maps-reviews","owner":"simonneutert","description":"Display Google Reviews of a Place on Google Maps on your website","archived":false,"fork":false,"pushed_at":"2025-03-12T06:59:11.000Z","size":196,"stargazers_count":48,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T10:02:34.773Z","etag":null,"topics":["api","google","google-maps","google-maps-api","javascript","npm","npm-package"],"latest_commit_sha":null,"homepage":"https://github.com/simonneutert/google-maps-reviews","language":"JavaScript","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-12T15:09:21.000Z","updated_at":"2025-03-12T06:56:27.000Z","dependencies_parsed_at":"2025-02-22T17:38:25.816Z","dependency_job_id":null,"html_url":"https://github.com/simonneutert/google-maps-reviews","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fgoogle-maps-reviews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fgoogle-maps-reviews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fgoogle-maps-reviews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonneutert%2Fgoogle-maps-reviews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonneutert","download_url":"https://codeload.github.com/simonneutert/google-maps-reviews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464222,"owners_count":20942970,"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":["api","google","google-maps","google-maps-api","javascript","npm","npm-package"],"created_at":"2024-10-03T00:41:37.129Z","updated_at":"2025-04-06T10:11:40.830Z","avatar_url":"https://github.com/simonneutert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Display Google Reviews of a Place on Google Maps on your website\n\nproject on npm: https://www.npmjs.com/package/google-maps-reviews\n\njQuery Version here: https://github.com/simonneutert/jquery-google-reviews\n\n## Credits\n\nInspired by Steven Monson's magnificent article here:\nhttps://www.launch2success.com/guide/display-google-reviews-website-2017/ or\ncheck out [Steven's github](https://github.com/stevenmonson/googleReviews).\nSteven's code is based on\n[peledies jquery plugin repo](https://github.com/peledies/google-places). So, I\nsimply 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,\nplease make sure, that the Google Maps API and the .js-file of this plugin are\nsuccessfully loaded before you call this script in the body your html page._\n\n_under demo/index.html is a working demo, the comments will guide you :wink:_\n\n## Prerequisites\n\n**either**\n\n- add the .js and .css of this repo to your project (see index.html for\n  inspiration :wink:)\n\n**or**\n\n- `$ npm install -i google-maps-reviews`\n\n**then**\n\n- **if you do not have a working Google Maps API key already:** create a Google\n  API Key:\n  [https://console.developers.google.com/apis/](https://console.developers.google.com/apis/)\n\n- add the following line with your Google Maps API key with the key param:\n\n  ```html\n  \u003cscript\n    src=\"https://maps.googleapis.com/maps/api/js?v=3.exp\u0026libraries=places\u0026key=YourApiKeyHere\"\n  \u003e\u003c/script\u003e\n  ```\n\n- add an empty **_div_** element in your html's body with an unique ID, where\n  the reviews should show up. In this case:\n\n  `\u003cdiv id=\"google-reviews\"\u003e\u003c/div\u003e`\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\u003c!-- add this before \u003c/body\u003e --\u003e\n\u003cscript\u003e\n    // Find a placeID via https://developers.google.com/places/place-id\n    googlePlaces(\"google-reviews\", {\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: 6, // max 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      showDate: false, // renders the date of the review before the review itself\n      shortenNames: true, // example: \"Max Mustermann\" -\u003e \"Max M.\"\"\n      replaceAnonymous: false, // do not replace anonymous author_name from JSON\n      anonymousName: \"A Google User\", // Google's default value depending on language used (en: \"A Google User\")\n      anonymousNameReplacement: \"User chose to remain anonymous\", // replacement for default (never shortens)\n    });\n  });\n\u003c/script\u003e\n```\n\n## Are Pull Requests welcome?\n\nYes, of course :octocat:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonneutert%2Fgoogle-maps-reviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonneutert%2Fgoogle-maps-reviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonneutert%2Fgoogle-maps-reviews/lists"}