{"id":26241117,"url":"https://github.com/robertograham/fortnite-2","last_synced_at":"2026-03-09T15:33:08.457Z","repository":{"id":49244862,"uuid":"162777037","full_name":"RobertoGraham/fortnite-2","owner":"RobertoGraham","description":"Java 11+ client for the APIs used by Epic Games Launcher and the Fortnite client","archived":false,"fork":false,"pushed_at":"2021-06-22T05:34:35.000Z","size":183,"stargazers_count":13,"open_issues_count":13,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T16:47:48.863Z","etag":null,"topics":["api","api-client","client","epic-games","fortnite","fortnite-api","java","stats"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobertoGraham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-22T03:02:39.000Z","updated_at":"2024-05-19T20:07:04.000Z","dependencies_parsed_at":"2022-09-26T22:10:51.389Z","dependency_job_id":null,"html_url":"https://github.com/RobertoGraham/fortnite-2","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/RobertoGraham/fortnite-2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2Ffortnite-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2Ffortnite-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2Ffortnite-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2Ffortnite-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertoGraham","download_url":"https://codeload.github.com/RobertoGraham/fortnite-2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2Ffortnite-2/sbom","scorecard":{"id":121718,"data":{"date":"2025-08-11","repo":{"name":"github.com/RobertoGraham/fortnite-2","commit":"859810fa22f966fb9fbf2b904a2f4e4fe070f970"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T02:35:48.677Z","repository_id":49244862,"created_at":"2025-08-16T02:35:48.677Z","updated_at":"2025-08-16T02:35:48.677Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","client","epic-games","fortnite","fortnite-api","java","stats"],"created_at":"2025-03-13T08:19:29.355Z","updated_at":"2026-03-09T15:33:08.421Z","avatar_url":"https://github.com/RobertoGraham.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/io.github.robertograham/fortnite-2.svg?label=Maven%20Central\u0026style=flat-square)](https://search.maven.org/search?q=g:%22io.github.robertograham%22%20AND%20a:%22fortnite-2%22)\n\n# fortnite-2\n\nA Java 11+ client for the APIs used by Epic Games Launcher and the Fortnite client\n\n## Features\n\n* Authentication with Epic's APIs is managed internally\n* Fetching and filtering (by platform, party type, and time window) of an account's Battle Royale statistics\n* Fetching of all-time win leader boards using different combinations of platform and party type\n* Fetching of a single account via its username or many accounts via their IDs\n* Adding and removing friends, accepting and declining friend requests\n* Fortnite EULA auto-accepting\n* Two-factor authentication\n\n## Installation\n\n### Maven\n\n```xml\n\u003cproperties\u003e\n  ...\n  \u003c!-- Use the latest version whenever possible. --\u003e\n  \u003cfortnite-2.version\u003e2.0.0\u003c/fortnite-2.version\u003e\n  ...\n\u003c/properties\u003e\n\n\u003cdependencies\u003e\n  ...\n  \u003cdependency\u003e\n    \u003cgroupId\u003eio.github.robertograham\u003c/groupId\u003e\n    \u003cartifactId\u003efortnite-2\u003c/artifactId\u003e\n    \u003cversion\u003e${fortnite-2.version}\u003c/version\u003e\n  \u003c/dependency\u003e\n  ...\n\u003c/dependencies\u003e\n```\n\n## Usage\n\n### Instantiating a client\n\nThis is the simplest way to instantiate a client:\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        final var fortnite = builder.build();\n    }\n}\n```\n\nIf Epic Games ever deprecate this library's default launcher and client tokens, you may provide your own like this:\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\")\n            .setEpicGamesLauncherToken(\"launcherToken\")\n            .setFortniteClientToken(\"clientToken\");\n        final var fortnite = builder.build();\n    }\n}\n```\n\nFortnite's EULA can be automatically accepted and access can be granted to Fortnite's APIs like so:\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\npublic final class Main {\n\n    public static void main(final String[] args) {\n        try (final var fortnite = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\")\n            .setAutoAcceptEulaAndGrantAccess(true)\n            .build()) {\n        }\n    }\n}\n```\n\n### Cleaning up\n\nWhen you no longer need your client instance, remember to terminate your Epic Games authentication session and release\nthe client's underlying resources with a call to `Fortnite.close()`. Usage examples further in this document will make \nthis call implicitly using `try`-with-resources statements.\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        final var fortnite = builder.build();\n        fortnite.close();\n    }\n}\n```\n\n### Fetching an account using its username\n\n```java\nimport io.github.robertograham.fortnite2.domain.Account;\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var optionalAccount = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\");\n            // nothing printed if the response was empty\n            optionalAccount.map(Account::accountId)\n                .ifPresent(System.out::println);\n            optionalAccount.map(Account::displayName)\n                .ifPresent(System.out::println);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n        }\n    }\n}\n```\n\n### Fetching an account using the session's account ID\n\n```java\nimport io.github.robertograham.fortnite2.domain.Account;\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var optionalAccount = fortnite.account()\n                .findOneBySessionAccountId();\n            // nothing printed if the response was empty\n            optionalAccount.map(Account::accountId)\n                .ifPresent(System.out::println);\n            optionalAccount.map(Account::displayName)\n                .ifPresent(System.out::println);\n        } catch (final IOException exception) {\n            // findOneBySessionAccountId unexpected response\n        }\n    }\n}\n```\n\n### Fetching many accounts using their IDs\n\n```java\nimport io.github.robertograham.fortnite2.domain.Account;\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\nimport java.util.Collections;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var accountId1String = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .map(Account::accountId)\n                .orElse(\"\");\n            final var accountId2String = fortnite.account()\n                .findOneByDisplayName(\"Ninja\")\n                .map(Account::accountId)\n                .orElse(\"\");\n            // accountSet will be empty if the response was empty\n            // OR if every account ID was invalid\n            final var accountSet = fortnite.account()\n                .findAllByAccountIds(accountId1String, accountId2String)\n                .orElseGet(Collections::emptySet);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountIds unexpected response\n        }\n    }\n}\n```\n\n### Statistic filtering API\n\nMost basic filtering - by time windows\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            final var accountIdString = account.accountId();\n            // if any null then we received an empty response\n            final var fromAccountAllTimeFilterableStatistic = fortnite.statistic()\n                .findAllByAccountForAllTime(account)\n                .orElse(null);\n            final var fromAccountIdAllTimeFilterableStatistic = fortnite.statistic()\n                .findAllByAccountIdForAllTime(accountIdString)\n                .orElse(null);\n            final var fromAccountCurrentSeasonFilterableStatistic = fortnite.statistic()\n                .findAllByAccountForCurrentSeason(account)\n                .orElse(null);\n            final var fromAccountIdCurrentSeasonFilterableStatistic = fortnite.statistic()\n                .findAllByAccountIdForCurrentSeason(accountIdString)\n                .orElse(null);\n            final var fromSessionAccountIdAllTimeFilterableStatistic = fortnite.statistic()\n                .findAllBySessionAccountIdForAllTime()\n                .orElse(null);\n            final var fromSessionAccountIdCurrentSeasonFilterableStatistic = fortnite.statistic()\n                .findAllBySessionAccountIdForCurrentSeason()\n                .orElse(null);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountForAllTime unexpected response\n            // OR findAllByAccountIdForAllTime unexpected response\n            // OR findAllByAccountForCurrentSeason unexpected response\n            // OR findAllByAccountIdForCurrentSeason unexpected response\n            // OR findAllBySessionAccountIdForAllTime unexpected response\n            // OR findAllBySessionAccountIdForCurrentSeason unexpected response\n        }\n    }\n}\n```\n\nFiltering by platform and then party type\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\nimport static io.github.robertograham.fortnite2.domain.enumeration.PartyType.SQUAD;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.PC;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            final var partyTypeFilterableStatistic = fortnite.statistic()\n                .findAllByAccountForAllTime(account)\n                .map(filterableStatistic -\u003e filterableStatistic.byPlatform(PC))\n                .orElseThrow();\n            final var statistic = partyTypeFilterableStatistic.byPartyType(SQUAD);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountForAllTime unexpected response\n        }\n    }\n}\n```\n\nFiltering by party type and then platform\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\nimport static io.github.robertograham.fortnite2.domain.enumeration.PartyType.SOLO;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.PS4;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            final var platformFilterableStatistic = fortnite.statistic()\n                .findAllByAccountForAllTime(account)\n                .map(filterableStatistic -\u003e filterableStatistic.byPartyType(SOLO))\n                .orElseThrow();\n            final var statistic = platformFilterableStatistic.byPlatform(PS4);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountForAllTime unexpected response\n        }\n    }\n}\n```\n\nInline platform and party type chained filter\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\nimport static io.github.robertograham.fortnite2.domain.enumeration.PartyType.DUO;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.XB1;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            final var statistic = fortnite.statistic()\n                .findAllByAccountForAllTime(account)\n                .map((final var filterableStatistic) -\u003e\n                    filterableStatistic\n                        .byPlatform(XB1)\n                        .byPartyType(DUO)\n                )\n                .orElse(null);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountForAllTime unexpected response\n        }\n    }\n}\n```\n\n`FilterableStatistic`, `PartyTypeFilterableStatistic`, and `PlatformFilterableStatistic` all extend `Statistic`. This \nmeans that you can make calls like `Statistic.kills()`, `Statistic.wins()`, etc. at each filtering stage to get narrower \nand narrower scoped values\n\n```java\nimport io.github.robertograham.fortnite2.domain.FilterableStatistic;\nimport io.github.robertograham.fortnite2.domain.PartyTypeFilterableStatistic;\nimport io.github.robertograham.fortnite2.domain.PlatformFilterableStatistic;\nimport io.github.robertograham.fortnite2.domain.Statistic;\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\nimport static io.github.robertograham.fortnite2.domain.enumeration.PartyType.SOLO;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.PC;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.PS4;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            final var filterableStatisticOptional = fortnite.statistic()\n                .findAllByAccountForAllTime(account);\n            // prints 761 at time of writing\n            filterableStatisticOptional.map(FilterableStatistic::kills)\n                .ifPresent(System.out::println);\n            // prints 5 at time of writing\n            filterableStatisticOptional.map((final var filterableStatistic) -\u003e filterableStatistic.byPlatform(PC))\n                .map(PartyTypeFilterableStatistic::kills)\n                .ifPresent(System.out::println);\n            // prints 580 at time of writing\n            filterableStatisticOptional.map((final var filterableStatistic) -\u003e filterableStatistic.byPartyType(SOLO))\n                .map(PlatformFilterableStatistic::kills)\n                .ifPresent(System.out::println);\n            // prints 575 at time of writing\n            filterableStatisticOptional.map((final var filterableStatistic) -\u003e\n                filterableStatistic\n                    .byPlatform(PS4)\n                    .byPartyType(SOLO)\n            )\n                .map(Statistic::kills)\n                .ifPresent(System.out::println);\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR findAllByAccountForAllTime unexpected response\n        }\n    }\n}\n```\n\n### Leader board API\n\nFetch the current season's wins leader board and print the accounts' names and wins. The example prints the following at \nthe time of writing:\n\n```text\nName: JohnPitterTV, Wins: 350\nName: TTV SwitchUMG, Wins: 251\nName: Twitch TheBigOCE, Wins: 201\nName: WE_桃子, Wins: 197\nName: BlossoM Tsunami, Wins: 182\n```\n\n```java\nimport io.github.robertograham.fortnite2.domain.Account;\nimport io.github.robertograham.fortnite2.domain.LeaderBoardEntry;\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\nimport java.util.function.Function;\nimport java.util.stream.Collectors;\n\nimport static io.github.robertograham.fortnite2.domain.enumeration.PartyType.SOLO;\nimport static io.github.robertograham.fortnite2.domain.enumeration.Platform.PC;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var leaderBoardEntryList = fortnite.leaderBoard()\n                .findHighestWinnersByPlatformAndByPartyTypeForCurrentSeason(PC, SOLO, 5)\n                .orElseThrow();\n            final var accountIdStringToAccountMap = fortnite.account()\n                .findAllByAccountIds(leaderBoardEntryList.stream()\n                    .map(LeaderBoardEntry::accountId)\n                    .map((final var accountIdString) -\u003e accountIdString.replaceAll(\"-\", \"\"))\n                    .toArray(String[]::new))\n                .map((final var accountSet) -\u003e\n                    accountSet.stream()\n                        .collect(Collectors.toMap(Account::accountId, Function.identity()))\n                )\n                .orElseThrow();\n            leaderBoardEntryList.stream()\n                .map((final var leaderBoardEntry) -\u003e\n                    String.format(\n                        \"Name: %s, Wins: %d\",\n                        accountIdStringToAccountMap.get(leaderBoardEntry.accountId().replaceAll(\"-\", \"\")).displayName(),\n                        leaderBoardEntry.value()\n                    )\n                )\n                .forEach(System.out::println);\n        } catch (final IOException exception) {\n            // findHighestWinnersByPlatformAndByPartyTypeForCurrentSeason unexpected response\n            // OR findAllByAccountIds unexpected response\n        }\n    }\n}\n```\n\n### Friend API\n\nFetch both accepted and pending friend requests for the authenticated user\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            fortnite.friend()\n                .findAllRequestsBySessionAccountId()\n                .ifPresent(System.out::println);\n        } catch (final IOException exception) {\n            // findAllRequestsBySessionAccountId unexpected response\n        }\n    }\n}\n```\n\nFetch only accepted friend requests for the authenticated user\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            fortnite.friend()\n                .findAllNonPendingRequestsBySessionAccountId()\n                .ifPresent(System.out::println);\n        } catch (final IOException exception) {\n            // findAllNonPendingRequestsBySessionAccountId unexpected response\n        }\n    }\n}\n```\n\nDelete a friend or a friend request using an account or an account ID\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            fortnite.friend()\n                .deleteOneByAccount(account);\n            fortnite.friend()\n                .deleteOneByAccountId(account.accountId());\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR deleteOneByAccount unexpected response\n            // OR deleteOneByAccountId unexpected response\n        }\n    }\n}\n```\n\nAdd a friend or accept a friend request using an account or an account ID\n\n```java\nimport io.github.robertograham.fortnite2.implementation.DefaultFortnite.Builder;\n\nimport java.io.IOException;\n\npublic class Main {\n\n    public static void main(final String[] args) {\n        final var builder = Builder.newInstance(\"epicGamesEmailAddress\", \"epicGamesPassword\");\n        try (final var fortnite = builder.build()) {\n            final var account = fortnite.account()\n                .findOneByDisplayName(\"RobertoGraham\")\n                .orElseThrow();\n            fortnite.friend()\n                .addOneByAccount(account);\n            fortnite.friend()\n                .addOneByAccountId(account.accountId());\n        } catch (final IOException exception) {\n            // findOneByDisplayName unexpected response\n            // OR addOneByAccount unexpected response\n            // OR addOneByAccountId unexpected response\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertograham%2Ffortnite-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertograham%2Ffortnite-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertograham%2Ffortnite-2/lists"}