URL shortener

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST short_link https://api.admitad.com/shortlink/modify/
  • link

Returns a shortened link.

  • * Returns the result in the JSON format.

 

List of request parameters

Name

Type

Allowed values

Note

link string

Example: ?link=http://ad.admitad.com/g/4657cb709efb21a781aacd1ff8c49e/

The link must belong to one of Admitad’s domains.

 

Example of use

Example of a request with utility ``curl``

curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/shortlink/modify/ -d 'link=http://ad.admitad.com/g/4657cb709efb21a781aacd1ff8c49e/'


Example of the response from the API server in the JSON format

{
"short_link": "https://fas.st/ala7-",
}