Can we get data from third party api in delivery customization

I want to show shipping method based on pin-code and price, so want data from third party API but enable to fetch data in delivery customization function.
If any one have solution for this or did before.
please help to figure out this.

const fetchData = async () => {
const result = await fetch(‘https://www.boredapi.com/api/activity’);
const jsonData = await result.json();
};

Hi Manthan,

Where exactly are you hoping to display the info? It may be challenging to make requests to an external API from within a checkout extension, and then display that new data.

Did you ever find a way to get this to work, or get any responses?
I’ve noticed that the data sent into Delivery Customization is too limited for what we need to do (check if the entered shipping address is a ‘one time’ address or an existing company location), so I need to call back into Shopify to get more data about the company location. But i’ve had no success being able to make a fetch from Delivery Customization.