Skip to content

Align ProxyConfiguration with JS v4: embed a session ID in every Apify Proxy URL #1280

Backlog

Description

@vdusek

ProxyConfiguration.new_proxy_info() adds session-<id> to the Apify Proxy username only when session_id is passed (_get_username). Without it, the URL has no session and Apify Proxy picks a new IP for each request.

JS v4 removed the sessionId parameter. Every newUrl() / newProxyInfo() call embeds a fresh random session-<id>, so each URL stays on one IP, and Crawlee's SessionPool pairs the URL with a Session (proxy_configuration.ts#L315-L362, upgrading_v4.md). JS keeps this behavior, and Python should match it (apify/apify-sdk-js#839).

Proposed solution

Depends on apify/crawlee-python#2298. This is a breaking change: code that reuses one URL across requests gets the same IP for every request.

✍️ Drafted by Claude Code

Activity

  1. added this to the 5.0 milestone on Nov 24, 2026
  2. added
    t-tooling
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-tooling

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions