{"id":23009693,"url":"https://github.com/eklypss/pubgsharp","last_synced_at":"2025-07-26T01:14:08.932Z","repository":{"id":85338753,"uuid":"92860958","full_name":"eklypss/PUBGSharp","owner":"eklypss","description":"C# wrapper for PUBG stats API","archived":false,"fork":false,"pushed_at":"2018-07-22T12:23:12.000Z","size":74,"stargazers_count":25,"open_issues_count":9,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-26T15:52:17.191Z","etag":null,"topics":["api-wrapper","net-core","pubg"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eklypss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-05-30T17:55:15.000Z","updated_at":"2023-01-25T20:42:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"560f3303-36dc-41e5-bb91-425df249e65a","html_url":"https://github.com/eklypss/PUBGSharp","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/eklypss/PUBGSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklypss%2FPUBGSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklypss%2FPUBGSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklypss%2FPUBGSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklypss%2FPUBGSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eklypss","download_url":"https://codeload.github.com/eklypss/PUBGSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklypss%2FPUBGSharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267097725,"owners_count":24035634,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-wrapper","net-core","pubg"],"created_at":"2024-12-15T09:15:20.718Z","updated_at":"2025-07-26T01:14:08.908Z","avatar_url":"https://github.com/eklypss.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Important update (2018)\nAs of **April 2018**, this project will become completely obsolete by the introduction of the [official PUBG Developer API](https://developer.playbattlegrounds.com/). This project **will not be updated** to support the official API, but there might be a new, separate project created from scratch that will do so at some point. Thanks to everyone who contributed to this project.\n\n\n\n[![Build status](https://ci.appveyor.com/api/projects/status/hb3fiwht7531imv6?svg=true)](https://ci.appveyor.com/project/eklypss/pubgsharp)\n[![NuGet version](https://badge.fury.io/nu/PUBGSharp.svg)](https://badge.fury.io/nu/PUBGSharp)\n\n# PUBGSharp\nC# wrapper for PUBG stats API provided by https://pubgtracker.com\n\n## Notes\n* The API is maintained and provided by pubgtracker.com and all credits go to them. This project just wraps the API for easy usage in C#.\n* The project targets .NET Framework 4.5 and .NET Core 1.1.\n* No need to implement throttling yourself, PUBGSharp does this for you.\n\n## Installation\nTo add PUBGSharp to your project, run the following command in the NuGet Package Manager Console:\n\u003eInstall-Package PUBGSharp\n\n## Getting API key\nYou can get your API key from here: https://pubgtracker.com/site-api\n\n## Usage\nA very basic example, getting the KDR of the specified player in duo mode, in all regions combined in Early Access Season 1.\n```\nvar statsClient = new PUBGStatsClient(\"api-key-here\");\nvar stats = await statsClient.GetPlayerStatsAsync(\"player-name-here\");\ntry\n{\n    var kdr = stats.Stats.Find(x =\u003e x.Mode == Mode.Duo \u0026\u0026 x.Region == Region.AGG \u0026\u0026 x.Season == Seasons.EASeason1).Stats.Find(x =\u003e x.Stat == Stats.KDR);\n    Console.WriteLine($\"Duo KDR: {kdr.Value}\");\n}\ncatch (NullReferenceException)\n{\n    Console.WriteLine($\"Could not retrieve stats for {stats.PlayerName}..\");\n}\n```\nFor a bit more detailed examples, see the Examples project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feklypss%2Fpubgsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feklypss%2Fpubgsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feklypss%2Fpubgsharp/lists"}