Ticketmaster New Zealand: targeting a small country without running dry of exits

2026-11-05 · Bazyl

This post sets up a bot for ticketmaster.co.nz on New Zealand exits, and keeps it from asking the pool for more than a small country can give at once. The mistake I see most is copying a US setup line for line: city tokens, an ISP token, fifty tasks pinned to one city. In New Zealand that turns into a wall of E20.

The site sells in New Zealand dollars to a New Zealand audience. So the exit is a New Zealand one, and everything below is about getting enough of them.

The gateway follows the bot, the country follows the token

Pick the gateway nearest the machine, then put the country on the username. We run three gateways on one pool: eu-, us- and ap-residential2.basilproxies.com. None of them decides where the exit is. -cc-nz does.

A bot running in Auckland, Sydney or Singapore goes through ap. A bot on a rented server in Frankfurt goes through eu, still with -cc-nz. The first hop is short in both cases, and the long leg to New Zealand happens once, inside our network.

# Bot in Australia or New Zealand: Asia-Pacific gateway, New Zealand exit
ap-residential2.basilproxies.com:2115:USER-cc-nz-sess-k4mz61pq-ttl-60:PASS

# Same login, bot on a server in Europe: only the host changes
eu-residential2.basilproxies.com:2115:USER-cc-nz-sess-x9d02mvq-ttl-60:PASS

# A monitor: no session token, a new New Zealand IP on every request
ap-residential2.basilproxies.com:2115:USER-cc-nz:PASS

A login that starts with res2_ predates 27 October 2026 and keeps the legacy format: the docs show it.

Country first, city only with a reason

-cc-nz alone draws from every free exit in the country. That is the widest pool you can ask for while staying in New Zealand, and it is where I'd start every task.

A city token is a filter on top of that. -city-auckland (the dashboard picker's code: lowercase, no spaces) asks for exits in Auckland only. Wellington and Christchurch work the same way, if the picker lists them. In a country the size of the US the picker lists thousands of cities and a city token still leaves a deep pool. In New Zealand it cuts the choice down to a fraction of an already small country.

So ask what the city buys you. Ticketmaster New Zealand sells to the whole country. I don't know of anything that makes an Auckland exit better than a Hamilton one for a task, and I won't invent a reason. If you have one, use the token on a few tasks, not all of them.

The ISP token, -isp-<ASN>, narrows the same way and can't be combined with a city. Same advice.

E20 is the pool telling you the ask is too narrow

When nothing in the pool matches every token at that moment, the gateway answers E20 no exit for this targeting, change it or retry. It does not hand you a Sydney exit instead, or an exit somewhere else in New Zealand when you asked for one city. Targeting never falls back to a wider area. That is on purpose: a bot that asked for New Zealand and silently got Australia would be worse off than one that got an error.

The cost is that the fallback is your job. Here is a check that tries the narrow string first and drops to country-only on E20. On an https:// target the gateway refuses the tunnel, and E20 arrives as status 460 on the CONNECT, which curl prints with %{http_connect}.

#!/usr/bin/env bash
# nz-check.sh: try a city-pinned New Zealand exit, fall back to country-only on E20.
GW="ap-residential2.basilproxies.com:2115"
SESS=$(LC_ALL=C tr -dc 'a-z0-9' </dev/urandom | head -c 8)

try() {
  curl -s --max-time 20 -o /dev/null -w '%{http_connect}' \
    -x "http://USER-$1-sess-$SESS-ttl-60:PASS@$GW" https://api.ipify.org
}

CODE=$(try "cc-nz-city-auckland")
if [ "$CODE" = "460" ]; then
  echo "E20 on the city token: dropping to -cc-nz"
  TOKENS="cc-nz"
else
  TOKENS="cc-nz-city-auckland"
fi

PROXY="http://USER-$TOKENS-sess-$SESS-ttl-60:PASS@$GW"
echo "exit: $(curl -s --max-time 20 -x "$PROXY" https://api.ipify.org)"
echo "country: $(curl -s --max-time 20 -x "$PROXY" https://ipinfo.io/country)"

Put the same logic in the bot if it can take it. The rule is simple: on E20, remove the narrowest token, never the country.

Sticky for the task, rotating for the monitor

A task that signs in and goes to checkout keeps one exit. Give it -sess- with its own id and a -ttl- longer than the task. The ttl takes 1 to 1440 minutes; leave it off and the session lasts 15. A 30-minute task is comfortable on -ttl-60.

A monitor watching an event page is the opposite. It wants a fresh IP on every request, so it carries no session token at all. Mixing the two up is the most common setup error I see: a monitor on one sticky exit hammering the same page for an hour.

The longer argument for each is in sticky vs rotating for a checkout bot.

Size the task count to the country, not to your US setup

Every sticky task holds one exit for its ttl. Say a bot runs 40 tasks at once on -cc-nz-city-auckland with -ttl-120. That is 40 Auckland exits held for two hours, and a 41st task is asking for one more from the same city. In a big country nobody notices. In a small one the 41st task, or the 20th, may get E20.

Three things keep you out of that corner:

  • Keep the ttl close to the task length. An exit held for 24 hours after a ten-minute checkout is an exit no other task can use.
  • Drop city and ISP tokens unless they earn their place.
  • Run fewer, better-prepared tasks. How many proxies per task walks through the count.

When an exit drops mid-task

A residential exit is someone's home connection, and home connections go away. If a request comes back E50 exit failed, retry with a new session, the exit behind that session id is gone. Retrying the same id won't bring it back. Generate a new session id and start that task again.

Separately, a tunnel that sits silent for about 60 seconds is closed. That doesn't lose the exit: the next request on the same session id within its ttl reconnects to the same IP. A bot that opens a fresh connection per request never notices either way.

Budget on your own numbers

We don't publish how many gigabytes a Ticketmaster task uses. Run one event, open the statistics page, and read the bytes against ticketmaster.co.nz in the per-domain table. That is your number.

Pay as you go starts at 1 GB and never expires, so a first test is small. In US dollars, as of 25 September 2026, 1 GB is $4.20 and 5 to 14 GB is $3.60 a gigabyte. Checkout charges in USD, EUR, GBP or PLN; New Zealand dollars aren't one of them, so the price you see is in whichever of those four you pick.

What we answer for is the exit being live and reachable from New Zealand when you ask for it. What the site does with the request is the site's.

Set up the first New Zealand strings from the ticket drops page and change the country token to nz.

Common questions

Which gateway should I use for Ticketmaster New Zealand?
The one nearest the machine running the bot, not the one nearest New Zealand. A bot in Auckland or Sydney uses ap-residential2.basilproxies.com; a bot on a server in Europe uses eu-. The exit country comes from the -cc-nz token on the username, whichever gateway you pick.
Should I add a city token like -city-auckland?
Only if you have a reason the city matters. A city token narrows the pool to exits in that one city, and in a small country that narrows it a lot. If nothing in that city is free, the gateway answers E20 and does not fall back to the rest of the country. Start with -cc-nz alone.
What does E20 mean on a New Zealand string?
E20 no exit for this targeting, change it or retry. The pool had no free exit matching every token on the username at that moment. Retry, or remove the narrowest token (city or isp) and keep -cc-nz. The gateway never widens the targeting for you.
How do I keep one New Zealand IP for a whole task?
Add -sess- with an id you pick and -ttl- in minutes, for example USER-cc-nz-sess-k4mz61pq-ttl-60. The same session id keeps the same exit until the ttl runs out, up to 1,440 minutes. Give every task its own session id.