Interweb.WTF provides a Shortlink Expander that expands and cleans any shortlinks from other providers.
Interweb.WTF provides several ways to expand shortlinks:
interweb.wtf/is/
interweb.wtf/is/https://bit.ly/1sNZMwL
/is
endpointhttps://www.interweb.wtf/cli/v0/is
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"
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"
}