Skip to content

HLRLookup

Returns details about the carrier of the given North American phone number.

// uses JQuery library
var postUrl =
'https://secure.smsgateway.ca/services/message.svc/' +
'HLRLookup/' +
accountKey +
'/' +
phoneNumber;
$.ajax({
url: postUrl,
method: 'GET',
contentType: 'application/json;charset=UTF-8',
})
.done(function (response) {
alert(response);
})
.error(function (xhr, textStatus, errorThrown) {
alert(xhr.responseText);
});

HTTP Request

GET:

/services/message.svc/HLRLookup/:accountKey/:phoneNumber
ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL
phoneNumberThe phone number to perform a HLR lookup onURL

Returns

HLRNumberInfo