title: Secure my API with an API key
body: <p>I am building my own API which is being used by:</p>
  
  <p>1) Android App
  2) Desktop Application</p>
  
  <p>One of my urls is this: <a href="http://api.chatapp.info/order_api/files/getbeers.php">http://api.chatapp.info/order_api/files/getbeers.php</a> from which my users get data from my database through JSON. I was thinking lately to create authentication with an API Key.</p>
  
  <p>Any ideas on how to do it? Or do i have to do something like <a href="http://api.chatapp.info/order_api/files/getbeers.php?api_key=">http://api.chatapp.info/order_api/files/getbeers.php?api_key=</a> and then compare the GET method with some key stored in my database?</p>
  
  <p>Any ideas?</p>