Proxy
Apify Proxy lets you rotate IP addresses when scraping to avoid geographic blocking. Use it from your Actors or any application that supports HTTP proxies. Apify monitors the IP pool's health and rotates addresses to prevent IP-based blocking.
Your proxy settings and password are on the Proxy page in Apify Console. For pricing, see apify.com/pricing.
Proxy types
Each proxy type has distinct advantages, disadvantages, and pricing. Use them to access websites from different geographies and with different levels of anonymity. To check whether your plan includes enough datacenter IP addresses, estimate how many you need.
Quickstart
Using Apify Proxy takes just a couple of lines of code with the Apify SDKs:
- JavaScript SDK with PuppeteerCrawler
- Python SDK with requests
import { Actor } from 'apify';
import { PuppeteerCrawler } from 'crawlee';
await Actor.init();
const proxyConfiguration = await Actor.createProxyConfiguration();
const crawler = new PuppeteerCrawler({
proxyConfiguration,
async requestHandler({ page }) {
console.log(await page.content());
},
});
await crawler.run(['https://proxy.apify.com/?format=json']);
await Actor.exit();
import requests, asyncio
from apify import Actor
async def main():
async