Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.32 KB

font.md

File metadata and controls

64 lines (53 loc) · 1.32 KB

NameMC Custom Font API docs

NameMC has their own system for having Custom Fonts.

This API's purpose is to get a users Custom Font.

GET /v1/namemc/font?username=:IGN_Here

This is the only endpoint for this API.

Parameters are as follows:

  • IGN_Here - the current username of the account

Possible fonts

  • Amarante
  • Carter One
  • Coda
  • Concert One
  • Emilys Candy
  • Griffy
  • Henny Penny
  • Kalam
  • Kelly Slab
  • Lacquer
  • Lobster
  • Merienda
  • Mystery Quest
  • PT Mono
  • Pacifico
  • Righteous
  • Rye
  • Sancreek
  • Sofia
  • Special Elite
  • Spicy Rice
  • Spirax
  • Stardos Stencil
  • Underdog
  • UnifrakturMaguntia

Possible responses

The API will almost always return HTTP status code 200 OK and set its Content-Type header to application/json.

If the user you provide doesn't exist, the API will return HTTP status code 404 Not Found, and the Content-Type header will remain application/json.

Here are the different responses that can be returned:

Returns the Font / HTTP 200:

{"font":"Spirax"}

No Font / HTTP 200:

{"font":null}

User Does Not Exist / HTTP 404:

{"error":"This user doesn't exist"}

You Didn't Provide The Username Parameter / HTTP 404:

{"error":"You didn't supply an account to get a font from! Add the parameter ?username=IGN_HERE."}