Skip to main content

PubgPlayersService

A list of all methods in the PubgPlayersService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_pubg_playersList players for the PUBG videogame

get_pubg_players

List players for the PUBG videogame

  • HTTP Method: GET
  • Endpoint: /pubg/players

Parameters

NameTypeRequiredDescription
filterFilterOverPubgPlayersOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverPubgPlayersOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverPubgPlayersOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

Player[]

Example Usage Code Snippet

import {
FilterOverPubgPlayers,
Page,
PandascoreClient,
RangeOverPubgPlayers,
SearchOverPubgPlayers,
VideogameId,
} from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const videogameId = VideogameId._1;

const filterOverPubgPlayers: FilterOverPubgPlayers = {
active: true,
birthday: ['officia nulla'],
firstName: ['tempor'],
id: [2],
lastName: ['qui aute'],
modifiedAt: ['aliqua'],
name: ['suntlab'],
nationality: ['estvelit '],
role: ['occae'],
slug: ['8w-9o4lf07'],
teamId: [10],
videogameId: [videogameId],
};

const rangeOverPubgPlayers: RangeOverPubgPlayers = {
birthday: ['esse proide'],
firstName: ['ut ex minim v'],
id: [6],
lastName: ['et ea'],
modifiedAt: ['ex eu'],
name: ['cillum'],
nationality: ['irure anim '],
role: ['in adipisicing'],
slug: ['ts58g3zx8'],
};

const searchOverPubgPlayers: SearchOverPubgPlayers = {
birthday: 'Ut in',
firstName: 'molli',
lastName: 'eu non',
name: 'dolore ',
nationality: 'idfugiat sit e',
role: 'dolore',
slug: '6s90u8',
};
const page = 1;

const { data } = await pandascoreClient.pubgPlayers.getPubgPlayers({
filter: filterOverPubgPlayers,
range: rangeOverPubgPlayers,
sort: [[]],
search: searchOverPubgPlayers,
page: page,
perPage: 50,
});

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →