URL.co.uk

URL.co.uk API Usage



The URL.co.uk API allows you to easily create short URLs using HTTP GET or POST methods.

Before you can use the API you must contact us to register for an API account.

Required parameters are as follows:

  • http://url.co.uk/api/ - API endpoint
  • url=X - The URL to shorten
  • key=X - The API key we provide you
  • ua=X - Optional user-agent

The url and ua parameters should both be encoded, using PHP's rawurlencode() function, or the equivalent if using another language.

The API will return a plain-text string with an error or success message.

These messages take the following form: (ERROR|SUCCESS):[space](Description)