Available assets

Available assets

This endpoint returns the available assets for each proxy category.

Response

FieldTypeDescription
total_subnetsnumber

The number of subnets available under each proxy category. Categories are: free, shared, semidedicated and dedicated. And sub categories are: default, non-premium, premium and isp

available_countriesdict

Dictionary of country code and the number of proxies we have in that country under each proxy category.

Request & Response

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

The commands above return JSON structured like this:

response.json
{
  "shared": {
    "default": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
    "residential": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
    "isp": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
  },
  "semidedicated": {
    "premium": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
    "isp": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
  },
  "dedicated": {
    "premium": {"total_subnets": 1, "available_countries": { "US", 1000, "CA": 1000, ...}},
    "isp": {"total_subnets": 1}, "available_countries": { "US", 1000, "CA": 1000, ...},
  },
}