const APIFY_TOKEN = "YOUR_APIFY_TOKEN" var run_inputs = { "location": "New York" } var url = "https://api.apify.com/v2/acts/9avOmybPQaoW1CDas/run-sync-get-dataset-items?token=" + APIFY_TOKEN var headers = { "content-type": "application/json" } var options = { method: "POST", headers, body: JSON.stringify(run_inputs) } var response = await fetch(url, options).then(res => res.json())