Landing pages

Parameters

HTTP method Access rights URL Parameters Note
GET landings https://api.admitad.com/landings/{c_id}/
  • limit**
  • offset**
Returns a list of landing pages, where с_id is the affiliate program ID*.
GET landings https://api.admitad.com/landings/{c_id}/website/{w_id}/ Returns a list of landing pages, where с_id is the affiliate program ID*, and w_id is the ad space ID*.
  • * Returns the result in the JSON format.
  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET
https://api.admitad.com/landings/6/?limit=2

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

{
"results": [
{
"id": "13",
"name": "Gmail Landing",
"date_created": "2014-06-28T18:43:18"
}
],
"_meta": {
"count": 1,
"limit": 2,
"offset": 0
}
}

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET
https://api.admitad.com/landings/6/website/123/?limit=2

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

{
"results": [
{
"id": "13",
"name": "Gmail Landing",
"date_created": "2014-06-28T18:43:18",
"gotolink": "https://ad.admitad.com/g/9a03752bb275478cca00463f97455a85f9795251/",
}
],
"_meta": {
"count": 1,
"limit": 2,
"offset": 0
}
}

Description of API server response fields

Name Description
id Landing page ID
name Name of landing page
date_created Landing page added date and time
gotolink Link (only with the website_id parameter)