I wanted to get JSON response from following API but gives me following error, API https://npiregistry.cms.hhs.gov/api/?number=1902072620
Uncaught SyntaxError: Unexpected token :
I have tried Ajax call this way,
$.ajax({
url: 'https://npiregistry.cms.hhs.gov/api/?number=1902072620',
dataType: 'JSONP',
jsonpCallback: 'callback',
type: 'GET',
success: function (data) {
console.log(data);
}
});
Please help me to figure out this issue, thanks in advance.