Here is the pedestrian way (without recursion). Your data is rather large so the recursion would hit memory issues soon. Does the API have a call to find out the maximum ID? Do you have a link to the API documentation? I don't think "startIndex" is a valid field. let So...
https://www.fipeplaca.com.br/mobile/terms What’s New 23 Jan 2024 Version 5.26.14 Nesta versão incluimos: Correção de bugs, melhoria de performance novo logo App Privacy The developer,Roberto Guerra, indicated that the app’s privacy practices may include handling of data as described...