theme-app-extension: Make an external api call to get data to access in liquid files

abhay-singh
Visitor
1 0 0

Hi there,

 

I want some data from an external server through an API call.

How do I make an API call to get data which I can access inside liquid files of theme app extension

Replies 4 (4)
JustinW
Shopify Partner
15 0 4

You will want to use the Shopify App Proxy architecture to do this. You can see more info in the links below:
https://shopify.dev/apps/online-store/app-proxies
https://www.youtube.com/watch?v=ZiugtHDctFk

Helping customers integrate their E-Commerce and Salesforce data
aidendev
Shopify Partner
8 0 0

Is creating a proxy app the only way to make external api calls from one's theme extension? 

JustinW
Shopify Partner
15 0 4

It depends on what you are trying to do. Either proxy app or Shopify functions are the ways of modifying backend data in Shopify.

Helping customers integrate their E-Commerce and Salesforce data
aidendev
Shopify Partner
8 0 0

I see, so safe to say any api calls to external services require proxy app. ty