Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

berrysauce/thisday.link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“† thisday.link

Secure link shortener with 24h valid links

Python version GitHub repo size GitHub last commit Website Status

⚠️ thisday.link is temporarily out of service. I've noticed suspicious traffic and it has became to much work to block all suspicious domains. I might restart the service at some point if a fix is available.

What is thisday.link

It's basically ANOTHER link shortener. But why is it special, you might ask? Shortened links are only valid for 24 hours and shortened domains have to support SSL (and have it corectly set up) and not be on our blocklist. In the future, thisday.link might check popular malicious domain blacklists to be extra secure. thisday.link also generates a handy QR code for you.

How to use

thisday.link can be used comfortably from the web interface, but it also supports HTTP API requests. Here is a small documentation of how to use it.

⬇ GET Meta

Gets the metadata of the shortened URL. This includes its slug, expiry, and redirect location.

GET /api/v1/meta/{slug}
Query Parameter Type Description
slug string Required. The slug of the shortened URL (e.g. https://thisday.link/r/**2sa837**)

Response (Valid link) [200]

{
  "detail": "Link available",
  "slug": "2sa837",
  "expiry": "2022-04-12 20:51:14.429058",
  "redirect": "https://example.com"
}

Response (Expired link) [404]

{
  "detail": "Link expired",
  "slug": "2sa837"
}

⬆ POST Create

Gets the metadata of the shortened URL. This includes its slug, expiry, and redirect location.

POST /api/v1/create
Body Parameter Type Description
url string Required. The URL you would like to shorten (e.g. https://example.com)

Response (Success) [200]

{
  "detail": "Link created",
  "slug": "2sa837",
  "expiry": "2022-04-12 20:51:14.429058",
  "redirect": "https://example.com"
}

Response (SSL Error) [403]

{
  "detail": "SSL Error"
}

Response (Blocked) [403]

{
  "detail": "Domain blocked by thisday.link"
}