//-- Intent: gets the total number of contacts in the contact list with ListCode 123456. --// $.ajax({ type: "GET", headers: {"SwiftAPI-Key": "12345"}, contentType: "application/json; charset=utf-8", url: "http://api.v4.swiftreach.com/api/ContactLists/Contacts/Count/123456", dataType: "json" success: function(result) { // Do something with the result } }); <!-- example return value --> 1