Developer API

You can use our API to shorten url from your apps like web application.

To use our  API you need to be registerd 
if you do not have an account you can
register here.

Your API Key : you can get it from your account setting page
https://munj.pw/user/settings
from Developer widget

 munj.pw API returns response in text and json format,all you have to do is to send a GET request with your API key and URL Like the following:

http://munj.pw/api?key=yourkey&url=yoursite.com

or for json:

http://munj.pw/api?key=yourkey&url=yoursite.com&format=json

with php you can do like this:

$url="url";

$api_url="http://munj.pw/api?key=yourkey&url=$url";

$result=@file_get_contents($api_url);

if( $result ){
 echo $result;
}

for json:

$url="url";

$api_url="http://munj.pw/api?key=yourkey&url=$url&format=json";

$result=@json_decode(file_get_contents($api_url));

if($result["error"] === '1') {
 echo $result["msg"];
} else {
 echo $result["short"];
}