diff --git a/sources/platform/proxy/index.md b/sources/platform/proxy/index.md index 4c01e0ceb1..bc060e317b 100644 --- a/sources/platform/proxy/index.md +++ b/sources/platform/proxy/index.md @@ -35,6 +35,11 @@ Each proxy type has distinct advantages, disadvantages, and pricing. Use them to desc="Download and extract data from Google Search Engine Result Pages (SERPs). You can select country and language to get localized results." to="/platform/proxy/google-serp-proxy" /> + ## Quickstart @@ -96,6 +101,7 @@ For more examples connecting to Apify Proxy from the SDKs and other libraries: * [Datacenter proxy](./datacenter_proxy.md#examples) * [Residential proxy](./residential_proxy.md#connecting-to-residential-proxy) * [Google SERP proxy](./google_serp_proxy.md#examples) +* [Unblocker proxy](./unblocker_proxy.md#connect-to-unblocker-proxy) * [Apify SDK JavaScript](/sdk/js/docs/guides/proxy-management) * [Apify SDK Python](/sdk/python/docs/concepts/proxy-management) * [Crawlee](https://crawlee.dev/docs/guides/proxy-management) @@ -190,6 +196,7 @@ The table below describes the available parameters.
- groups-[group name] or auto when using datacenter proxies.
- groups-RESIDENTIAL when using residential proxies.
- groups-GOOGLE_SERP when using Google SERP proxies. +
- groups-UNBLOCKER when using Unblocker proxy. diff --git a/sources/platform/proxy/unblocker_proxy.md b/sources/platform/proxy/unblocker_proxy.md new file mode 100644 index 0000000000..6e3eb42ffb --- /dev/null +++ b/sources/platform/proxy/unblocker_proxy.md @@ -0,0 +1,118 @@ +--- +title: Unblocker proxy +description: Bypass anti-bot and anti-captcha systems automatically when scraping, without building or maintaining your own bypass logic for blocked websites. +sidebar_position: 10.5 +slug: /proxy/unblocker-proxy +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Unblocker proxy is designed for scraping websites protected by anti-bot and anti-captcha systems. Instead of building and maintaining your own detection and bypass logic, you can route requests through Unblocker proxy, which automatically handles many common protection mechanisms. + +This makes it a good choice for accessing websites with advanced bot protection while keeping your scraping code simple. + +**Pricing is based on units.** Each request through Unblocker proxy is currently billed at 10 units. + +## Connect to Unblocker proxy + +Connecting to Unblocker proxy works the same way as [datacenter proxy](./datacenter_proxy.md), with one difference: the `groups` [username parameter](./index.md#username-parameters) should always specify `UNBLOCKER`. + +### How to set a proxy group + +When using [standard libraries and languages](./datacenter_proxy.md), specify the `groups` parameter in the [username](./index.md#username-parameters) as `groups-UNBLOCKER`. + +For example, your **proxy URL** when using the [got-scraping](https://www.npmjs.com/package/got-scraping) JavaScript library will look like this: + +```js +const proxyUrl = 'http://groups-UNBLOCKER:@proxy.apify.com:8000'; +``` + +In the [Apify SDK](/sdk) you set the **groups** in your proxy configuration: + + + + +```js +import { Actor } from 'apify'; + +await Actor.init(); +// ... +const proxyConfiguration = await Actor.createProxyConfiguration({ + groups: ['UNBLOCKER'], +}); +// ... +await Actor.exit(); +``` + + + + +```python +from apify import Actor + +async def main(): + async with Actor: + # ... + proxy_configuration = await Actor.create_proxy_configuration(groups=['UNBLOCKER']) + # ... +``` + + + + +### How to set a proxy country + +Unblocker proxy selects the best available country automatically based on the target website. You don't need to set a country in most cases. + +If you need requests to come from a specific country, specify the `country` [username parameter](./index.md#username-parameters) as `country-COUNTRY-CODE`. For example, to target Japan, set the username to `groups-UNBLOCKER,country-JP`. + +:::tip Let Unblocker proxy decide + +Only set a country when your use case requires it (for example, geo-restricted content). Setting a country limits the pool of available IP addresses and can reduce how effectively Unblocker proxy bypasses anti-bot protection. + +::: + +In the [Apify SDK](/sdk) you set the country in your proxy configuration using two-letter [country codes](https://laendercode.net/en/2-letter-list.html): + + + + +```js +import { Actor } from 'apify'; + +await Actor.init(); +// ... +const proxyConfiguration = await Actor.createProxyConfiguration({ + groups: ['UNBLOCKER'], + countryCode: 'FR', +}); +// ... +await Actor.exit(); +``` + + + + +```python +from apify import Actor + +async def main(): + async with Actor: + # ... + proxy_configuration = await Actor.create_proxy_configuration( + groups=['UNBLOCKER'], + country_code='FR', + ) + # ... +``` + + + + +## Related features + +- [Datacenter proxy](./datacenter_proxy.md) +- [Residential proxy](./residential_proxy.md) +- [Google SERP proxy](./google_serp_proxy.md) +- [Anti-scraping techniques](/academy/anti-scraping/techniques)