GO Penthouse

Our API

General Info

We offer an API that allows applications to automatically create short URLs. This is done by simply reading the result returned from:
http://go.penthouse.com/api/?key=YOUR-API-KEY&url=SOURCE-URL
YOUR-API-KEY - your personal API Key, taken from profile page.
SOURCE-URL - URL that must be shortened. This is URL-encoded string (most programming languages have appropriate function for that, ex. PHP, Perl, Java, JavaScript, etc.)

Result is a JSON-encoded string.

Successful Shortening

If everything is OK, our API returns JSON-encoded string like that:
{
  "status":"OK",
  "url":"http://go.penthouse.com/s6Bf"
}

Failed Call

In case of any problems, the result will be like that:
{
  "status":"ERROR",
  "message":"Invalid API Key!"
}

Enjoy using our API. :-)