短縮URL展開API


短縮URL展開APIデモ


展開後URL:

t.coとかgoo.glなどで試してみてね

JSONPリクエストURL:

短縮URL展開APIの使い方

パラメータ説明:
end point URL:
http://ryouchi.usamimi.info/expandurl/index.php
パラメータ:callback:
コールバック関数名を指定
パラメータ:url:
タイトルを取得したいURLをencodeして指定
使い方:
callback関数:getOrgURL()
URL:http://goo.gl/kLPZU
の場合、
http://ryouchi.usamimi.info/expandurl/index.php?callback=getOrgURL&url=http%3A//goo.gl/kLPZU
などと指定する。
取得データ(例):
getOrgURL( {"inputurl":"http:\/\/goo.gl\/kLPZU","outputurl":"http:\/\/ryouchi.seesaa.net\/"} );
タイトル取得API for JSONPとかと一緒に使うのもいいかもね。
作ったひと:りょーち