https://30y.ir/api.php?url=YOUR-LONG-URL&custom=YOUR-CUSTOM-NAME
https://30y.ir/P
https://30y.ir/API/write/get
https://30y.ir/api/write/post
The url you want to shrink.
required.Custom name.
optional.Response type (json|xml).
optional, default: json.Set url to private (not listed).
optionalSet url password.
optional (max 10 chars)Number of uses for the url.
optionaldate in format MM/DD/YYYY to expire url.
optionalAdds a signature to track your application.
optionalhttps://30y.ir/API/write/get?url=http://youtube.com&custom=mycustomname&type=xml
<response> <success>1</success> <data> <id>mycustomname</id> <url>https://30y.ir/mycustomname</url> <full>http://youtube.com</full> <hits>0</hits> <status>custom_new</status> <via>api</via> <date>1330715001</date> <last>1330719941</last> </data> </response>
https://30y.ir/API/read/get
https://30y.ir/api/read/post
ID of the url you want to access.
required.password for url (if protected).
optional.Response type (json|xml).
optional, default: json.https://30y.ir/API/read/get?id=P&password=0000&type=xml
<response> <success>1</success> <data> <id>P</id> <hits>101</hits> <ads>1</ads> <hits>0</hits> <full>http://google.com</full> <created>1334239095</created> <last>1334241124</last> </data> </response>
(true|false) for request success.
Unique identifier of url.
Shortened url.
Full url before shortened.
Clicks left to inactivate url.
Number of hits to the link.
Indicate if url use ads.
Timestamp where the url was make.
Timestamp for the las click.
Timestamp to inactivate link.
<response> <success>0</success> <error> <code>0</code> <msg>domain not allowed</msg> </error> </response>
(true|false) for request success.
Error code: 0, 1 and 2.
Error msg.
- نامیا | کوتاه کننده لینک