Documentation

Interweb.WTF provides a Shortlink Expander that expands and cleans any shortlinks from other providers.

Interweb.WTF provides several ways to expand shortlinks:

  • visit the Shortlink Expander page and pasting in the shortlink you want to expand
  • use the URL-based expanding method by appending the URL to the interweb.wtf/is/
interweb.wtf/is/https://bit.ly/1sNZMwL

Endpoint

https://www.interweb.wtf/cli/v0/is

Authentication

The Interweb.WTF CLI API uses an Authorization HTTP Header with a Bearer Token.

Authorization: Bearer wtf_v0_abcdefghijklmnopqrstuvwxyz0123456789

Note: In all of the example requests you should replace $API_KEY with an API Key you generated in Settings > Developer.

curl --header "Authorization: Bearer $API_KEY" \
--location "https://www.interweb.wtf/cli/v0/is/https://bit.ly/1sNZMwL"

Response Types

By default, the API will return a text/plain response containing the expanded URL:

https://en.wikipedia.org/wiki/Bitly

You can also add /json to the endpoint URL to get a JSON response:

curl --header "Authorization: Bearer $API_KEY" \
--location "https://www.interweb.wtf/cli/v0/is/https://bit.ly/1sNZMwL/json"
{
  "url": "https://en.wikipedia.org/wiki/Bitly"
}