Fifa 2020 Clubs Pro API, built on NodeJS/ES6. Wrapper to get stats for Fifa 2020 Pro Clubs Teams.
npm install fifa-api-proclubs
After you install the package, you can include fifa-api-proclubs within your code such this:
const proClubsApi = require('fifa-api-proclubs`);
All API operations need to preset a platform type. There are 3 different platforms:
- PS4
- XBOXONE
- PC
proClubsApi.club.platformType('PS4');
We can perform different operations according clubs:
- getClubIdByName(clubId)
- getClubMembers(clubId)
- getClubMemberStats(clubId)
- getClubSeasonRank(clubId)
- getClubSeasonStats(clubId)
- getClubStats(clubId)
- getClubMatchHistory(clubId)
- getClubInfo(clubId)
All operations require a clubId as paramater.
Example:
const resp = await club.getClubInfo('13607');
We can perform different operations according leaderboard:
- getOverallLeaderboard()
- getSeasonLeaderboard()
Example:
const resp = await leaderboard.seasonRankLeaderboard();
We can perform different operations according players/members:
- getMembersClubStats(clubId, blazeId)
- getMembersStats(blazeId)
getMembersClubStats retrieves actual data of a player inside a club. This operation require a clubId and blazeId (playerId) as parameters.
getMembersStats retrieves individual data of a player. This operation require a blazeId (playerId) as parameter.
Example:
const resp = await member.getMembersClubStats('13607', 'rE4p14Gj8KOtkGq63eL8mA!!:BrUy43tm4sv8Qz5jmZvGkg!!');
- getSettings()
Example:
const resp = await settings.getSettings();
Contributors and committers are welcome.
- Nicolas Taboada (Javascript developer)
- E-mail: [email protected]
- StackOverflow: nicolas-taboada
MIT license. Copyright © 2018.