List proxy replacement

This endpoint retrieves all existing proxy replacements associated with the user in paginated format with filtering & ordering enabled.

Parameters

ParameterTypeDescription
orderingstring

Default ordering is id. Available ordering fields are id, created_at, completed_at.

dry_runboolean

Filter proxy replacements with whether it is dry run or not.

statestring

Filter proxy replacements by state

Request & Response

GET https://proxy.webshare.io/api/v2/proxy/replace/
list_proxy_replacement.py
import requests
 
response = requests.post(
    "https://proxy.webshare.io/api/v2/proxy/replace/",
    headers={"Authorization": "Token "}
)
 
response.json()

The commands above return JSON structured like this:

response.json
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
        "id": 98315,
        "reason": "proxy_replaced",
        "to_replace": {"type": "ip_range", "ip_ranges": ["1.2.3.0/24"]},
        "replace_with": [{"type": "country", "country_code": "US"}],
        "dry_run": false,
        "state": "completed",
        "proxies_removed": 1,
        "proxies_added": 1,
        "created_at": "2022-07-26T21:25:13.966946-07:00",
        "completed_at": "2022-07-26T21:25:13.966946-07:00",
    },
    ...
  ]
}