swagger: '2.0' info: title: FORTNITE REST API description: REST API about Fortnite game version: 3.1.5 host: skynewz-api-fortnite.herokuapp.com basePath: /api schemes: - https securityDefinitions: Bearer: type: apiKey name: Authorization in: header tags: - name: Security description: How to access to this API - name: User description: Get user info - name: Stats description: Get all you Fornite stats - name: Check description: Get Fortnite status - name: PVE description: Get all your PVE Stats - name: Store description: Get store infos consumes: - application/x-www-form-urlencoded - application/json produces: - application/json paths: /oauth/token: post: tags: - Security summary: Get a Bearer token parameters: - name: email in: formData type: string required: true - name: password in: formData type: string required: true responses: '200': description: Your access token schema: type: object properties: access_toekn: type: string expiresIn: type: string description: Time in seconds for the validity of token '404': description: Authentication failed. User not found schema: type: object properties: message: type: string success: type: boolean '401': description: Authentication failed schema: type: object properties: message: type: string success: type: boolean /check: get: security: - Bearer: [] tags: - Check summary: Get Fortnite game status responses: '200': description: Fortnite is okay ! schema: type: object properties: status: type: boolean default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string /news: get: security: - Bearer: [] tags: - News summary: Get Fortnite News responses: '200': description: A JSON objects of current news schema: type: object properties: common: type: object properties: _type: type: string title: type: string body: type: string br: type: object properties: image: type: string description: Image path of this news _type: type: string description: Type of news title: type: string body: type: string loginmessage: type: object properties: _type: type: string title: type: string body: type: string survivalmessage: type: object properties: _type: type: string title: type: string body: type: string default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string '/user/{plateform}/{username}': get: security: - Bearer: [] tags: - User summary: Get a user by username parameters: - name: plateform in: path type: string required: true description: 'Playing plateform, can be xb1, ps4 or pc' - name: username in: path type: string required: true description: Player username responses: '200': description: JSON Object of user schema: type: object properties: id: type: string description: ID of player displayName: type: string '404': description: User not found or not found on this plateform schema: type: object properties: code: type: integer format: int32 message: type: string default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string '/stats/{plateform}/{username}': get: security: - Bearer: [] tags: - Stats summary: Get user's stats by username parameters: - name: plateform in: path type: string required: true description: 'Playing plateform, can be xb1, ps4 or pc' - name: username in: path type: string required: true description: Player username responses: '200': description: JSON Object of user stats schema: type: object properties: group: type: object properties: solo: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer duo: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer squad: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer description: 'Stats on solo, duo or squad' info: type: object description: Display user info properties: accountId: type: integer username: type: string plateform: type: string lifetimeStats: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer '404': description: User not found or not found on this plateform schema: type: object properties: code: type: integer format: int32 message: type: string '400': description: 'Please precise a good platform: ps4/xb1/pc' default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string '/stats/id/{plateform}/{id}': get: security: - Bearer: [] tags: - Stats summary: Get user's stats by user id parameters: - name: plateform in: path type: string required: true description: 'Playing plateform, can be xb1, ps4 or pc' - name: id in: path type: string required: true description: Player ID responses: '200': description: JSON Object of user stats schema: type: object properties: group: type: object properties: solo: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer duo: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer squad: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer description: 'Stats on solo, duo or squad' info: type: object description: Display user info properties: accountId: type: integer username: type: string plateform: type: string lifetimeStats: type: object properties: wins: type: integer description: Number of top1 top3: type: integer description: Number of top3 top5: type: integer description: Number of top5 top6: type: integer description: Number of top6 top10: type: integer description: Number of top10 top12: type: integer description: Number of top12 top25: type: integer description: Number of top25 k/d: type: number description: Ratio Kill/Dead win%: type: number description: Wins ratio kills: type: integer description: Number of kills timePlayed: type: string description: 'Number of days, hours and minutes played' killsPerMatch: type: string description: Number of kill/match killsPerMin: type: string description: Number of kill/minute score: type: integer '400': description: 'Please precise a good platform: ps4/xb1/pc' '404': description: User not found or not found on this plateform schema: type: object properties: code: type: integer format: int32 message: type: string default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string '/pve/user/{username}': get: security: - Bearer: [] tags: - PVE summary: Get PVE Stat by given username parameters: - name: username in: path type: string required: true description: Fortnite username responses: '200': description: All okay schema: type: object '404': description: User not found or not found on this plateform schema: type: object properties: code: type: integer format: int32 message: type: string default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string /pve/info: get: security: - Bearer: [] tags: - PVE summary: 'Get Fortnite PVE Info (storm, etc)' responses: '200': description: All okay schema: type: object default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string /store: get: security: - Bearer: [] tags: - Store summary: Get Fortnite Store responses: '200': description: Current store object schema: type: object default: description: Unexpected error schema: type: object properties: code: type: integer format: int32 message: type: string