Updating page with 3rd party data via API

Ok, to start off, I have a website, well duh. I have a company that uses Webgains for their affiliate program. I signed up to be their affiliate and post links to their deals on a page on my site. But, they update their deals every day and I can’t keep up with them. My site traffic doesn’t get the deals.

Right now, I have a google sheet that I have to manually update and it automatically gets updated to my site.

I have the API from webgains that shows me what my deals are.

Here is an example of what my API looks like:
https://api.webgains.
com/2.0/vouchers?networks=US&joined=1&key=e26604f65430b9d26ea97ld3468bd4b63

I changed the numbers above and below for privacy.

and an example of the result:
[{“code”:“honeyx10”,“programId”:265855,“type”:“generic”,“startDate”:“2018-04-23T05:00:00+01:00”,“expiryDate”:“2021-04-26T04:59:59+01:00”,“commissionType”:“default”,“description”:“10% off everything!”,“destinationUrl”:“https://www.website.
com/offers/honeyx10”,“trackingUrl”:“https://track.webgains.
com/click.html?wgcampaignid=141151&wgprogramid=665894”,“discount”:“10% off everything!”,“program_name”:“companyname US”,“network”:“US”,“currency”:“USD”,“id”:1712345,“commissionValueFormatted”:“Default”}]

I have spent way too much time trying to figure out how to do this. All of the how-to’s I see seem to be how to get data from WIX to 3rd party. Or it’s API inside WIX to WIX.

I just want to show a repeater that says:

Deal Expiration date.

They both have a link that is the trackingUrl above.

Hopefully someone can help me with this. Thanks in advance.

Assuming your webgain API is REST based. Your options are Wix’s fetch API, as mentioned in the post below. Or use a node module like axios or similar.
https://www.wix.com/corvid/forum/main/comment/5bd5c9f12553b200de2d4d9b
Hope this helps.

I’ve looked at a bunch of examples but most of them seem to be search based.
I just want to display information on my page from others. I assume displaying my weather temp and cloud cover would be a similar situation. Maybe not because I have 50 different deals I’m trying to display at the same time.