I get served a list of 500 company numbers every weekday at 5 am, i need to have available information for my sales agents by 7.30 am in the morning.
This i solve by using an API that collects the information from a government website where i come from. It's the only source available.
The API is limited to just one company per request.
I have solved this code wise using a for of loop which loops over my table, sends an api fetch request based on the number, then inserts the information, then starts the next loop.
The issue I'm facing is the limit of 50 fetch requests pr automation.
The only solution i can come up with myself at my current code/situation is to make the automation limited to 50 runs pr automation, then make 10+ scheduled weekday runs.
I have access to 50.000 monthly automation runs so that's no issue, but there has to be a better/ More elegant solution than this?
Here's an example API link:
https://data.brreg.no/enhetsregisteret/api/enheter/929135180/roller?
The number marked in red is the company number i mentioned, it gives a result of who owns the company, which in this case is me, Ruben Rossvold.