Alex IA
Apify & Crawlee9mo ago
2 replies
Alex I

How to use Apify Proxy with NodeJS Fetch API in an actor for non-browser data collection?

I’m building an Apify actor where I first populate userData with data from an external API (using fetch) and then make browser requests. How do I configure Apify Proxy for both stages to use the same proxies and ensure data consistency?

const options: RequestOptions = {
    url: url,
    userData: { apiResponce: apiResponce },
};
await crawler.run(options);
Was this page helpful?