How to make a serverless function that sends data to a data provider api?

I’m new to using serverless and API’s looking for some insight on how it would be done! Any help would be appreciated! My aim would be to create a function that sends data to an API every hour.