{"files":{"SKILL.md":"---\nname: fortnite-rest-api\ndescription: \"FORTNITE REST API skill. Use when working with FORTNITE REST for oauth, check, news. Covers 9 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# FORTNITE REST API\nAPI version: 3.1.5\n\n## Auth\nApiKey Authorization in header\n\n## Base URL\nhttps://skynewz-api-fortnite.herokuapp.com/api\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET /check -- get fortnite game status\n3. POST /oauth/token -- create first token\n\n## Endpoints\n9 endpoints across 7 groups. See references/api-spec.lap for full details.\n\n### Oauth\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /oauth/token | Get a Bearer token |\n\n### Check\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /check | Get Fortnite game status |\n\n### News\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /news | Get Fortnite News |\n\n### User\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /user/{plateform}/{username} | Get a user by username |\n\n### Stats\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /stats/{plateform}/{username} | Get user's stats by username |\n| GET | /stats/id/{plateform}/{id} | Get user's stats by user id |\n\n### Pve\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /pve/user/{username} | Get PVE Stat by given username |\n| GET | /pve/info | Get Fortnite PVE Info (storm, etc) |\n\n### Store\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /store | Get Fortnite Store |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a token?\" -> POST /oauth/token\n- \"List all check?\" -> GET /check\n- \"List all news?\" -> GET /news\n- \"Get user details?\" -> GET /user/{plateform}/{username}\n- \"Get stat details?\" -> GET /stats/{plateform}/{username}\n- \"Get id details?\" -> GET /stats/id/{plateform}/{id}\n- \"List all info?\" -> GET /pve/info\n- \"List all store?\" -> GET /store\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api FORTNITE REST API\n@base https://skynewz-api-fortnite.herokuapp.com/api\n@version 3.1.5\n@auth ApiKey Authorization in header\n@endpoints 9\n@toc oauth(1), check(1), news(1), user(1), stats(2), pve(2), store(1)\n\n@group oauth\n@endpoint POST /oauth/token\n@desc Get a Bearer token\n@required {email: any, password: any}\n@returns(200) Your access token\n@errors {401: Authentication failed, 404: Authentication failed. User not found}\n\n@endgroup\n\n@group check\n@endpoint GET /check\n@desc Get Fortnite game status\n@returns(200) Fortnite is okay !\n\n@endgroup\n\n@group news\n@endpoint GET /news\n@desc Get Fortnite News\n@returns(200) A JSON objects of current news\n\n@endgroup\n\n@group user\n@endpoint GET /user/{plateform}/{username}\n@desc Get a user by username\n@required {plateform: any # Playing plateform, can be xb1, ps4 or pc, username: any # Player username}\n@returns(200) JSON Object of user\n@errors {404: User not found or not found on this plateform}\n\n@endgroup\n\n@group stats\n@endpoint GET /stats/{plateform}/{username}\n@desc Get user's stats by username\n@required {plateform: any # Playing plateform, can be xb1, ps4 or pc, username: any # Player username}\n@returns(200) JSON Object of user stats\n@errors {400: Please precise a good platform: ps4/xb1/pc, 404: User not found or not found on this plateform}\n\n@endpoint GET /stats/id/{plateform}/{id}\n@desc Get user's stats by user id\n@required {plateform: any # Playing plateform, can be xb1, ps4 or pc, id: any # Player ID}\n@returns(200) JSON Object of user stats\n@errors {400: Please precise a good platform: ps4/xb1/pc, 404: User not found or not found on this plateform}\n\n@endgroup\n\n@group pve\n@endpoint GET /pve/user/{username}\n@desc Get PVE Stat by given username\n@required {username: any # Fortnite username}\n@returns(200) All okay\n@errors {404: User not found or not found on this plateform}\n\n@endpoint GET /pve/info\n@desc Get Fortnite PVE Info (storm, etc)\n@returns(200) All okay\n\n@endgroup\n\n@group store\n@endpoint GET /store\n@desc Get Fortnite Store\n@returns(200) Current store object\n\n@endgroup\n\n@end\n"}}