title: We can use google-translate without a Google-key?
body: <p>I found this code in a couple of websites (http://goo.gl/usUSP):</p>
  
  <pre><code>&lt;?php
  // Basic request parameters:
  // s = source language
  // d = destination language
  // q = Text to be translated
  
  $s = $_REQUEST['s'];
  if(!$s)echo "translate.php?s=en&amp;d=es&amp;q=Hello%20World";
  $d = $_REQUEST['d'];
  $lang_pair = urlencode($s.'|'.$d);
  $q = urlencode($_REQUEST['q']);
  
  // Google's API translator URL
  $url = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;q=".$q."&amp;langpair=".$lang_pair;
  
  // Make sure to set CURLOPT_REFERER because Google doesn't like if you leave the referrer out
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_REFERER, "http://www.yoursite.com/translate.php");
  $body = curl_exec($ch);
  curl_close($ch);
  
  $json = json_decode($body, true);
  echo $json['responseData']['translatedText'];
  ?&gt;
  </code></pre>
  
  <p>Ok basically from what I know, every call using the google translate API must provide a valid key (the user's key).</p>
  
  <p>However from the example code above no key is given and it works! prove: <a href="http://juzcode.com/translate.php?s=en&amp;d=es&amp;q=Hello%20World" rel="nofollow">http://juzcode.com/translate.php?s=en&amp;d=es&amp;q=Hello%20World</a>.</p>
  
  <p>I've got 3 questions regarding this issue:</p>
  
  <p>1) How is this even possible? (i'm not very php literate)</p>
  
  <p>2) The limit imposed by Google is 100k characters per Google-key. The example uses no key. So basically I'd have unlimited usage?</p>
  
  <p>3) Does it violate <a href="http://code.google.com/apis/language/translate/terms.html" rel="nofollow">http://code.google.com/apis/language/translate/terms.html</a> ? (I've tried to read it, really! But I'm no lawyer, I'd just want to be sure)</p>