Frama.link

Shorten your URLs

Dans le cadre de la campagne Déframasoftisons Internet, Framalink est en cours de fermeture.
Depuis début 2021, il n’est plus possible de raccourcir de nouveau lien sur le service. Les liens raccourcis avant cette date restent valides.
Trouver des alternatives : https://alt.framasoft.org/framalink/.

In the context of the campaign Deframasoftisons Internet, Framalink is being closed.
Since the beginning of 2021, it is no longer possible to shorten a new link on the service. Links shortened before this date remain valid.
Find alternatives: https://alt.framasoft.org/framalink.

Lstu API

POST https://frama.link/add
Parameters:
  • lsturl mandatory
    URL to shorten
  • lsturl-custom optional
    Custom shortened text
  • format optional
    If equal to "json", response will be in JSON format, HTML format otherwise
Response:
  • JSON: success
    {"url":"https:\/\/fiat-tux.fr","short":"https:\/frama.link\/XzQBd6eFa","success":true}
  • JSON: failure
    {"msg":"Failure reason","success":false}
  • Response for HTML format
    You will be redirected to the Lstu classic interface with a message giving the shortened URL
GET https://frama.link/shortened_url
Response:
  • You will be redirected to the targeted URL or to the Lstu interface with a message giving the failure reason
GET https://frama.link/shortened_url.json
Response:
  • JSON: success
    {"url":"https:\/\/fiat-tux.fr","success":true}
  • JSON: failure
    {"msg":"Failure reason","success":false}
GET https://frama.link/stats

It will use Lstu's cookies to know which shortened URL it will return statistics for.

Parameters:
  • format optional
    If equal to "json", response will be in JSON format, HTML format otherwise
Response:
  • Response for JSON format
    [{"short":"https:\/frama.link\/shortened_url","url":"URL","counter":integer, how many unique visits of the shortened URL}]
  • Response for HTML format
    A page with a table containing the same informations that the JSON response
GET https://frama.link/stats/shortened_url

Get the details (visit counter, creation date, etc.) of a shortened URL.

Response:
  • JSON: success
    {"url":"https:\/\/fiat-tux.fr","short":"https:\/frama.link\/shortened_url","success":true,"counter":integer, how many unique visits of the shortened URL,"created_at":1519296674,"short":"URL","timestamp":1519296680}
  • JSON: failure
    {"msg":"Failure reason","success":false}