title: Error 403 when searching for food using Zomato API
body: <p>Let's say I want to list all seafood restaurants in Jakarta using this Zomato API:
  <a href="https://developers.zomato.com/documentation#!/restaurant/search" rel="nofollow noreferrer">https://developers.zomato.com/documentation#!/restaurant/search</a></p>
  <p>Here's how you call it directly with curl:</p>
  <pre><code>curl -X GET --header &quot;Accept: application/json&quot; --header &quot;user-key: xxxxxxxxxxxxxxxxxxxx&quot; &quot;https://developers.zomato.com/api/v2.1/search?entity_id=74&amp;q=seafood&quot;
  </code></pre>
  <p>Which returns big JSON like this:
  [![enter image description here][1]][1]</p>
  <p>Now I want to do it via PHP:</p>
  <pre><code>&lt;?php 
  
      ini_set('display_errors', 1);
      ini_set('display_startup_errors', 1);
      error_reporting(E_ALL);
  
      $ZOMATO_API_KEY = &quot;xxxxxxxxxxxxxxxx&quot;;
  
      $BASE_URL = &quot;https://developers.zomato.com/api/v2.1/search&quot;;
  
      // Find all 'seafood' restaurants in Jakarta
      $data = array ('entity_id' =&gt; '47', 'q' =&gt; 'seafood');
      $PARAMS = '';
      foreach ($data as $key=&gt;$value){
          $PARAMS .= $key.'='.$value.'&amp;';
      }
           
      $PARAMS = trim($PARAMS, '&amp;');
  
      $HEADERS = [
          'Accept' =&gt; 'application/json',
          'user-key' =&gt; $ZOMATO_API_KEY
      ];
  
      $ch = curl_init(); 
      curl_setopt($ch, CURLOPT_URL, $BASE_URL.'?'.$PARAMS); 
      curl_setopt($ch, CURLOPT_HTTPHEADER, $HEADERS);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
      $curl_output = curl_exec($ch); 
      curl_close($ch);      
  
      echo $curl_output;
  ?&gt;
  </code></pre>
  <p>Got this error instead:</p>
  <blockquote>
  <p>{ code: 403, status: &quot;Forbidden&quot;, message: &quot;Invalid API Key&quot; }</p>
  </blockquote>
  <p>What's wrong here? I'm sure the API key is correct.</p>