Published on

How to use same Proxy IP address per session in Apify

Authors

When working with a proxy, sometimes you might want to retain the same IP address for an entire session.

Here is how to use that for the proxy provided by Apify

Solution

Just append session-{YOUR_SESSION_ID} in the username

curl --proxy proxy.apify.com:8000 --proxy-user {YOUR_USERNAME}-session-{YOUR_SESSION_ID}:{YOUR_PASSWORD} "http://proxy.apify.com"

That's pretty much it.

Reference

Happy proxying IP!