Rotate until the IP is clean
rotate_until_cleanRotate a mobile proxy until its IP is not blacklisted, checking each new IP and retrying up to max_attempts. Set keep_if_clean to skip rotation if the current IP is already clean.
Instructions
Gets a mobile proxy onto an IP that is on no spam/abuse blacklist: rotates, checks the new IP and repeats up to max_attempts, in one call instead of chaining rotate_ip and get_proxy_status. With keep_if_clean=true it checks the current IP first and keeps it when clean. Returns status="cooldown" with wait_seconds when the carrier refuses another rotation yet. Active connections drop on each rotation. Mobile proxies only (proxy_type=0), free of charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy_id | Yes | Mobile proxy id from list_proxies | |
| max_attempts | No | Maximum rotations before giving up | |
| keep_if_clean | No | Check the current IP first and skip rotation if it is clean |