Listing all domains available for a user

In order to get all domains you need to perform several API requests:

// URL: http://apiv2.clickmeter.com/domains?_expand=true&limit=150 - system domains

// URL: http://apiv2.clickmeter.com/domains?_expand=true&type=dedicated&limit=150 - dedicated domains

// URL: http://apiv2.clickmeter.com/domains?_expand=true&type=go&limit=150 - go.html domains

// URL: http://apiv2.clickmeter.com/domains?_expand=true&type=personal&limit=150 - personal domains

here's a JS example:

 

$.ajax({

 

   type: "GET",

 

   url: 'http://apiv2.clickmeter.com/domains?_expand=true&limit=150',

 

   dataType: 'json',

 

   headers: { "X-Clickmeter-AuthKey": 'API-KEY' }

 

})

 

.successs(function (data) {

});

 

/*

 

OUTPUT: {

 

 "entities": [

 

   {

 

     "id": 1794,

 

     "name": "34.gs"

 

   },

 

   {

 

     "id": 2084,

 

     "name": "87k.eu"

 

   },

 

   {

 

     "id": 2361,

 

     "name": "padlock.link"

 

   },

 

   {

 

     "id": 3697,

 

     "name": "httpslink.com"

 

   }

 

 ]

 

}

*/

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.