ill-bronzeI
Apify & Crawlee2y ago
2 replies
ill-bronze

How to set up Apify Proxy correctly with native Puppeteer?

Hi guys, I want to use Apify Proxy with native Puppeteer JS. Is this the correct setup? Thanks in advance!

INPUT SCHEMA:

"proxyConfiguration": {
"title": "Proxy configuration",
"type": "object",
"description": "Select proxies to be used.",
"prefill": {
"useApifyProxy": true,
"apifyProxyGroups": [],
"country": ""
},
"editor": "proxy"
}


MAIN.JS:

const input = await Actor.getInput();
const { proxyConfiguration } = input;

const browser = await puppeteer.launch({
headless: "new",
proxy: proxyConfiguration
});
Was this page helpful?