GET /api/getplayerid
Returns the PUBG account id for a single gamertag.
Authentication
This endpoint requires HTTP Basic Auth using your PubgClans login credentials.
Parameters
gamertag(string) — exact PUBG player name (case-insensitive)platform(string, optional) —xboxorpsn
Example
GET /api/getplayerid?gamertag=SomeName
GET /api/getplayerid?gamertag=SomeName&platform=psn
Response
{
"player": {
"player_id": "account.xxxxx",
"player_name": "SomeName",
"platform": "xbox"
}
}
cURL
curl -u "USERNAME:PASSWORD" "https://www.pubgclans.net/api/getplayerid?gamertag=SomeName"
curl -u "USERNAME:PASSWORD" "https://www.pubgclans.net/api/getplayerid?gamertag=SomeName&platform=psn"