Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

MCGoSnipe/api-endpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ENDPOINTS

Authentication

Redirect users to here to authenticate.

Same response as refresh endpoint (shown below).

Refresh

GET /api/refresh?code=<refresh token> One of the 2 responses below:

{"error": null, "access_token": "JWT for Minecraft API", "refresh_token": "Refresh token for use with this API"}
{"error": "error descriptor here", "access_token": null, "refresh_token": null} // access token and refresh token arent provided if code isn't passed

Status

GET /api/status/name/<NAME> or GET /api/status/id/<UUID>

NAME is the profile name, UUID is the UUID of the profile, with or without dashes.

{
  "status": "available"
}
{
  "status": "soon",
  "time": "2011-10-05T14:48:00.000Z"
}
{
  "status": "taken",
  "namemc": {
    "views": 0,
    "searches": 0,
    "skins": [
      "https://namemc.com/texture/14d2c366f0cd3a95.png"
    ],
    "linked": true,
    "friends": { //only shown if `linked` is true
      "count": 1,
      "list": {
        "MeMyselfAndI": "00000000-0000-0000-0000-000000000000"
      }
    },
    "socials": {}
  },
  "nameHistory": [
    {
      "name": "CoolNameXD",
      "changedToAt": 1
    },
    {
      "name": "Imagine"
    }
  ]
}
{
 "error": "error here"
}

Releases

No releases published

Packages

No packages published