Get proxy replacement
This endpoint lets you get an existing proxy replacements.
Parameters
GET https://proxy.webshare.io/api/v2/proxy/replace/{ID}/
Parameter | Type | Description |
---|---|---|
ID | int | The ID of the proxy replacement to retrieve. |
Request & Response
get_proxy_replacement.py
import requests
response = requests.post(
"https://proxy.webshare.io/api/v2/proxy/replace/<ID>/",
headers={"Authorization": "Token "}
)
response.json()
The commands above return JSON structured like this:
response.json
{
"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",
}