Shorten long link

  • URL
    1. /shorten
  • Method
    1. POST
  • URL Params
    1. Required:
      long_url=[string]
      apikey=[string]
  • Sample Call
    1. curl --data "long_url=https://www.wikipedia.org/&apikey=123456" https://url.itunix.eu/shorten
  • Success Response
    1. Code: 200 OK
      Content: https://url.itunix.eu/12345
      Code: 201 CREATED
      Content: https://url.itunix.eu/12345
  • Error Response
    1. Code: 401 UNAUTHORIZED
      Content: No valid api key
      Code: 422 UNPROCESSABLE ENTRY
      Content: No valid field

Get a long link

  • URL
    1. /[:string]
  • Method
    1. GET
  • Sample Call
    1. curl https://url.itunix.eu/12345
  • Success Response
    1. Code: 301 MOVED PERMANENTLY
  • Error Response
    1. Code: 422 UNPROCESSABLE ENTRY
      Content: Nothing found

Preview link

  • URL
    1. /[:string]/preview
  • Method
    1. GET
  • Sample Call
    1. curl https://url.itunix.eu/12345/preview
  • Success Response
    1. Code: 200 OK
      Content: HTML Website
  • Error Response
    1. Code: 404 NOT FOUND