carlos-menezes / fc-clubs-api

An API written in TypeScript for the FC24 Clubs mode which allows developers to retrieve game statistics for all platforms.
8 stars 3 forks source link
api clubs eafc

eafc-clubs-api

An API written in TypeScript for the FC24 Clubs mode which allows developers to retrieve game statistics for all platforms.

Installation

npm i eafc-clubs-api

Example

Check examples/ for common use cases of this library.

Endpoints

searchClub(input: InferType<typeof SCHEMAS.CLUB_SEARCH>): Promise<Club[]>

Search for a club by name.

Parameters

Returns

An array of Club objects that match the search criteria.

overallStats(input: InferType<typeof SCHEMAS.OVERALL_STATS>): Promise<OverallStats[]>

Get the overall stats of the club.

Parameters

Returns

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.

Parameters

Returns

An array of MemberCareerStats objects that represent the career stats of all members of the club.

matchesStats(input: InferType<typeof SCHEMAS.MATCHES_STATS>): Promise<Match[]>

Get the stats of all matches of the club

Parameters

Returns

An array of Match objects that represent the stats of all matches of the club.

memberStats(input: InferType<typeof SCHEMAS.MEMBER__STATS>): Promise<MemberStats[]>

Get the stats of all members of the club.

Parameters

Returns

An array of MemberStats objects that represent the stats of all members of the club.