shrtcode Developer API v2

published 2019-12-03T21:06:37+01:00 in shrtcode

The official shrtcode API to automatically create short Links - Now in Version 2.0!


  • This API is free to use (fair-use-policy)
  • There is no Authentication required (no API Keys!)
  • All requests can be made using GET or POST methods
  • All responses are in JSON format
  • The number of request is limited to 1 requests per second, per IP address
  • If you need help using this API, have feature request or want to have extended functionality (e.g. custom domains and/or custom short-links), feel free to contact us via email: info@tibush.com


API Base:

https://api.shrtco.de/v2/


API Endpoints:


Shorten a link

/shorten

Create a short link for a given URL. Requires a `url` parameter.


Example:

https://api.shrtco.de/v2/shorten?url=example.org/very/long/link.html

Response:

{"ok": true,"result": {"code": "KCveN","short_link": "shrtco.de/KCveN","full_short_link": "https://shrtco.de/KCveN","short_link2": "9qr.de/KCveN","full_short_link2": "https://9qr.de/KCveN","share_link": "shrtco.de/share/KCveN","full_share_link": "https://shrtco.de/share/KCveN","original_link": "http://example.org/very/long/link.html"}}


Get infos on a short link

/info

Get the long link of a shortened link and much more. Requires a `code` parameter containing a shrtcode code. The code is the last part of a short link. Example short link: shrtco.de/example ➡️ Code: "example"


Example:

https://api.shrtco.de/v2/info?code=example

Response:

{"ok": true,"result": {"code": "example","url": "http://www.example.com/","password_protected": false,"blocked": false,"created": "2018-05-17 16:46:29"}}



And that's it! ?

If you have any questions, please contact us via email: info@tibush.com