import axios from "axios"; const url = "https://{domain}.jotform.com/API/pdf-converter/{form}/fill-pdf?apikey={apiKey}&download=1&submissionID={submissionId}"; const main = async() => { await Promise.all( Array(50).fill().map(async (_, i) => { try { await axios.get(url); console.log(`Got ${i}`); } catch (err) { console.log("ERR: ", { status: err.response.status, data: err.response.data, }); } }) ); } main();