An API written in TypeScript for the FC24 Clubs mode which allows developers to retrieve game statistics for all platforms.
npm i eafc-clubs-api
Check examples/
for common use cases of this library.
Search for a club by name.
input
: An object containing the search parameters. The object must conform to theSCHEMAS.CLUB_SEARCH
schema.
An array of Club
objects that match the search criteria.
Get the overall stats of the club.
input
: An object containing the search parameters. The object must conform to theSCHEMAS.OVERALL_STATS
schema.
An array of OverallStats
objects that represent the overall stats of the club.
memberCareerStats(input: InferType<typeof SCHEMAS.MEMBER_CAREER_STATS>): Promise<MemberCareerStats[]>
Get the stats of all members of the club.
input
: An object containing the search parameters. The object must conform to theSCHEMAS.MEMBER_CAREER_STATS
schema.
An array of MemberCareerStats
objects that represent the career stats of all members of the club.
Get the stats of all matches of the club
input
: An object containing the search parameters. The object must conform to theSCHEMAS.MATCHES_STATS
schema.
An array of Match
objects that represent the stats of all matches of the club.
Get the stats of all members of the club.
input
: An object containing the search parameters. The object must conform to theSCHEMAS.MEMBER__STATS
schema.
An array of MemberStats
objects that represent the stats of all members of the club.