How to hide API key from users

Since its a shared web hosting, there are limitations on the kind of software that I can use. I tried creating a proxy server using PHP - but the code does not work. Thanks for your response anyway.