APIs

Get random Kaomoji

  • URL: https://mayu.vince-g.xyz/api/
  • Method: GET
  • Parameters: nothing

Return type: JSON

{
  "code": 200,
  "kaomoji": "(。T ω T。)"
}

Get random anime girl picture

  • URL: https://mayu.vince-g.xyz/api/meizi
  • Method: GET
  • Parameters:
- Name:"type"
  Options:
    "common" - Mixed types
    "ayachi_nene" - 綾地寧々
    "mitsukasa_ayase" - 三司あやせ
    "murasame" - ムラサメ
    "tomotake_yoshino" - 朝武芳乃
    "sakimichan" - Drawings of Sakimichan

Return type: JSON

{
  "code": 200,
  "URL": "https://mayu.vince-g.xyz/api/pictures/common/IMG_0735.jpg"
}

Online code runner

  • URL: https://mayu.vince-g.xyz/api/codeRunner
  • Method: GET
  • Parameters:
    keyvaluenote
    langjavascripttypescript, python, java, cpp, c, rust
    code<your_code>
    typeremote, nullIf environment is not Netlify, you can choose remote runner in dev or prod env. (local runner by default.)

Return type: JSON

// lang=python&code=print("hello")
{
  "stdout": "hello\n",
  "stderr": ""
}

!IMPORTANT Powered by fast-dirpy.

  • URL: https://mayu.vince-g.xyz/api/directLink
  • Method: POST
  • Request Body:
// "source": [
//    "bilibili",
//    "youtube",
// ]
{
  "rawLink": "https://www.youtube.com/watch?v=SAXpBgkXt60",
  "source": "youtube"
}

Return type: JSON

{
  "code": 200,
  "directLink": "<direct_link>"
}

HTTP Cat

Input HTTP status code, then get a cat picture.

  • URL: https://mayu.vince-g.xyz/api/httpcat/[status_code]
  • Method: GET

Return type: JSON

Example: https://mayu.vince-g.xyz/api/httpcat/404

{
  "code": 200,
  "img": "https://mayu.vince-g.xyz/api/httpcat/404.jpg"
}

「Remake」 your life

!CAUTION Notice This is a meme api, it's return message is in Chinese.

  • URL: https://mayu.vince-g.xyz/api/remake
  • Method: GET
  • Parameters: None

Return Type: JSON

{
  "code": 200,
  "message": "重开成功!你出生在芬兰的市区, 是小南梁!"
}