Documentation

Interweb.WTF provides a URL Cleaning service that removes tracking parameters from any URLs. The URL Cleaner only works with full URLs, please use the Shortlink Expander to expand and clean shortlinks from other providers.

Interweb.WTF provides several ways to resolve WTF Links:

Endpoint

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

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" \
"https://www.interweb.wtf/cli/v0/go/patient-recipe"

Response Types

By default, the API will return a text/plain response containing the URL that the WTF Link redirects to:

https://interwebalchemy.com/posts/building-a-chess-tutor/

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

curl --header "Authorization: Bearer $API_KEY" \
"https://www.interweb.wtf/cli/v0/go/patient-recipe/json"
{
  "url": "https://interwebalchemy.com/posts/building-a-chess-tutor/"
}