API Endpoints

GET /api/tanaka
{
  "status": 200,
  "url": "string",
  "tags": [
    "tag1",
    "tag2",
    "tag3"
  ]
}

GET /api/tanaka/random
{
  "status": 200,
  "results": [
    {
      "url": "string",
      "tags": [
        "tag1",
        "tag2"
      ]
    },
    {
      "url": "string",
      "tags": [
        "tag2",
        "tag3"
      ]
    }
  ]
}

Params:

  • ?count=2 - Get more than 1 url(s).
  • ?tag=[tag1, tag4] - See available tags in /tags

Example:

  • https://bigbits.eu.org/api/tanaka/random?count=2&tag=tag1,tag3

GET /api/tanaka/tags
{
  "status": 200,
  "tags": [
    "tag1",
    "tag2",
    "tag3"
  ]
}

Errors

All errors will have the following response:

{ "status": 400, "message": "error msg" }