{"id":20986579,"url":"https://github.com/nota30/genshingo","last_synced_at":"2025-12-15T04:23:40.593Z","repository":{"id":154439475,"uuid":"520867747","full_name":"Nota30/genshingo","owner":"Nota30","description":"A simple wrapper to fetch user data from Genshin Impact.","archived":false,"fork":false,"pushed_at":"2023-06-12T21:45:57.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T07:33:29.934Z","etag":null,"topics":["api","genshin","genshin-api","genshin-impact","go","golang","hoyolab","hoyoverse"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Nota30.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":"2022-08-03T12:16:37.000Z","updated_at":"2023-11-11T06:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ff9f275-4e09-4712-9d60-3d0572bd1357","html_url":"https://github.com/Nota30/genshingo","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/Nota30%2Fgenshingo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nota30%2Fgenshingo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nota30%2Fgenshingo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nota30%2Fgenshingo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nota30","download_url":"https://codeload.github.com/Nota30/genshingo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243393368,"owners_count":20283780,"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","genshin","genshin-api","genshin-impact","go","golang","hoyolab","hoyoverse"],"created_at":"2024-11-19T06:14:15.639Z","updated_at":"2025-10-28T01:17:50.381Z","avatar_url":"https://github.com/Nota30.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Genshingo\n\nAn API wrapper to fetch your genshin user data!\n- You can also fetch all your characters data (name, level, constellation, etc)\n\n## Prerequisites\n- [Go](https://go.dev/)\n- HoyoLab Cookies - You can get you hoyolab cookies by visiting [hoyolab](https://www.hoyolab.com/) and logging in. After you login `Ctrl + Shift + I` then click on the `Console` Tab and then type `document.cookie` and thats the cookie!\n\n## Install\nYou can run the test file to run this in the command line. You can compile it and run it your self `test/test.go` or install one of the [releases](https://github.com/Nota30/genshingo/releases). **Note:** You need to go install before you run.\n\n**The default test file looks like this:**\n![image](https://user-images.githubusercontent.com/60175653/234162511-998ccaa0-187f-46ba-bfa2-1683814f2a87.png)\n\n \n## Quick Start\nImport the `genshingo` package first.\n```go\npackage main\n\nimport (\n\tgenshin \"github.com/Nota30/genshingo\"\n)\n\nfunc main() {\n\tinit := genshin.Init{\n\t\tCookie: \"cookie goes here\",\n\t\tServer: \"os\",\n\t}\n\n\tuser, err := init.GetUserData(\"uid\")\n\tif err != nil {\n\t\tprintln(err)\n\t}\n\n\tprintln(user.Data.Info.Nickname)\n}\n```\n\n## Issues\n- If you don't get a users data that means they haven't set their profile to `public` in hoyolab. You can make it public by going to hoyolab settings.\n- Currently only works with the `os` servers so the `cn` servers won't work. Will be added in a later release maybe?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnota30%2Fgenshingo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnota30%2Fgenshingo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnota30%2Fgenshingo/lists"}