API Documentation

This is version 3 of the shrturi.com API. It follows common REST patterns.

POST /api/v1/shorten

Will take the passed in URL and create a new shortened link.

Parameters

  • url - The long link. (example: http://google.com/).

Return Values

Format: json.

  • result_url - short link
  • error - information about the error, if it occurred

Example

Request:

curl -XPOST -d 'url=https%3A%2F%2Fgoogle.com%2F' 'https://shrturi.com/api/v1/shorten'

Response:

{"result_url":"https:\/\/shrturi.com\/jUxiQe"}

Rate Limiting

6,000 calls per hour.