{"id":21496355,"url":"https://github.com/thunbergolle/steamgroupstats","last_synced_at":"2025-03-17T12:15:47.155Z","repository":{"id":57370534,"uuid":"138280408","full_name":"ThunbergOlle/steamgroupstats","owner":"ThunbergOlle","description":"Get the stats of a group.","archived":false,"fork":false,"pushed_at":"2018-06-22T10:16:57.000Z","size":1213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T21:52:45.743Z","etag":null,"topics":["get-group-members","get-group-stats","get-stat-of-a-steamgroup","get-steamgoups","groupmembers","node-steam","steam","steam-group","steam-group-stats","steam-stats","steamgroups","steamgroupstats","steamstats"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ThunbergOlle.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":"2018-06-22T09:02:13.000Z","updated_at":"2018-06-22T20:13:05.000Z","dependencies_parsed_at":"2022-08-29T21:50:16.508Z","dependency_job_id":null,"html_url":"https://github.com/ThunbergOlle/steamgroupstats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThunbergOlle%2Fsteamgroupstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThunbergOlle%2Fsteamgroupstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThunbergOlle%2Fsteamgroupstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThunbergOlle%2Fsteamgroupstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThunbergOlle","download_url":"https://codeload.github.com/ThunbergOlle/steamgroupstats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031154,"owners_count":20386534,"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":["get-group-members","get-group-stats","get-stat-of-a-steamgroup","get-steamgoups","groupmembers","node-steam","steam","steam-group","steam-group-stats","steam-stats","steamgroups","steamgroupstats","steamstats"],"created_at":"2024-11-23T16:15:53.942Z","updated_at":"2025-03-17T12:15:47.118Z","avatar_url":"https://github.com/ThunbergOlle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steam-groups\nThis is an easy to use module that gets all the members from a steamgroup and outputs them as an object.\nThis module was made and published by [OlleThunberg](https://github.com/ThunbergOlle).\nIf you are looking for only getting the steamids of the members then check out [this](https://www.npmjs.com/package/node-steam-group) module.\n\n**Contribute:**[Github](https://github.com/ThunbergOlle/steamgroupstats)\n\n\n\n**Install**\n```js\nnpm install steam-group-stats --save\n```\n**Import**\n```js\nconst steamgroup = require('steam-group-stats');\n```\n\n## Methods\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, callback){});\n```\n- callback.id: Gets the id of the group.\n- callback.totalmembers: Gets the total amount of members of the group.\n- callback.name: Gets the name of the steamgroup. (Not the URL)\n- callback.headline: Gets the headline of the steamgroup.\n- callback.icon: Gets the avatar icon URL of the steamgroup.\n- callback.online: Gets the current amount of members that's online.\n- callback.ingame: Gets the current amount of members that's in game.\n- callback.inchat: Gets the current amount of members that's in chat.\n#### Example in JS format\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, callback){\n    console.log(callback.id);\n    console.log(callback.name);\n    console.log(callback.headline);\n    //And so on. \n});\n```\n\n\n## Examples\n**You can copy and paste these!**\n\n### Get all info about group\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, group){\n    if(err) throw err;\n    console.log(group);\n});\n```\n\n**Output**\n```\n{ totalmembers: [ '22' ],\n  id: [ '103582791460358474' ],\n  groupdetails:\n   { groupName: [ 'UnturnedGame.com' ],\n     groupURL: [ 'unturnedgametrade' ],\n     headline: [ ' Giveaways and Community Group!' ],\n     summary: [ '\u003ca class=\"bb_link\" href=\"htt...........\n```\n\n### Get the id of the group\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, group){\n    if(err) throw err;\n    console.log(group.id);\n});\n```\n**Output**\n```\n[ '103582791460358474' ]\n```\n\n### Get the amount of online members\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, group){\n    if(err) throw err;\n    console.log(group.online);\n});\n```\n**Output**\n```\n[ '4' ]\n```\n### Get the icon of the steamgroup\n```js\nsteamgroup.getstats(\"unturnedgametrade\", function(err, group){\n    if(err) throw err;\n    console.log(group.icon);\n});\n```\n**Output**\n```\n[ 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/ce/ce99ef9c0cf05071aef380294f0cd9aefd431256.jpg' ]\n```\n\n### More info\nI'm really **happy** if you'd like to share this module or use this in your upcomming bot or script or whatever you are going to use this for. If you feel like there is anything missing then please open an issue on the [Github](https://github.com/ThunbergOlle/steamgroupstats) page. I will fix it as soon as possible.\n\n## License\nMIT License\n\nCopyright (c) 2018 Olle Thunberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunbergolle%2Fsteamgroupstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunbergolle%2Fsteamgroupstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunbergolle%2Fsteamgroupstats/lists"}