[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-apify-proxy-configuration-en":3},{"post":4,"faq":33,"faqLdJson":53,"faqLdJsonScript":78,"alternatePaths":79,"recommendations":81,"contentLocale":20},{"authors":5,"custom_excerpt":13,"excerpt":13,"feature_image":14,"featured":15,"id":16,"meta_description":13,"meta_title":17,"og_description":8,"og_image":8,"og_title":8,"primary_author":18,"primary_tag":19,"published_at":22,"reading_time":23,"slug":24,"status":25,"tags":26,"title":17,"twitter_description":8,"twitter_image":8,"twitter_title":31,"updated_at":22,"visibility":21,"lexical":32},[6],{"bio":7,"facebook":8,"instagram":8,"linkedin":8,"location":9,"name":10,"profile_image":11,"slug":12,"tiktok":8,"twitter":8,"website":8,"youtube":8},"As a Senior Editor at Rola IP, Daniel is a true tech enthusiast. In his spare time, he enjoys tinkering with Python scripts, engaging in open-source communities, and exploring core network mechanisms.",null,"Daniel 现任 Rola IP 高级编辑，是一位名副其实的技术爱好者。工作之余，他热衷于钻研 Python 脚本、活跃于开源社区，并不断探索核心网络底层的运行机制。","Daniel Zhao","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F08\u002FPixPin_2026-08-13_10-47-55.png","daniel","Learn Apify proxy configuration with custom Rola IP proxies, JavaScript and Python examples, session controls, exit IP checks, and troubleshooting steps.","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FApify-Proxy-Configuration-for-Custom-Proxies-and-Sessions.webp",false,"6aa8f2e74956c90001befa85","Apify Proxy Configuration for Custom Proxies and Sessions",{"bio":7,"facebook":8,"instagram":8,"linkedin":8,"location":9,"name":10,"profile_image":11,"slug":12,"tiktok":8,"twitter":8,"website":8,"youtube":8},{"description":8,"feature_image":8,"name":20,"slug":20,"visibility":21},"en","public","2026-09-15T07:55:20.000Z",13,"apify-proxy-configuration","published",[27,28],{"description":8,"feature_image":8,"name":20,"slug":20,"visibility":21},{"description":8,"feature_image":8,"name":29,"slug":30,"visibility":21},"教程","guides","apify proxy configuration","{\"root\":{\"children\":[{\"type\":\"markdown\",\"version\":1,\"markdown\":\"## TL;DR\\n\\nApify supports managed Apify Proxy access and custom proxy URLs from providers such as Rola IP, but the right configuration depends on the required location, session behavior, traffic model, and target authorization. Connect the proxy configuration to the crawler or HTTP client, and verify the observed exit IP rather than assuming that a saved URL proves the setup works. Compare proxy options with the same small pilot: location accuracy, session continuity, valid-result cost, and failure reasons. A stable gateway URL does not guarantee a fixed exit IP; align crawler cookies and sessions with the provider's rotation settings before scaling.\\n\\n## Choose between Apify Proxy and custom proxies\\n\\nApify runs Actors: programs that collect or process data. Apify Proxy supplies network access through managed proxy pools. Those are separate capabilities. An Actor can run on Apify while sending its website requests through a third-party proxy.\\n\\nWith custom proxies, the request path is Actor → provider gateway → destination. Apify Proxy is not an extra hop in that path. The Actor's compute and any applicable Actor charges still apply; the external provider bills its own proxy service. See [Apify's custom proxy documentation](https:\u002F\u002Fdocs.apify.com\u002Fproxy\u002Fusing-your-own-proxies).\\n\\n![apify-proxy-routes](https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002F01-apify-proxy-routes.webp)\\n\\n### Match the IP type to the workload\\n\\n| IP type | Useful starting point | Main tradeoff |\\n| --- | --- | --- |\\n| Datacenter | Public catalogs and endpoints that accept hosting-network IPs | Often economical; destination acceptance still needs testing |\\n| Rotating residential | Regional price checks, market research, and distributed collection | Traffic consumption and temporary peer availability matter |\\n| Static residential or ISP | Workflows that need a stable network identity | A fixed address cannot spread load across a large rotating pool |\\n| Mobile | Tests that specifically require a mobile-network exit | Usually unnecessary if a residential or datacenter route already works |\\n\\nStart by testing the least expensive suitable network against a representative sample. A residential address does not repair a missing login, incorrect request, broken selector, or JavaScript rendering requirement. Likewise, a mobile IP is a network characteristic, not a guarantee that an automated browser looks like a phone.\\n\\n### Where Rola IP fits\\n\\n[Rola IP](https:\u002F\u002Frola-ip.co\u002F) supplies residential, datacenter, and ISP proxy resources. It lists 80M+ residential IPs across 190+ countries and regions, along with a 99.9% uptime target and 24\u002F7 technical support. These describe the provider's network offering; they do not predict a particular website's acceptance rate.\\n\\nFor recurring regional sampling, its [residential proxies](https:\u002F\u002Frola-ip.co\u002Fresidential-ip\u002F) offer a practical way to separate IP sourcing from the Actor implementation. For a longer-lived authorized session, [static residential proxies](https:\u002F\u002Frola-ip.co\u002Fstatic-residential-ip\u002F) provide dedicated fixed IPs with unlimited traffic during the purchased validity period. Unlimited traffic does not mean unlimited bandwidth, request rate, or Actor compute.\\n\\nChoose the product around the job. A daily regional price sample benefits from geographic coverage; a workflow that must retain the same exit address benefits from a dedicated static allocation. Avoid paying for an IP characteristic your collection does not require.\\n\\n## Prerequisites and verification scope\\n\\nPrepare an Apify account for Console runs, an Actor that supports proxy settings, and a working proxy URL. For local custom-proxy examples, have Node.js 24 or Python 3.12 available. Select one language path; you do not need both.\\n\\nThe examples use an HTTP proxy gateway and Apify's browser-info endpoint to inspect the observed client IP. They do not require JavaScript rendering, website login, or cookies. Browser crawlers are discussed separately below.\\n\\nLocal validation used Windows, Node.js 24.19.0, Apify JavaScript 3.7.2, Crawlee 3.18.1, Python 3.12.14, Apify Python 4.0.2, and HTTPX 0.28.1. JavaScript and Python syntax, session URL reuse, URL rotation, Actor input mapping, and dynamic callbacks passed checks. Authenticated provider connections and signed-in Console runs remain account-dependent acceptance tests. Replace all example credentials and gateway addresses before making a network request.\\n\\nKeep proxy passwords in a secret environment variable or your deployment's secret facility. Treat saved Actor input containing proxy URLs as sensitive, and check who can read it. Do not publish complete URLs in logs, datasets, screenshots, or repositories.\\n\\n## Configure custom proxies in Apify Console\\n\\n### Step 1 — Check the Actor's supported input\\n\\nOpen the Actor and select its **Input** tab. Look for its proxy settings, commonly grouped under **Proxy and browser configuration**. The exact section title depends on the Actor.\\n\\nThis control is available only when the Actor exposes it. An absent proxy field is not a hidden account setting. Check the Actor's documentation, use an Actor with custom-proxy support, or modify an Actor you own. Adding an arbitrary JSON field cannot force someone else's implementation to use it.\\n\\n### Step 2 — Export a provider-generated proxy URL\\n\\nIn your Rola account, select the purchased product and required location, authentication mode, and rotation behavior. Copy the generated connection details. Do not guess the gateway hostname, port, or username suffix from another provider's tutorial.\\n\\nOpen [Rola IP documentation](https:\u002F\u002Fdoc.rola-ip.co\u002F) and use its Parameters or Quick Start entry when checking the account's generated configuration. Product-specific gateway and session settings must come from your current account or provider documentation.\\n\\nThe generic authenticated format is:\\n\\n```text\\nhttp:\u002F\u002FUSERNAME:PASSWORD@GATEWAY_HOST:PORT\\n```\\n\\nFor IP-allowlist authentication, the provider may supply a URL without credentials. The address to authorize is the source address that reaches the proxy gateway. Your laptop's public IP does not automatically authorize an Actor running in a cloud container. Username\u002Fpassword authentication is often easier when runtime egress is not fixed; if the product requires combined authentication, both checks must pass.\\n\\n![proxy-url-format](https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002F02-proxy-url-format.webp)\\n\\n### Step 3 — Select custom proxies and save\\n\\nSelect **Custom proxies** in the Actor's proxy control, paste the full URL, and add additional URLs as separate entries. Save the input and start a small run with one or two targets.\\n\\nFor an Actor whose proxy field is named `proxyConfiguration`, the relevant JSON fragment is:\\n\\n```json\\n{\\n  \\\"proxyConfiguration\\\": {\\n    \\\"useApifyProxy\\\": false,\\n    \\\"proxyUrls\\\": [\\\"http:\u002F\u002FUSER:PASS@proxy.example:8000\\\"]\\n  }\\n}\\n```\\n\\n`proxy.example` is a documentation placeholder. Keep the Actor's other required input fields and use its actual proxy field name. Inspect the run log and output to confirm that requests succeeded; a saved configuration only proves that input was accepted.\\n\\n## Use custom proxies with the JavaScript SDK\\n\\n### Install a small HTTP crawler\\n\\nIn a new project directory, run the following commands in Windows PowerShell or a macOS\u002FLinux shell with Node.js and npm installed:\\n\\n```sh\\nnpm init -y\\nnpm install apify@3.7 crawlee@3.18\\n```\\n\\nSave the code below as `main.mjs`. Set `PROXY_URL` using your environment or secret manager before running `node main.mjs`. For a local Windows PowerShell test, the variable assignment is `$env:PROXY_URL = 'http:\u002F\u002FUSER:PASS@proxy.example:8000'`. In a macOS\u002FLinux shell, use `export PROXY_URL='http:\u002F\u002FUSER:PASS@proxy.example:8000'`. Replace the placeholder URL with your actual connection details; keep real credentials out of shared shell history and scripts.\\n\\n```javascript\\nimport { Actor } from 'apify';\\nimport { CheerioCrawler } from 'crawlee';\\n\\nawait Actor.main(async () => {\\n  const proxyUrl = process.env.PROXY_URL;\\n  if (!proxyUrl) throw new Error('Set PROXY_URL first');\\n  const gateway = new URL(proxyUrl);\\n  if (gateway.protocol !== 'http:') {\\n    throw new Error('This example requires an HTTP gateway');\\n  }\\n\\n  const proxyConfiguration = await Actor.createProxyConfiguration({\\n    proxyUrls: [proxyUrl],\\n  });\\n  if (!proxyConfiguration) throw new Error('Proxy is disabled');\\n\\n  const crawler = new CheerioCrawler({\\n    proxyConfiguration,\\n    useSessionPool: true,\\n    persistCookiesPerSession: true,\\n    maxConcurrency: 1,\\n    maxRequestsPerCrawl: 1,\\n    maxRequestsPerMinute: 10,\\n    maxRequestRetries: 1,\\n    maxSessionRotations: 1,\\n    async requestHandler({ json, proxyInfo }) {\\n      if (!json?.clientIp) throw new Error('Missing observed IP');\\n      await Actor.pushData({\\n        exitIp: json.clientIp,\\n        gatewayHost: proxyInfo?.hostname,\\n        sessionId: proxyInfo?.sessionId,\\n      });\\n    },\\n  });\\n\\n  await crawler.run(['https:\u002F\u002Fapi.apify.com\u002Fv2\u002Fbrowser-info']);\\n});\\n```\\n\\nThe dataset should contain an `exitIp`, a gateway hostname, and a session identifier. The exit IP is the address observed by the diagnostic endpoint; the gateway hostname is where the crawler connected. They are different measurements. The example deliberately avoids storing the proxy URL or password.\\n\\nPassing `proxyConfiguration` into the crawler is the step that routes its requests. Creating the object alone does not configure every library used inside an Actor. The [JavaScript proxy management guide](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fjs\u002Fdocs\u002Fconcepts\u002Fproxy-management) explains this integration.\\n\\n### Use a browser only when the page needs one\\n\\nFor a JavaScript-rendered destination, pass the configuration to `PlaywrightCrawler` or `PuppeteerCrawler`, then use that crawler's page-based handler. Install the relevant browser and use a compatible Actor image. Changing only the class name in the JSON diagnostic example is insufficient because its handler expects parsed JSON.\\n\\nStart with one browser session and verify both content and exit IP. Browser subresources can add substantial proxy traffic. Disable unnecessary image or video downloads only after checking that the page still renders and your required data remains available. See the [Crawlee browser-rendering guide](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fdocs\u002Fguides\u002Fjavascript-rendering).\\n\\n## Configure Apify Proxy groups and countries\\n\\nTo use Apify's managed residential pool in the JavaScript example, replace the environment-variable validation and custom configuration block with:\\n\\n```javascript\\nconst proxyConfiguration = await Actor.createProxyConfiguration({\\n  groups: ['RESIDENTIAL'],\\n  countryCode: 'US',\\n});\\nif (!proxyConfiguration) throw new Error('Proxy is disabled');\\n```\\n\\nFor the default managed configuration, call `Actor.createProxyConfiguration()` without custom URLs. Check your Console proxy access before running; do not invent a universal `DATACENTER` group name. Specific datacenter group identifiers depend on the resources available to the account.\\n\\nLocal managed-proxy runs need Apify authentication or the appropriate proxy credentials. An Apify API token and an Apify Proxy password serve different purposes. When connecting directly to its gateway, obtain the connection values from Console rather than substituting your account login password. See the [Apify Proxy overview](https:\u002F\u002Fdocs.apify.com\u002Fproxy).\\n\\n`groups` and `countryCode` configure Apify Proxy. They do not translate into Rola settings when you supply custom URLs. For a third-party gateway, geographic targeting belongs in the provider-generated connection configuration. Confirm the resulting location at the destination as well as with an IP lookup service; geolocation databases may disagree.\\n\\n### Keep Console fields separate from SDK options\\n\\n| Purpose | Actor proxy-editor input | JavaScript options | Python options |\\n| --- | --- | --- | --- |\\n| Custom URLs | `proxyUrls` | `proxyUrls` | `proxy_urls` |\\n| Managed groups | `apifyProxyGroups` | `groups` | `groups` |\\n| Managed country | `apifyProxyCountry` | `countryCode` | `country_code` |\\n| Input mode switch | `useApifyProxy` | Accepted by Actor helper | Passed within `actor_proxy_input` |\\n\\nThe table distinguishes the proxy editor's input representation from direct configuration options. Use the language's Actor helper to interpret editor input. The underlying configuration class and helper do not necessarily accept identical arguments. References: [JavaScript Actor helper](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fjs\u002Freference\u002Fclass\u002FActor) and [Python Actor helper](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fpython\u002Freference\u002Fclass\u002FActor).\\n\\n## How to use proxies with Apify in Python\\n\\n### Generate a proxy URL and pass it to HTTPX\\n\\nIn an isolated Python 3.12 virtual environment, install:\\n\\n```sh\\npython -m pip install apify==4.0.2 httpx==0.28.1\\n```\\n\\nSave the following as `main.py`, provide `PROXY_URL` through your environment, and run `python main.py`:\\n\\n```python\\nimport asyncio\\nimport os\\nfrom urllib.parse import urlsplit\\n\\nimport httpx\\nfrom apify import Actor\\n\\n\\nasync def main() -> None:\\n    async with Actor:\\n        supplied_url = os.environ.get(\\\"PROXY_URL\\\")\\n        if not supplied_url:\\n            raise RuntimeError(\\\"Set PROXY_URL first\\\")\\n        if urlsplit(supplied_url).scheme != \\\"http\\\":\\n            raise ValueError(\\\"This example requires an HTTP gateway\\\")\\n\\n        config = await Actor.create_proxy_configuration(\\n            proxy_urls=[supplied_url]\\n        )\\n        if config is None:\\n            raise RuntimeError(\\\"Proxy is disabled\\\")\\n        proxy_url = await config.new_url(session_id=\\\"check_01\\\")\\n\\n        async with httpx.AsyncClient(\\n            proxy=proxy_url,\\n            timeout=30.0,\\n            follow_redirects=True,\\n            trust_env=False,\\n        ) as client:\\n            response = await client.get(\\n                \\\"https:\u002F\u002Fapi.apify.com\u002Fv2\u002Fbrowser-info\\\"\\n            )\\n            response.raise_for_status()\\n            exit_ip = response.json()[\\\"clientIp\\\"]\\n            await Actor.push_data({\\\"exitIp\\\": exit_ip})\\n\\n\\nif __name__ == \\\"__main__\\\":\\n    asyncio.run(main())\\n```\\n\\nHere, `new_url()` chooses the connection URL and HTTPX makes the request. Use the singular `proxy=` argument for this HTTPX version. An HTTP gateway can carry an HTTPS destination through a tunnel; the destination's `https:\u002F\u002F` scheme does not require changing the gateway URL to `https:\u002F\u002F`. References: [Apify Python proxy management](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fpython\u002Fdocs\u002Fconcepts\u002Fproxy-management) and [HTTPX proxy configuration](https:\u002F\u002Fwww.python-httpx.org\u002Fadvanced\u002Fproxies\u002F).\\n\\nThis script has no automatic retry loop. That makes it easier to diagnose one failed connection without silently consuming additional traffic. In a collection job, add bounded retries for transient failures, but do not repeatedly retry incorrect credentials.\\n\\n## Expose proxy settings in your own Actor input\\n\\nAdd a proxy-editor field to an Actor you control. This minimal `input_schema.json` defines the field; merge it with any other required properties:\\n\\n```json\\n{\\n  \\\"title\\\": \\\"Proxy diagnostic input\\\",\\n  \\\"type\\\": \\\"object\\\",\\n  \\\"schemaVersion\\\": 1,\\n  \\\"properties\\\": {\\n    \\\"proxyConfiguration\\\": {\\n      \\\"title\\\": \\\"Proxy configuration\\\",\\n      \\\"description\\\": \\\"Choose managed or custom proxy access.\\\",\\n      \\\"type\\\": \\\"object\\\",\\n      \\\"editor\\\": \\\"proxy\\\",\\n      \\\"prefill\\\": { \\\"useApifyProxy\\\": true }\\n    }\\n  },\\n  \\\"required\\\": [\\\"proxyConfiguration\\\"]\\n}\\n```\\n\\nSet the existing `.actor\u002Factor.json` file's `input` property to the schema path, resolved relative to that file. For a schema placed beside it, use `\\\"input\\\": \\\".\u002Finput_schema.json\\\"`. Rebuild the Actor. The [input schema specification](https:\u002F\u002Fdocs.apify.com\u002Factors\u002Fdevelopment\u002Factor-definition\u002Finput-schema\u002Fspecification\u002Fv1) documents how the control is generated.\\n\\nInside the JavaScript Actor lifecycle, replace the hardcoded configuration block with:\\n\\n```javascript\\nconst input = await Actor.getInput();\\nif (!input?.proxyConfiguration) {\\n  throw new Error('Select proxy settings in Actor input');\\n}\\nconst proxyConfiguration = await Actor.createProxyConfiguration(\\n  input.proxyConfiguration,\\n);\\nif (!proxyConfiguration) throw new Error('Proxy is disabled');\\n```\\n\\nThen pass this object to the crawler as before. In Python, supply the corresponding input dictionary through `Actor.create_proxy_configuration(actor_proxy_input=...)`. Keep the input key and the code's lookup key identical. A rendered Console control is only useful if the implementation reads its value.\\n\\n## Make rotation and sticky sessions work together\\n\\n### Distinguish the three session layers\\n\\nA crawler session holds cookies and request state. A proxy configuration maps that session to a connection URL. The provider chooses the exit IP behind that URL. You need all three layers to cooperate when a workflow requires continuity.\\n\\nWith a list of custom URLs, a session can retain its assigned URL. But if that URL points to a gateway that rotates on every request, the public IP can still change. Conversely, repeatedly selecting the same static endpoint can keep the same exit IP even when crawler sessions change. See [Crawlee's proxy configuration reference](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fapi\u002Fcore\u002Fclass\u002FProxyConfiguration).\\n\\n![session-layers](https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002F03-session-layers.webp)\\n\\nFor Apify residential sessions, the documentation currently describes an approximately 30-minute IP association, with reassignment if the peer becomes unavailable or the session expires. Datacenter sessions have a 26-hour inactivity window that resets with use, subject to server failure or group replacement. Do not apply either lifetime to Rola products. Sources: [residential session persistence](https:\u002F\u002Fdocs.apify.com\u002Fproxy\u002Fresidential-proxy) and [datacenter session persistence](https:\u002F\u002Fdocs.apify.com\u002Fproxy\u002Fdatacenter-proxy).\\n\\n### Test continuity before using cookies\\n\\nUse one session identifier to request the diagnostic endpoint three times. Compare the observed IPs, then repeat with a different session identifier. For a sticky product, the first three should remain consistent while the provider session is valid. A new session may receive the same IP, especially in a small pool, so a different identifier is not proof of a different exit address.\\n\\nEnable `useSessionPool` and `persistCookiesPerSession` for Crawlee workflows that need cookie continuity. However, a pool does not automatically assign all steps of one business workflow to a particular session. Design account or workflow affinity explicitly, and avoid assuming that sequential queued URLs always reuse the same session. See [Crawlee session management](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fdocs\u002Fguides\u002Fsession-management).\\n\\n### Generate custom URLs dynamically\\n\\nUse `newUrlFunction` in JavaScript or `new_url_function` in Python when each crawler session needs its own provider-issued sticky URL. The callback should return a complete URL and retain a consistent assignment for each session. Do not combine a fixed URL list and a custom callback in the same configuration.\\n\\nThis JavaScript pattern belongs inside the Actor lifecycle. Set `PROXY_URLS_JSON` to a JSON array of distinct provider-generated sticky URLs:\\n\\n```javascript\\nconst urls = JSON.parse(process.env.PROXY_URLS_JSON || '[]');\\nif (!Array.isArray(urls) || !urls.length ||\\n    urls.some((url) => typeof url !== 'string')) {\\n  throw new Error('Supply a nonempty array of proxy URLs');\\n}\\nurls.forEach((url) => new URL(url));\\nconst assignments = new Map();\\nlet cursor = 0;\\n\\nconst proxyConfiguration = await Actor.createProxyConfiguration({\\n  newUrlFunction: async (sessionId) => {\\n    if (!sessionId) return urls[cursor++ % urls.length];\\n    if (!assignments.has(sessionId)) {\\n      assignments.set(sessionId, urls[cursor++ % urls.length]);\\n    }\\n    return assignments.get(sessionId);\\n  },\\n});\\n```\\n\\nThis is an in-memory assignment demonstration, not a production allocator. It does not persist across Actor restarts, remove old map entries, or guarantee unique endpoints after exhausting the list. A production implementation needs bounded storage, provider-session expiry handling, and the required degree of workflow isolation.\\n\\nThe Python equivalent uses an async callback and a dictionary with the same assignment policy; pass the callback to `new_url_function`. Both interfaces accept a session identifier. Use the provider's documented token format if generating credentials programmatically, rather than inventing a `session-` suffix. References: [JavaScript configuration options](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fjs\u002Freference\u002Finterface\u002FProxyConfigurationOptions) and [Python configuration reference](https:\u002F\u002Fdocs.apify.com\u002Fsdk\u002Fpython\u002Freference\u002Fclass\u002FProxyConfiguration).\\n\\n## Verify the connection and diagnose failures\\n\\n### Separate gateway access from target access\\n\\nFirst verify the proxy against the diagnostic endpoint. Then request a representative destination page with the same configuration. If the first works and the second fails, investigate destination-specific restrictions, rendering, headers, or session state before replacing gateway credentials.\\n\\nInspect status, content type, page title, and a required data field. A `200` response containing a challenge page or empty application shell is not a successful extraction. Log the failure category and a redacted endpoint identifier; avoid logging complete request objects that may include authentication data.\\n\\n![proxy-troubleshooting](https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002F04-proxy-troubleshooting.webp)\\n\\n| Symptom | Check first | Next action |\\n| --- | --- | --- |\\n| 407 authentication required | Credentials, URL encoding, allowlist and product status | Correct access settings; stop blind retries |\\n| DNS error or connection timeout | Host, port, scheme and runtime network access | Test from the same environment as the Actor |\\n| 403 response | Response body, destination permissions and session state | Identify who returned it; correct the request or access conditions |\\n| 429 response | Request frequency, shared limits and Retry-After | Reduce traffic and schedule a bounded delayed retry |\\n| 502 or 503 | Whether the gateway or target generated the response | Compare diagnostic and target requests; retry transient failures conservatively |\\n| Unexpected IP or country | Client wiring, provider-generated settings and geolocation | Verify the observed exit; do not infer it from the gateway host |\\n| Session IP changes | Sticky settings, lifetime, peer availability and callback mapping | Align session duration or use a fixed allocation |\\n\\nThe status-code distinctions follow [HTTP semantics](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc9110.html) and the [429 definition](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc6585.html#section-4). A gateway can generate an error that resembles a target failure, so inspect the response rather than classifying by code alone.\\n\\n### Encode special characters correctly\\n\\nEncode the username and password separately when assembling a URL. A password such as `p@ss:word` becomes `p%40ss%3Aword` in the credentials component. Do not encode the entire URL or double-encode a provider URL that is already escaped.\\n\\nIn JavaScript, use a URL object's `username` and `password` setters with raw credentials. In Python, use `urllib.parse.quote(value, safe=\\\"\\\")` for each credential component. A misplaced `@` can change how the hostname is parsed and produce a misleading connection failure.\\n\\n## Control concurrency and total collection cost\\n\\nStart with low concurrency and a short representative sample. Record successful records, failed attempts, observed IPs, median and tail latency, and provider-reported traffic. Increase concurrency gradually while comparing useful output per minute, not just attempted requests.\\n\\nCrawler concurrency, request rate, pool size, and provider connection limits measure different things. A large session pool does not create extra physical exit IPs. A gateway that supports thousands of connections also cannot guarantee that a destination accepts thousands of simultaneous requests.\\n\\nKeep retries bounded at both levels. In Crawlee, session-rotation retries have a separate limit from `maxRequestRetries`; a small request-retry value alone is not a complete attempt budget. The starter example sets both. See [Crawlee crawler options](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fapi\u002Fcheerio-crawler\u002Finterface\u002FCheerioCrawlerOptions).\\n\\nFor provider comparison, calculate **total job cost divided by valid records delivered**. Include proxy charges, Actor compute, any Actor usage fee, and traffic spent on failed requests. For example, a hypothetical $12 job producing 8,000 valid records costs $1.50 per 1,000 records. A $10 job producing only 5,000 costs $2.00 per 1,000. These are illustrative calculations, not provider prices.\\n\\nUse separate small runs to compare datacenter and residential access on the same target sample. If adding provider failover, preserve the workflow's session requirements and define explicit switching conditions. Do not change countries or exit identities midway through a stateful transaction simply because one request was slow.\"},{\"children\":[],\"direction\":null,\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1}],\"direction\":null,\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}",{"items":34,"inline":15},[35,38,41,44,47,50],{"title":36,"desc":37},"Can I mix Apify Proxy with my own custom proxies?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">Use one mode per basic configuration. An Actor can maintain separate configurations or crawler instances for different jobs, but adding managed group settings to a custom URL list does not combine the two networks into one pool. Implement routing or failover explicitly when required. Before switching providers during a workflow, check whether the new route preserves the required country, exit identity, and cookie continuity.\u003C\u002Fspan>\u003C\u002Fp>",{"title":39,"desc":40},"How many custom proxies should I use?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">There is no universal count. A single rotating gateway can provide many exits, while ten URLs may still reach the same small pool. Size around the provider's allocation, request budget per IP, session isolation needs, and measured target acceptance. Start with a small representative batch, record valid results and failures, then increase capacity gradually. More proxy URLs will not fix incorrect requests or missing authorization.\u003C\u002Fspan>\u003C\u002Fp>",{"title":42,"desc":43},"Are custom Apify proxies cheaper?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">They can be, but compare complete jobs. External proxy charges do not remove compute or paid Actor fees. Browser traffic and repeated failures can outweigh a lower proxy unit price. Divide the total job cost by valid records delivered, using the same target sample and quality criteria for each provider. A static plan can be attractive when stable identity and predictable traffic cost matter.\u003C\u002Fspan>\u003C\u002Fp>",{"title":45,"desc":46},"Can I use SOCKS5 proxies with Apify?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">Compatibility depends on the Actor, client, browser, and proxy authentication method. HTTPX supports SOCKS through an optional dependency, but that does not establish support for every browser Actor. The examples here deliberately use HTTP gateways. If your Rola static product offers HTTP and SOCKS5, select the protocol supported by your chosen client. Test authentication and the observed exit IP before running a collection job. See \u003C\u002Fspan>\u003Ca href=\"https:\u002F\u002Fwww.python-httpx.org\u002Fadvanced\u002Fproxies\u002F#socks\">\u003Cspan style=\"white-space: pre-wrap;\">HTTPX SOCKS support\u003C\u002Fspan>\u003C\u002Fa>\u003Cspan style=\"white-space: pre-wrap;\">.\u003C\u002Fspan>\u003C\u002Fp>",{"title":48,"desc":49},"What happens when a custom proxy goes down?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">A crawler may retry or retire a session, but a plain proxy list is not a permanently maintained health registry. A dead URL can be assigned again. Test endpoints, temporarily remove unhealthy entries, and verify recovery before restoring them. Direct HTTPX requests need their own retry policy. Keep retries bounded and distinguish gateway outages from target restrictions, since switching proxies will not resolve every failure.\u003C\u002Fspan>\u003C\u002Fp>",{"title":51,"desc":52},"Why is the proxy configuration missing in Console?","\u003Cp dir=\"ltr\">\u003Cspan style=\"white-space: pre-wrap;\">The Actor may not expose a proxy editor, or it may manage networking internally. Consult its input documentation before changing settings. For your own Actor, define a proxy field and wire its value into the crawler or HTTP client. For an Actor maintained by someone else, use its supported input or choose another Actor. Adding an arbitrary JSON field does not force the implementation to use it.\u003C\u002Fspan>\u003C\u002Fp>",{"@context":54,"@type":55,"@id":56,"mainEntity":57},"https:\u002F\u002Fschema.org","FAQPage","https:\u002F\u002Frola-ip.co\u002Fblog\u002Fapify-proxy-configuration\u002F#faq",[58,63,66,69,72,75],{"@type":59,"name":36,"acceptedAnswer":60},"Question",{"@type":61,"text":62},"Answer","Use one mode per basic configuration. An Actor can maintain separate configurations or crawler instances for different jobs, but adding managed group settings to a custom URL list does not combine the two networks into one pool. Implement routing or failover explicitly when required. Before switching providers during a workflow, check whether the new route preserves the required country, exit identity, and cookie continuity.",{"@type":59,"name":39,"acceptedAnswer":64},{"@type":61,"text":65},"There is no universal count. A single rotating gateway can provide many exits, while ten URLs may still reach the same small pool. Size around the provider's allocation, request budget per IP, session isolation needs, and measured target acceptance. Start with a small representative batch, record valid results and failures, then increase capacity gradually. More proxy URLs will not fix incorrect requests or missing authorization.",{"@type":59,"name":42,"acceptedAnswer":67},{"@type":61,"text":68},"They can be, but compare complete jobs. External proxy charges do not remove compute or paid Actor fees. Browser traffic and repeated failures can outweigh a lower proxy unit price. Divide the total job cost by valid records delivered, using the same target sample and quality criteria for each provider. A static plan can be attractive when stable identity and predictable traffic cost matter.",{"@type":59,"name":45,"acceptedAnswer":70},{"@type":61,"text":71},"Compatibility depends on the Actor, client, browser, and proxy authentication method. HTTPX supports SOCKS through an optional dependency, but that does not establish support for every browser Actor. The examples here deliberately use HTTP gateways. If your Rola static product offers HTTP and SOCKS5, select the protocol supported by your chosen client. Test authentication and the observed exit IP before running a collection job. See HTTPX SOCKS support.",{"@type":59,"name":48,"acceptedAnswer":73},{"@type":61,"text":74},"A crawler may retry or retire a session, but a plain proxy list is not a permanently maintained health registry. A dead URL can be assigned again. Test endpoints, temporarily remove unhealthy entries, and verify recovery before restoring them. Direct HTTPX requests need their own retry policy. Keep retries bounded and distinguish gateway outages from target restrictions, since switching proxies will not resolve every failure.",{"@type":59,"name":51,"acceptedAnswer":76},{"@type":61,"text":77},"The Actor may not expose a proxy editor, or it may manage networking internally. Consult its input documentation before changing settings. For your own Actor, define a proxy field and wire its value into the crawler or HTTP client. For an Actor maintained by someone else, use its supported input or choose another Actor. Adding an arbitrary JSON field does not force the implementation to use it.","{\"@context\":\"https:\u002F\u002Fschema.org\",\"@type\":\"FAQPage\",\"@id\":\"https:\u002F\u002Frola-ip.co\u002Fblog\u002Fapify-proxy-configuration\u002F#faq\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Can I mix Apify Proxy with my own custom proxies?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Use one mode per basic configuration. An Actor can maintain separate configurations or crawler instances for different jobs, but adding managed group settings to a custom URL list does not combine the two networks into one pool. Implement routing or failover explicitly when required. Before switching providers during a workflow, check whether the new route preserves the required country, exit identity, and cookie continuity.\"}},{\"@type\":\"Question\",\"name\":\"How many custom proxies should I use?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"There is no universal count. A single rotating gateway can provide many exits, while ten URLs may still reach the same small pool. Size around the provider's allocation, request budget per IP, session isolation needs, and measured target acceptance. Start with a small representative batch, record valid results and failures, then increase capacity gradually. More proxy URLs will not fix incorrect requests or missing authorization.\"}},{\"@type\":\"Question\",\"name\":\"Are custom Apify proxies cheaper?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"They can be, but compare complete jobs. External proxy charges do not remove compute or paid Actor fees. Browser traffic and repeated failures can outweigh a lower proxy unit price. Divide the total job cost by valid records delivered, using the same target sample and quality criteria for each provider. A static plan can be attractive when stable identity and predictable traffic cost matter.\"}},{\"@type\":\"Question\",\"name\":\"Can I use SOCKS5 proxies with Apify?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Compatibility depends on the Actor, client, browser, and proxy authentication method. HTTPX supports SOCKS through an optional dependency, but that does not establish support for every browser Actor. The examples here deliberately use HTTP gateways. If your Rola static product offers HTTP and SOCKS5, select the protocol supported by your chosen client. Test authentication and the observed exit IP before running a collection job. See HTTPX SOCKS support.\"}},{\"@type\":\"Question\",\"name\":\"What happens when a custom proxy goes down?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A crawler may retry or retire a session, but a plain proxy list is not a permanently maintained health registry. A dead URL can be assigned again. Test endpoints, temporarily remove unhealthy entries, and verify recovery before restoring them. Direct HTTPX requests need their own retry policy. Keep retries bounded and distinguish gateway outages from target restrictions, since switching proxies will not resolve every failure.\"}},{\"@type\":\"Question\",\"name\":\"Why is the proxy configuration missing in Console?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The Actor may not expose a proxy editor, or it may manage networking internally. Consult its input documentation before changing settings. For your own Actor, define a proxy field and wire its value into the crawler or HTTP client. For an Actor maintained by someone else, use its supported input or choose another Actor. Adding an arbitrary JSON field does not force the implementation to use it.\"}}]}",[80],"\u002Fblog\u002Fapify-proxy-configuration\u002F",{"prev":82,"next":95,"related":106,"popular":140,"latest":206},{"id":83,"title":84,"slug":85,"feature_image":86,"published_at":87,"twitter_title":88,"primary_tag":89,"tags":90},"6aa8fc2a4956c90001befab9","Twitter IP Ban Signs, Causes, and Safe Recovery Guide","twitter-ip-ban","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FTwitter-IP-Ban-Signs--Causes--and-Safe-Recovery-Guide.webp","2026-09-15T08:08:08.000Z","twitter ip ban",{"name":20,"slug":20},[91,92],{"name":20,"slug":20,"visibility":21},{"name":93,"slug":94,"visibility":21},"排障指南","troubleshooting",{"id":96,"title":97,"slug":98,"feature_image":99,"published_at":100,"twitter_title":101,"primary_tag":102,"tags":103},"6aa8ee374956c90001befa43","Cloudflare Error 522: Causes, Diagnosis, and Fixes","cloudflare-error-522","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FCloudflare-Error-522-Causes--Diagnosis--and-Fixes.webp","2026-09-15T07:09:52.000Z","what does error code 522 mean",{"name":20,"slug":20},[104,105],{"name":20,"slug":20,"visibility":21},{"name":93,"slug":94,"visibility":21},[107,118,129],{"id":108,"title":109,"slug":110,"feature_image":111,"published_at":112,"twitter_title":113,"primary_tag":114,"tags":115},"6b0d3e4b92ab700001dc0a73","Scrape Indeed Jobs with Python: Extract Job Fields and Export to CSV","scrape-indeed-jobs","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FScrape-Indeed-Jobs.webp","2026-11-30T09:37:05.000Z","indeed job scraper",{"name":20,"slug":20},[116,117],{"name":20,"slug":20,"visibility":21},{"name":29,"slug":30,"visibility":21},{"id":119,"title":120,"slug":121,"feature_image":122,"published_at":123,"twitter_title":124,"primary_tag":125,"tags":126},"6b0d2bcb92ab700001dc0a12","Node.js HTTP Proxy Tutorial: Send HTTPS Requests with Rola IP and Verify the Exit IP","node-js-http-proxy","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FNode.js-HTTP-Proxy-Tutorial_-Send-HTTPS-Requests-with-Rola-IP-and-Verify-the-Exit-IP.webp","2026-11-30T07:58:57.000Z","node js http proxy",{"name":20,"slug":20},[127,128],{"name":20,"slug":20,"visibility":21},{"name":29,"slug":30,"visibility":21},{"id":130,"title":131,"slug":132,"feature_image":133,"published_at":134,"twitter_title":135,"primary_tag":136,"tags":137},"6b09485d92ab700001dc0953","How to Set Up Chrome DevTools MCP for Multi-Region Geo-Testing with Residential Proxies","chrome-devtools-mcp-proxy-setup","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002Fchrome-devtools-mcp-proxy-setup.webp","2026-11-27T09:22:44.000Z","chrome-devtools-mcp proxy setup",{"name":20,"slug":20},[138,139],{"name":20,"slug":20,"visibility":21},{"name":29,"slug":30,"visibility":21},[141,156,168,180,192],{"id":142,"title":143,"slug":144,"feature_image":145,"published_at":146,"twitter_title":147,"primary_tag":148,"tags":149},"6aa1292f4956c90001bef44e","ProxySite.com Review (2026): Is It Safe? 5 Best Alternatives","proxysite-review-alternatives","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FProxySite-Review-and--Alternatives-article-cover-image.webp","2026-09-09T10:16:50.000Z","proxysite",{"name":20,"slug":20},[150,151,154],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21},"对比选型","comparisons",{"name":155,"slug":155,"visibility":21},"hot",{"id":157,"title":158,"slug":159,"feature_image":160,"published_at":161,"twitter_title":162,"primary_tag":163,"tags":164},"6a978f9a4956c90001bee8bb","BlockAway Alternatives: 6 Best Options (2026)","blockaway-alternatives","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FBlockAway-Alternatives-article-cover-image.webp","2026-09-02T03:14:08.000Z","blockaway alternative",{"name":20,"slug":20},[165,166,167],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21},{"name":155,"slug":155,"visibility":21},{"id":169,"title":170,"slug":171,"feature_image":172,"published_at":173,"twitter_title":174,"primary_tag":175,"tags":176},"6a912ce84956c90001bee35d","HTTPX vs Requests vs aiohttp: Features, Performance, and Python Use Cases","httpx-vs-requests-vs-aiohttp","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F08\u002FHTTPX-vs-Requests-vs-aiohttp-article-cover-image.webp","2026-08-28T07:27:34.000Z","httpx vs requests",{"name":20,"slug":20},[177,178,179],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21},{"name":155,"slug":155,"visibility":21},{"id":181,"title":182,"slug":183,"feature_image":184,"published_at":185,"twitter_title":186,"primary_tag":187,"tags":188},"6a90fcea4956c90001bee256","8 Best Germany Proxies in 2026: Provider Comparison","best-germany-proxies","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F08\u002FBest-Germany-Proxies-article-cover-image.webp","2026-08-28T03:40:55.000Z","germany proxy",{"name":20,"slug":20},[189,190,191],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21},{"name":155,"slug":155,"visibility":21},{"id":193,"title":194,"slug":195,"feature_image":196,"published_at":197,"twitter_title":198,"primary_tag":199,"tags":200},"6a8e92664956c90001beddc2","Bing Rank Tracker: Reliable Local SERP Monitoring Guide","bing-rank-tracker","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F08\u002F-------16.webp","2026-08-26T07:42:04.000Z","bing rank checker",{"name":20,"slug":20},[201,202,205],{"name":20,"slug":20,"visibility":21},{"name":203,"slug":204,"visibility":21},"应用场景","use-cases",{"name":155,"slug":155,"visibility":21},[207,220,231,242,253],{"id":208,"title":209,"slug":210,"feature_image":211,"published_at":212,"twitter_title":213,"primary_tag":214,"tags":215},"6b0946f492ab700001dc0920","Best Rotating Proxies in 2026 7 Rotating Proxy Providers Compared","best-rotating-proxies","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FBest-Rotating-Proxies-in-2026-7-Rotating-Proxy-Providers-Compared.webp","2026-11-27T09:07:09.000Z","best rotating proxies",{"name":20,"slug":20},[216,217],{"name":20,"slug":20,"visibility":21},{"name":218,"slug":219,"visibility":21},"排行榜","top-picks",{"id":221,"title":222,"slug":223,"feature_image":224,"published_at":225,"twitter_title":226,"primary_tag":227,"tags":228},"6b07a50492ab700001dc0603","How to Configure an NGINX Docker Reverse Proxy with Rola IP Egress","nginx-docker-reverse-proxy","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FHow-to-Configure-an-NGINX-Docker-Reverse-Proxy-with-Rola-IP-Egress-1.webp","2026-11-26T03:21:51.000Z","nginx docker reverse proxy",{"name":20,"slug":20},[229,230],{"name":20,"slug":20,"visibility":21},{"name":29,"slug":30,"visibility":21},{"id":232,"title":233,"slug":234,"feature_image":235,"published_at":236,"twitter_title":237,"primary_tag":238,"tags":239},"6b079b8692ab700001dc05ce","Android Proxy Settings for Mobile Network: The No-Root Guide (2026)","android-proxy-settings-mobile-network","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FAndroid-Proxy-Settings-for-Mobile-Network_-The-No-Root-Guide--2026-.webp","2026-11-26T03:10:40.000Z","android proxy settings mobile network",{"name":20,"slug":20},[240,241],{"name":20,"slug":20,"visibility":21},{"name":29,"slug":30,"visibility":21},{"id":243,"title":244,"slug":245,"feature_image":246,"published_at":247,"twitter_title":248,"primary_tag":249,"tags":250},"6b0655a092ab700001dc0440","Rammerhead Proxy: Setup, HTTP Upstreams and Alternatives","rammerhead-alternatives","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002Frammerhead-alternatives.webp","2026-11-25T03:59:48.000Z","Rammerhead Proxy",{"name":20,"slug":20},[251,252],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21},{"id":254,"title":255,"slug":256,"feature_image":257,"published_at":258,"twitter_title":259,"primary_tag":260,"tags":261},"6b05417f92ab700001dc034d","ProxyEmpire Review (2026): Our Best Alternative for Predictable Bulk Residential Use","proxyempire-review","https:\u002F\u002Frola-ip.co\u002F__ghost__\u002Fcontent\u002Fimages\u002F2026\u002F11\u002FProxyEmpire-Review--2026-_-Our-Best-Alternative-for-Predictable-Bulk-Residential-Use.webp","2026-11-24T08:12:53.000Z","proxyempire review",{"name":20,"slug":20},[262,263],{"name":20,"slug":20,"visibility":21},{"name":152,"slug":153,"visibility":21}]