shorten url service for internet marketing with traffic statistics

kl.am

API Documentation

kl.am's API uses a simple REST interface.

Endpoint: http://kl.am/api/

Methods

shorten

Parameters:

format: json

Returns:

Examples:

http://kl.am/api/shorten/?url=http%3A%2F%2Fgoogle.com
http://kl.am/api/shorten/?url=http%3A%2F%2Fgoogle.com&api_key=aaaaa&tags=tag1+tag2&utm_source=Twitter

Returns JSON-encoded object:

format: text

Returns:

Example:

http://kl.am/api/shorten/?url=http%3A%2F%2Fgoogle.com&format=text

Returns:

http://kl.am/2

stats

This method is in beta and may change without warning

Parameters:

Returns:

Example:

http://kl.am/api/stats/?short=2 or
http://kl.am/api/stats/?short=http%3A%2F%2Fkl.am%2F2

Returns JSON-encoded object: