Get data from api and store it

Our company has external vendor for WhatsApp request .the vendor is providing webhook,API key and API secret .how can I use it to take order info and store it in my db or excel.