{"id":16148864,"url":"https://github.com/attron/chessdotcom-go","last_synced_at":"2025-04-06T21:27:25.451Z","repository":{"id":45232092,"uuid":"442376966","full_name":"ATTron/chessdotcom-go","owner":"ATTron","description":"chess.com api wrapper for go","archived":false,"fork":false,"pushed_at":"2021-12-31T02:52:50.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T03:23:25.514Z","etag":null,"topics":["api","chess","chessdotcom","go","golang","lightweight","wrapper","wrapper-api"],"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/ATTron.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":"2021-12-28T06:54:04.000Z","updated_at":"2021-12-31T02:52:52.000Z","dependencies_parsed_at":"2022-09-19T07:13:05.986Z","dependency_job_id":null,"html_url":"https://github.com/ATTron/chessdotcom-go","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/ATTron%2Fchessdotcom-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATTron%2Fchessdotcom-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATTron%2Fchessdotcom-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATTron%2Fchessdotcom-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ATTron","download_url":"https://codeload.github.com/ATTron/chessdotcom-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247553018,"owners_count":20957390,"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","chess","chessdotcom","go","golang","lightweight","wrapper","wrapper-api"],"created_at":"2024-10-10T00:35:08.205Z","updated_at":"2025-04-06T21:27:25.423Z","avatar_url":"https://github.com/ATTron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chessdotcom-go\nAn unofficial, simple, lighweight API wrapper for chess.com written in go\n\n## Usage\n*Complete Documentation can be found at https://pkg.go.dev/github.com/ATTron/chessdotcom-go*  \n```bash\n    go get -u \"github.com/ATTron/chessdotcom-go\"\n```\n### If you just need the JSON string\n```\n    import chess \"github.com/ATTron/chessdotcom-go\"\n\n    . . .\n\n    const username = 'hikaru'\n\n    func main() {\n        userStats := chess.GetUserStats(username)\n        fmt.Println(userStats)\n    }\n```\n### If you want to use the JSON in a meaningful way in go I **highly** recommend using [gjson](https://github.com/tidwall/gjson)\n```\n    import (\n        chess \"github.com/ATTron/chessdotcom-go\"\n        \"github.com/tidwall/gjson\"\n    )\n\n    . . .\n\n    const username = \"hikaru\"\n\n    func main() {\n        userStats := chess.GetUserStats(username)\n        blitz := gjson.Get(userStats, \"chess_blitz\")\n        fmt.Println(blitz.String())\n        rapid := gjson.Get(userStats, \"chess_rapid.record\")\n        fmt.Println(rapid.String())\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattron%2Fchessdotcom-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fattron%2Fchessdotcom-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattron%2Fchessdotcom-go/lists"}