Hiding the api key



my hubspot website is hosted on hubspot itself and i’m wondering how can i securely hide the api key, since i have no access to a server side language? Hosting my api needs on another server seems quite inconvenient and might slow everything down. Specifically im looking at getting wheter a user is a contact or not.