Skip to content

API Endpoints nya~

Base UWL OwO

https://nekos.best/api/:version

Wepwace :version with one of the suppowted vewsions bewow >w<.

Vewsions UwU

Vewsion
Status
v2
Cuwwent & Maintained nya~

Impowtant >w<

Befowe making any weqwesties, pwease wead the User-Agent documentawion OwO. Aww weqwesties must incwude a pwopewwy fowmatted User-Agent headew nya~!

Endpoints UwU

GET /endpoints

Wetuwns aww avaiwabwe API categowies and meow-associated fiwe fowmats >w< !

Exampwe nya~

https://nekos.best/api/v2/endpoints

json
{
  "neko": { "format": "png" },
  "...": {},
  "wink": { "format": "gif" }
}

nya~

Use this endpoint to dynamicawwy discovew suppowted categowies instead of hawdcoding them >w< !


GET /:category

Wetuwns a wandom image ow GIF fwom the meow-specified categowy, incwuding metadata OwO!

Qwewy Pawametews >w<

NameTypeWequiwedDescwiption
amountnumberNoNumbew of wesults to wetuwn (1 ≤ X ≤ 20)

Defauwts to 1 if not specified nya~.

Exampwe (singwe wesult >w<)

https://nekos.best/api/v2/neko

json
{
  "results": [
    {
      "artist_name": "John Doe",
      "artist_href": "https://www.example.com/en/users/1234567",
      "source_url": "https://www.example.com/en/artworks/1234567",
      "url": "https://nekos.best/api/v2/neko/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.png",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    }
  ]
}

Exampwe (muwtipwe wesults UwU)

https://nekos.best/api/v2/hug?amount=2

json
{
  "results": [
    {
      "anime_name": "Generic Anime Name",
      "url": "https://nekos.best/api/v2/hug/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.gif",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    },
    {
      "anime_name": "Generic Anime Name",
      "url": "https://nekos.best/api/v2/hug/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.gif",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    }
  ]
}

Seawch fow images ow GIFs using metadata such as awtist names ow souwce titwes OwO!

Qwewy Pawametews nya~

NameTypeWequiwedDescwiption
querystringYesSeawch phwase
typeenumYes1 = images, 2 = GIFs
categorystringNoWestwict wesults to a categowy
amountnumberNoNumbew of wesults (1 ≤ X ≤ 20)

Exampwe (image seawch >w<)

https://nekos.best/api/v2/search?query=John&type=1

json
{
  "results": [
    {
      "artist_name": "John Doe",
      "artist_href": "https://www.example.com/en/users/1234567",
      "source_url": "https://www.example.com/en/artworks/1234567",
      "url": "https://nekos.best/api/v2/neko/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.png",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    }
  ]
}

Exampwe (GIF seawch with categowy UwU)

https://nekos.best/api/v2/search?query=Generic&type=2&category=pat&amount=2

json
{
  "results": [
    {
      "anime_name": "Generic Anime Name",
      "url": "https://nekos.best/api/v2/hug/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.gif",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    },
    {
      "anime_name": "Generic Anime Name",
      "url": "https://nekos.best/api/v2/hug/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.gif",
      "dimensions": {
        "width": 420,
        "height": 690
      }
    }
  ]
}

GET /:category/:filename.:format

Wetwieves a specific asset diwectwy OwO!

Path Pawametews nya~

NameDescwiption
categoryCategowy name
filenameAsset fiwename (UUID)
formatFiwe fowmat (png, gif)

INFO

Metadata fow this endpoint is wetuwned via UWL-encoded HTTP wesponse headews >w<.

Avaiwabwe headews OwO:

  • anime_name
  • artist_name
  • artist_href
  • source_url

Exampwe nya~

https://nekos.best/api/v2/hug/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.gif

Wesponse: Binawy image ow GIF data >w<