Can I integrate a custom-coded button and hidden API key in my new store?

Hey I am new to shopify, but I am looking at maybe setting up a store here. If I needed a button to do a task using custom code would I be able to do that? And if this custom code used an API to get data from another server would this is do-able, while also keeping the API-Key hidden?

Hi @nerio1

Yes, you can create a button with custom code to perform a task and use an API to fetch data from another server in a Shopify store. However, to keep your API key hidden, you’ll need to make the API call from the server-side, using either Shopify’s App Proxy feature or by creating a custom Shopify app.