Shortener

An API Key is required for this service. See Shared Responses for common error responses.

Shorten A URL

POST https://yiff.rocks/create

If Read Only is enabled, a 503 Service Unavailable will be returned.

Query Parameters

Request Body

// Max: 50
{
  "success": false,
  "error": "Provided code is too long.",
  "code": 1070
}

Get A Short URL (Redirect)

GET https://yiff.rocks/:code

// Redirected to original url

Get A Short URL (Preview)

GET https://yiff.rocks/:code+

// HTML Page

Get A Short URL (JSON)

GET https://yiff.rocks/:code.json

{
  "success": true,
  "data": {
    "code": "",
    "createdAt": "0000-00-00T00:00:00.000Z",
    "modifiedAt": "0000-00-00T00:00:00.000Z", // nullable
    "url": "",
    "pos": 0,
    "credit": "",
    "fullURL": "https://yiff.rocks/{code}"
  }
}

Delete A Short URL

DELETE https://yiff.rocks/:code

If Read Only is enabled, a 503 Service Unavailable will be returned.

Request Body

{
  "success": false,
  "error": "You must provide an authorization code. These are created at the time the short url was created.",
  "code": 1076
}

Modify A Short URL

PATCH https://yiff.rocks/:code

If Read Only is enabled, a 503 Service Unavailable will be returned.

Request Body

{
  "success": false,
  "error": "You must provide an authorization code. These are created at the time the short url was created.",
  "code": 1076
}

Last updated