Cloud scraping platform with actor marketplace. Use KnoxProxy as an external proxy provider in Apify actors for better geo-targeting and lower per-GB costs.
Go to your actor settings or create a new actor.
In actor input, set proxy configuration to "Custom proxies".
{
"proxyConfiguration": {
"useApifyProxy": false,
"proxyUrls": ["http://USER:PASS@gw.knoxproxy.com:7000"]
}
}Add country to proxy URL.
"proxyUrls": ["http://USER-country-us:PASS@gw.knoxproxy.com:7000"]Add multiple proxy URLs for rotation across countries.
"proxyUrls": [
"http://USER-country-us:PASS@gw.knoxproxy.com:7000",
"http://USER-country-gb:PASS@gw.knoxproxy.com:7000",
"http://USER-country-de:PASS@gw.knoxproxy.com:7000"
]Run the actor and check logs for proxy connection status.
Check actor output for correct geo-targeted results.
/**
* KnoxProxy + Apify Actor -- custom proxy configuration.
*/
import { Actor } from 'apify';
import { CheerioCrawler } from 'crawlee';
await Actor.init();
const proxyConfiguration = await Actor.createProxyConfiguration({
proxyUrls: ['http://USER:PASS@gw.knoxproxy.com:7000'],
});
const crawler = new CheerioCrawler({
proxyConfiguration,
async requestHandler({ request, $ }) {
const title = $('title').text();
await Actor.pushData({ url: request.url, title });
},
});
await crawler.run(['https://example.com']);
await Actor.exit();Apify rotates through proxyUrls automatically. Each URL gets a new KnoxProxy IP per request. Add multiple country-targeted URLs for geo-rotation.
| Problem | Fix |
|---|---|
| Proxy connection refused | Verify URL format: http://USER:PASS@gw.knoxproxy.com:7000. No trailing slash. |
| Actor timeout | Increase request timeout in crawler options. |
USER-country-de-city-berlin-session-profile07Order matters -- geo flags before the session flag. The session name is free text; use the profile ID so the mapping is self-documenting. Password stays as issued; no flags belong there. HTTP on :7000, SOCKS5 on :7001, same credentials.
KnoxProxy residential is $2.10/GB vs Apify residential at $8/GB+. Use KnoxProxy for volume workloads to cut proxy costs significantly.
Yes. Crawlee (Apify SDK) supports custom proxy configurations. Pass KnoxProxy URLs via createProxyConfiguration({ proxyUrls: [...] }).
Yes. Set custom proxies in the actor input JSON. Cloud actors connect to KnoxProxy gateway from Apify servers.
Yes. Put both Apify proxy URLs and KnoxProxy URLs in the proxyUrls array. Crawlee rotates between them.
Free trial on rotating residential -- 5 minutes setup, no credit card.