Get Proxy Targeting
get_proxy_targetingFetch available proxy regions, cities, and ISPs for a country to set valid targeting values before creating scans or campaigns. Prevents errors from mismatched regional or network data.
Instructions
List the proxy regions, cities, and ISPs accepted for a country. Call this before setting proxy targeting on create_scan, create_bulk_scans, create_campaign, or update_campaign — the accepted values come from the upstream network provider and cannot be listed in those tools' schemas, so a guess is a 422. Anything listed here is accepted. Values are ordered by pool size, largest first; prefer values near the front. Two traps: residential and mobile are separate pools, so pass the proxy_type the scan will use; and without a region the cities are the whole country's, so if you target a region, call again with that region and take the city from that narrower list — a region and a city that do not belong together are accepted but leave the provider no exit node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Narrow the returned cities to one region. Pass a value from this tool's own 'regions' array. Omit it for the country-wide city list. | |
| proxy_type | No | Which network to describe. Defaults to residential. Pass 'mobile' when the scan will use mobile: the two are separate pools with different catalogues, so a residential ISP is normally rejected for a mobile scan. | |
| country_code | Yes | ISO 3166-1 alpha-2 country code, e.g. 'US'. Case-insensitive. |