Profiles API Routes

This API uses laby.net’s database if a user doesnt appear in this API its because laby.net hasn’t cached the account yet. These docs aim to serve as a guide on how to use this API and what responses can possibly be returned.

GET /profiles/:username

This is currently the only endpoint for this API.

Possible responses

Here are the different responses that can be returned:

Profiles Found / HTTP 200:

{
  "profiles": [
    {
      "username": "Ask",
      "uuid": "b143b358-e068-4dfa-b292-0b417d01b2db",
      "username_history": [
        {
          "username": "Ask"
        }
      ]
    },
    {
      "username": "Bukon",
      "uuid": "19682311-cba0-4b8c-bd6b-5f0e37d8cf24",
      "username_history": [
        {
          "username": "Bukon",
          "changed_at": "2020-08-12T21:53:25.000Z"
        },
        {
          "username": "BukisonRae",
          "changed_at": "2020-06-05T20:32:29.000Z"
        },
        {
          "username": "ThePixelDamage",
          "changed_at": "2015-09-29T04:42:31.000Z"
        },
        {
          "username": "ThePixelDamageXZ",
          "changed_at": "2015-07-27T12:43:23.000Z"
        },
        {
          "username": "Ask",
          "changed_at": "2015-06-08T02:57:38.000Z"
        },
        {
          "username": "axzsa"
        }
      ]
    }
  ]
}

Profiles Not Found / HTTP 404:

{
  "profiles": []
}

An unknown error has occurred / HTTP 404:

{
  "error": "An error has occured"
}

Copyright Faav 2021, all rights reserved.