How to use Wordpress make a api call?

My current flow is to create a product information first, make a api call,and then update the relevant information such as price into this product information. How can I set it up? Thank you.