title: AJAX call error - status of 400 (Bad Request)
body: <p>I'm trying to use the BloomAPI to retrieve Doctor's NPI number by querying with their first and last name. I'm using Jquery Ajax to make a get request for the JSON data. </p>
  
  <p>I am able to get the JSON data when I do CURL in the terminal: curl -X GET '<a href="http://www.bloomapi.com/api/search?offset=0&amp;key1=last_name&amp;op1=eq&amp;value1=LIN&amp;key2=first_name&amp;op2=eq&amp;value2=JOHN" rel="nofollow">http://www.bloomapi.com/api/search?offset=0&amp;key1=last_name&amp;op1=eq&amp;value1=LIN&amp;key2=first_name&amp;op2=eq&amp;value2=JOHN</a>'</p>
  
  <p>For the purpose below - I just hardcoded in the params into the URL. 
  I get a "Failed to load resource: the server responded with a status of 400 (Bad Request" Error. Any idea what I might be doing wrong? </p>
  
  <pre><code>$.ajax({
      type: 'GET',
      url: 'http://www.bloomapi.com/api/search?offset=0&amp;key1=last_name&amp;op1=eq&amp;value1=LIN&amp;key2=first_name&amp;op2=eq&amp;value2=JOHN',
     dataType: 'jsonp'
    }).done(function(server_data) {
      console.log(server_data)
    }).fail(console.log("failed"));
  </code></pre>