oshliaer
05/15/2025, 9:15 AMjs
const options: RequestOptions = {
url: url,
userData: { apiResponce: apiResponce },
};
await crawler.run(options);oshliaer
05/15/2025, 9:30 AMjs
import { Actor } from 'apify';
// Create proxy configuration
const proxyConfiguration = await Actor.createProxyConfiguration();
// Get a proxy URL to use with fetch
const proxyUrl = await proxyConfiguration.newUrl();
// Use the same proxyConfiguration for both fetch and crawler
// First for your API calls
// Then pass it to your crawler configuration