API

General:

 * News: api.ninja.io/news
 * Server statuses/stats: api.ninja.io/server
 * Skill and level ranking: api.ninja.io/user/ranking
 * Map Info: api.ninja.io/map
 * List of all the clans: api.ninja.io/clan/list
 * List of current games: api.ninja.io/game

Replace stuff in brackets with whatever it says to:
Note: clan IDs can be found via api.ninja.io/clan/list, and user IDs can be found via trial and error (there is no simple way)


 * View the members of a clan: api.ninja.io/clan/[clan ID]/members
 * View info of a clan: api.ninja.io/clan/[clan ID]/clan-id
 * View what clan a user is in: api.ninja.io/clan/[user ID]/account-id
 * View a users stats using their user ID: api.ninja.io/user/profile/[user ID]/view
 * View a users stats using their username: api.ninja.io/user/profile/[username]/view-name
 * View a users weapon stats: api.ninja.io/user/[user ID]/weapon-stats
 * Search for a player (provides some basic info such as their user ID): api.ninja.io/user/search/[search query]

Specific to the logged in user. Replace xxxxx with the code you get when you type App.Credential.id into the dev console on ninja.io:
(Disclaimer:Under no circumstances share this code with anyone and/or ask someone else for theirs. Also note that the App.Credential.id expires in 24 hours)


 * Any incoming messages from dms/the server: api.ninja.io/user/messages/xxxxx
 * View all incoming invitations: api.ninja.io/user/invitations/xxxxx
 * View all outgoing invitations: api.ninja.io/user/invitees/xxxxx
 * View your friend list: api.ninja.io/user/friends/xxxxx
 * If not in a clan, view all incoming clan invites: api.ninja.io/clan/invitations/xxxxx
 * View your own profile (with gold amount): api.ninja.io/user/profile/xxxxx

POST
Note: when creating the data to be posted, leave any brackets, unless they are surround by quotation marks. Ex: Leave the brackets in {example:["1","2","3"]} Remove the brackets in {example:"[remove the square brackets surrounding this]"}


 * Login and return info such as App.Credential.id: api.ninja.io/user/login data: {name: "[username]", password: "[password]"}
 * Create an account: api.ninja.io/user/register data: {name: "[username]", email: "[email address. leave blank for none]", password: "[password]", challenge: "[current captcha challenge. idk how to surpass it]"}
 * Send a friend gold: api.ninja.io/user/gold data: {"friendId":"[user ID]","amount":[amount. min 50. max 1000 per hour],"id":"xxxxx"}
 * Create a game: api.ninja.io/user/game/create data: {"gameId":"3","type":"private,custom,ranked","mode":"captureTheFlag","duration":"360m","name":"[name]","password":"[password. leave blank for none]","customization":{"weapons":[ Weapon IDs of allowed weapons, separated by commas. Example: "37","5","40","8"],"maps":[ Map IDs of allowed weapons, separated by commas. Example: "40","8","18","19","20","21"]},"id":"xxxxx"}
 * Invite someone as a friend: api.ninja.io/user/invite data: {"name":"[username of player to be invited]","id":"xxxxx"}