List proxy replacement
This endpoint retrieves all existing proxy replacements associated with the user in paginated format with filtering & ordering enabled.
Parameters
Parameter | Type | Description |
---|---|---|
ordering | string | Default ordering is |
dry_run | boolean | Filter proxy replacements with whether it is dry run or not. |
state | string | 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",
},
...
]
}