Skip to content

ASN & carrier targeting

An ASN identifies the network an IP belongs to: Comcast, Verizon, Vodafone. Use it when the target treats traffic differently by carrier.

Send the number. AS prefixes and stray characters are stripped, so AS7018, as7018 and 7018 are the same request.

Terminal window
curl -x USERNAME:[email protected]:8000 \
https://api.ipify.org
Terminal window
curl --proxy-header "X-Rayobyte-Asn: 7018" \
-x us-east.gw.rayobyte.com:8000 https://api.ipify.org

One to ten letters or digits, normalized down to the digits.

Look up a carrier’s ASN at bgp.he.net or any RIR WHOIS. Large carriers hold several. Comcast alone announces from more than one, so an exit on “Comcast” may not carry the ASN you picked.

Terminal window
-country-US-asn-7018

Some operators run networks in several countries under one ASN. Without a country you may egress from a different one than you expect.

Filtering by carrier cuts the pool to the devices on that one network. Stack it with a city or a ZIP and you are down to a handful of devices, which fails whenever none of them are online.

Use ASN alone with a country first. Add geography only if you still need it.

Was this page helpful?