{"openapi":"3.1.0","info":{"title":"StatsProxy Service","description":"Service for querying Fortnite Stats","version":"1.0.0"},"paths":{"/statsv2/account/{accountId}":{"get":{"tags":["Stats V2"],"summary":"Get the stats of the specified account","parameters":[{"in":"path","name":"accountId","schema":{"$ref":"#/components/schemas/AccountID"},"required":true,"description":"An account id"},{"in":"query","name":"startTime","schema":{"type":"integer","format":"int64","default":0},"required":false,"description":"The start time of the stats"},{"in":"query","name":"endTime","schema":{"type":"integer","format":"int64","default":9223372036854776000},"required":false,"description":"The end time of the stats"}],"responses":{"200":{"description":"Account stats data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStats"}}}},"204":{"description":"Account stats are private"}},"description":"**Permission Required**: [`fortnite:stats READ`](https://egs.jaren.wtf/#resource=fortnite:stats&action=2)","security":[{"bearer":["fortnite:stats READ"]}]}},"/statsv2/leaderboards/{leaderboardName}":{"get":{"tags":["Stats V2"],"summary":"Get the leaderboard for the specified stat id","parameters":[{"in":"path","name":"leaderboardName","schema":{"type":"string"},"required":true,"description":"A stat id, only very few are supported (ex. `br_placetop1_gamepad_m0_playlist_defaultsolo`)"}],"responses":{"200":{"description":"Leaderboard data","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"accountId":{"$ref":"#/components/schemas/AccountID"},"value":{"type":"number","format":"int64"}}}},"maxSize":{"type":"integer","format":"int32"}}}}}},"500":{"description":"Unsupported stat","content":{"application/json":{"schema":{"examples":[{"errorCode":"errors.com.epicgames.common.processing_exception","errorMessage":"Sorry a processing exception occurred while we were waiting for you to send us request data. (tracking id: [00000000-0000-0000-0000-000000000000])","messageVars":["00000000-0000-0000-0000-000000000000"],"numericErrorCode":1037,"originatingService":"statsproxy","intent":"live","trackingId":"00000000-0000-0000-0000-000000000000"}]}}}}},"description":"**Permission Required**: [`fortnite:stats READ`](https://egs.jaren.wtf/#resource=fortnite:stats&action=2)","security":[{"bearer":["fortnite:stats READ"]}]}},"/statsv2/query":{"post":{"tags":["Stats V2"],"summary":"Bulk get the stats of the multiple accounts","parameters":[{"in":"query","name":"category","schema":{"type":"string","enum":["collection_character","collection_fish"]},"required":false,"description":"Indicate the category of stats to retrieve. If not provided, the `stats` parameter must be supplied."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["owners"],"properties":{"appId":{"type":"string","examples":["Fortnite"]},"startDate":{"type":"integer","format":"int64","default":0},"endDate":{"type":"integer","format":"int64","default":9223372036854776000},"owners":{"type":"array","items":{"$ref":"#/components/schemas/AccountID"}},"stats":{"type":"array","description":"Only required if `category` is not supplied","items":{"type":"string","examples":["br_placetop1_keyboardmouse_m0_playlist_defaultsolo"]}}}}}}},"responses":{"200":{"description":"Stats data","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountStats"}}}}}},"description":"**Permission Required**: [`fortnite:stats READ`](https://egs.jaren.wtf/#resource=fortnite:stats&action=2)","security":[{"bearer":["fortnite:stats READ"]}]}},"/version":{"get":{"tags":["Version"],"summary":"Get the current version","responses":{"200":{"description":"Version info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}}}}}},"components":{"schemas":{"AccountID":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$","examples":["8b0a23cb43af46cb972806f4025a9cba"],"description":"This represents a unique id for an epic games account"},"Version":{"type":"object","required":["app","serverDate","overridePropertiesVersion","cln","build","moduleName","buildDate","version","branch","modules"],"properties":{"app":{"type":"string"},"serverDate":{"type":"string","format":"date-time"},"overridePropertiesVersion":{"type":"string"},"cln":{"type":"string"},"build":{"type":"string"},"moduleName":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"},"modules":{"type":"object","additionalProperties":{"type":"object","required":["cln","build","buildDate","version","branch"],"properties":{"cln":{"type":"string"},"build":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"}}}}}},"AccountStats":{"type":"object","properties":{"startTime":{"type":"integer","format":"int64","default":0},"endTime":{"type":"integer","format":"int64","default":9223372036854776000},"stats":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"examples":[{"br_kills_keyboardmouse_m0_playlist_defaultduo":29,"br_lastmodified_keyboardmouse_m0_playlist_defaultduo":1680422917,"br_matchesplayed_keyboardmouse_m0_playlist_defaultduo":18,"br_minutesplayed_keyboardmouse_m0_playlist_defaultduo":1207,"br_placetop1_keyboardmouse_m0_playlist_defaultduo":2,"br_placetop5_keyboardmouse_m0_playlist_defaultduo":6,"br_placetop12_keyboardmouse_m0_playlist_defaultduo":10,"br_playersoutlived_keyboardmouse_m0_playlist_defaultduo":182,"br_score_keyboardmouse_m0_playlist_defaultduo":5061,"s22_social_bp_level":100100}]},"accountId":{"$ref":"#/components/schemas/AccountID"}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://statsproxy-public-service-live.ol.epicgames.com/statsproxy/api"}]}