GraphQL wrapper for the PUBG API (deprecated)
- Warning: this project is not being maintained and it's usage is not recommended.
PUBG API aggregator on top of GraphQL
$ git clone https://github.com/antoniojps/graphql-pubg.git
$ cd graphql-pubg
Paste your API KEY to .env
Install dependencies and start the server
$ npm install
// Starts both the webpack server as well as the graphQL server on 2 different ports
$ npm start
http://localhost:9000/graphql .
http://localhost:9000/graphiql
The last 2 games of the player "shroud" in the North American server
{
player(name:"shroud",shards:"pc-na",matchesLimit:2){
matches{
id
gameMode
createdAt
map
isCustomMatch
duration
totalParticipants
rosters{
id
slot
stats{
rank
kills
damage
dbnos
}
participants{
id
name
kills
damage
dbnos
}
}
}
}
}
Get single match data
{
match(id:"47529205-1e29-4149-ac67-90907027c5f0",shards:"pc-eu"){
id
map
isCustomMatch
rosters{
stats{
rank
kills
damage
}
participants{
name
kills
damage
}
}
}
}