{"id":37164805,"url":"https://github.com/luanruisong/g-steam","last_synced_at":"2026-01-14T19:33:56.770Z","repository":{"id":57557445,"uuid":"316388832","full_name":"luanruisong/g-steam","owner":"luanruisong","description":"steam web api for golang","archived":false,"fork":false,"pushed_at":"2021-01-29T03:27:13.000Z","size":170,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T15:13:50.294Z","etag":null,"topics":["go","golang","steam","steam-api","steamwebapi"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luanruisong.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":"2020-11-27T03:15:48.000Z","updated_at":"2024-07-22T09:21:55.000Z","dependencies_parsed_at":"2022-09-03T03:23:53.453Z","dependency_job_id":null,"html_url":"https://github.com/luanruisong/g-steam","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/luanruisong/g-steam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luanruisong%2Fg-steam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luanruisong%2Fg-steam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luanruisong%2Fg-steam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luanruisong%2Fg-steam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luanruisong","download_url":"https://codeload.github.com/luanruisong/g-steam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luanruisong%2Fg-steam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","golang","steam","steam-api","steamwebapi"],"created_at":"2026-01-14T19:33:55.908Z","updated_at":"2026-01-14T19:33:56.760Z","avatar_url":"https://github.com/luanruisong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# g-steam \n\nsteam web api golang realize\n\n![](https://img.shields.io/badge/macOS-Development-d0d1d4)\n![](https://img.shields.io/badge/golang-1.15-blue)\n[![](https://img.shields.io/badge/godoc-reference-3C57C4)](https://pkg.go.dev/github.com/luanruisong/g-steam)\n![](https://img.shields.io/badge/version-1.0.1-r)\n\n## :rocket:Installation\n\n`\n  go get -u github.com/luanruisong/g-steam\n`\n\n## :bell:Premise\n\n   Before using, you must go to [steam](https://steamcommunity.com/dev/appkey) to apply for your key.\n   \n## :anchor:Usage\n\n### Basic usage\n\n```go\n    //Create client\n    client := steam.NewClient(\"appkey\")\n    //Get the render address of steam\n    //path -\u003e steam openid Login authentication address\n    //callbackPath -\u003e steam browser url to redirect to after successful authentication\n    path := client.RenderTo(callbackPath)\n    \n    //Create receiving return object\n    res, err := client.OpenidBindQuery(request.URL.Query())\n    fmt.Println(res, err)\n    fmt.Println(res.GetSteamId()) //Get steamid\n\n    //Create api object\n    api := client.Api()\n    //raw return\n    raw, err := api.Server(\"ISteamUser\").//Set up service interface\n        Method(\"GetPlayerSummaries\").//Set access function\n        Version(\"v0002\").//Set version\n        AddParam(\"steamids\", \"76561198421538055\").//Setting parameters (If the key parameter is not set, the client's appKey will be added by default)\n        Get(nil) //Initiate a request, and support the incoming structure pointer to receive parameters\n    fmt.Println(raw, err) \n\n```\n\n### Package API\n\nIn addition to providing basic encapsulation, we also encapsulate common APIs to make it more convenient to use.\n\n```go\n    //Use client to create related server\n    appService := isteam_app.New(client)\n    iplyerSercer := iplayer_service.New(client)\n    economyService := isteam_economy.New(client)\n    newsService := isteam_news.New(client)\n    remoteStorageService := isteam_remote_storage.New(client)\n    userService := isteam_user.New(client)\n    userStatsService := isteam_user_stats.New(client)\n    util := isteam_webapi_util.New(client)\n    //Call the server wrapper function\n```\n\n## :tada:Contribute code\n\nOpen source projects are inseparable from everyone’s support. If you have a good idea, encountered some bugs and fixed them, and corrected the errors in the document, please submit a Pull Request~\n   1. Fork this project to your own repo\n   2. Clone the project in the past, that is, the project in your warehouse, to your local\n   3. Modify the code\n   4. Push to your own library after commit\n   5. Initiate a PR (pull request) request and submit it to the `provide` branch\n   6. Waiting to merge\n\n## :closed_book:License\n\nDistributed under MIT License, please see license file within the code for more details.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanruisong%2Fg-steam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluanruisong%2Fg-steam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanruisong%2Fg-steam/lists"}