';
You need to send parameters to http://gkurl.us/api.php
either via GET
or POST
(remember to URL encode parameters if via GET). These parameters are:
action
: "shorturl" (get short URL for a link), "expand" (get long URL of a shorturl), "url-stats" (get stats about one short URL), "stats" (get stats about your links) or "db-stats" (get global link and click count)url
to shortenkeyword
and title
for custom short URLsformat
: either "jsonp", "json", "xml" or "simple"shorturl
to expand (can be either 'abc' or 'http://gkurl.us/abc')format
: either "jsonp", "json", "xml" or "simple"shorturl
for which to get stats (can be either 'abc' or 'http://site/abc')format
: either "jsonp", "json" or "xml"filter
: either "top", "bottom" , "rand" or "last"limit
(maximum number of links to return)format
: either "jsonp", "json" or "xml"format
: either "jsonp", "json" or "xml"<result> <url> <keyword>shorter</keyword> <url>http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=33.420%C2%B0N,+116.489%C2%B0W&ie=UTF8&ll=33.214563,-116.30127&spn=0.923734,1.783905&t=h&z=10&iwloc=near</url> <title>The Page Title</title> <date>2009-06-23 18:08:07</date> <ip>127.0.0.1</ip> </url> <status>success</status> <message>http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=33.420%C2%B0N,+116.489%C2%B0W&ie=UTF8&ll=33.214563,-116.30127&spn=0.923734,1.783905&t=h&z=10&iwloc=near (ID: shorter) added to database</message> <title>The Page Title</title> <shorturl>http://gkurl.us/wpl</shorturl> <statusCode>200</statusCode> </result>