An ASN (Autonomous System Number) identifies a network on the internet. Every large ISP, mobile carrier and hosting company has one or more.
Format
Add theasn parameter to your username:
Username
string
required
The ASN as a number, without the
AS prefix.Combining With Geo-Targeting
Addcountry to get IPs from one ISP in one country:
Username
Example Request
- Python
- cURL
Python
Finding an ASN
You can look up the ASN of any IP or ISP with these tools:- bgp.he.net: search by ISP name or IP
- ipinfo.io: shows the ASN for any IP
whois <ip>on the command line
Troubleshooting
PX1002(502, no exit node available): the ASN has no available IPs right now, or none that match yourcountryorstate. Addfallback-trueto accept another network in the same country, remove the location filters, or try another ASN from the same provider.PX1004(400, unsupported targeting option): use the number only, for exampleasn-7922, notasn-AS7922.- See Error Handling for all proxy errors.