Packages
Locations
Get available ASNs for a country in a package
List ASNs available in a country for this package. Use code values as the asn parameter of the connection-string endpoint.
Feature gate: returns 403 if your plan does not include ASN targeting.
Requires the proxy:packages:read scope.
get/v1/proxy/packages/{package_id}/locations/countries/{cc}/asns
Request
- Base URLhttps://api.platform.soax.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
package_idstring required
The ID of the proxy package
ccstring required
The ISO country code
Query parameters
network'wifi' | 'mobile' | 'mix' nullable
Filter by network type. Valid values are the package's own types (wifi, mobile, or mix); anything else returns 400 listing the networks available on the package.
regionstring nullable
Narrow results to one region.
citystring nullable
Narrow results to one city.
Response
Successful Response
Example response
{
"data": [
{
"code": "AS1234",
"name": "AS1234",
"rank": 1,
"volume_level": 3
},
{
"code": "AS5678",
"name": "AS5678",
"rank": 2,
"volume_level": 2
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.