I think you should use $.ajax as $.get calls $.ajax internally anyway.
$.ajax({
type: "GET",
url: '/api/MyWebApiController/' + data,
success: function (result) { },
error: function (e) { }
});
On the Web Api controller side:
public String GetNameById(Int32 id)
{
return GetNameById(id);
}
Note:- This 'GetNameById' should reside in your 'MyWebApiController'.