URLs I/O API
Our service has simple but powerfull API, callable via HTTP GET. It requires API key, which you get automatically after logging in.
All responces are in JSON.
Get short url from the long one
URL: http://urls.io/api/get-short
- Arguments:
-
- api_key
- API key given to you after authentication.
- env
- Optional environment number (integer). Helps you to look after several sites you're placing links on.
- full_url
- Fully-specified URL you wish to make shorter.
- short_key
- Optional desirable short key. If it's not suitable, error will be returned.
- Success response:
-
- status
- SUCCEED
- short_url
- Provided short address.
- short_key
- Short key given to identify your link.
- Error responce:
-
- status
- FAILED
- error_msg
- Short explanation of failure reasons.