Get a Ticketmaster TMPT cookie

By solvethree3 min read

Create a TicketmasterTmptTask for the exact Ticketmaster URL you’ll request, using the appropriate action and a proxy. The ready result’s solution.token is the raw tmpt cookie value—not a reCAPTCHA token or a set of Kasada headers.

On this page

Choose the action and exact URL

Match the task to the request you intend to make.
Match the task to the request you intend to make.
actionurl
EventThe exact event URL
LoginThe exact sign-in entry URL

The examples request an Event cookie. Replace the placeholder event URL with your actual target. For Login, change both action and url; changing the action alone leaves the task pointed at the wrong page. Don’t send site, recaptchaType or session.

Use Python 3.10+ or Node.js 22+ with the official SDK; see SDK installation instructions. Set SOLVETHREE_API_KEY and SOLVETHREE_PROXY in your server environment. Keep the API key out of browser code. These examples use a single proxy; don’t also supply proxyCandidates.

Python · TMPT cookie
import os
from uuid import uuid4
from solvethree import Solvethree

client = Solvethree(os.environ["SOLVETHREE_API_KEY"])
request = {
    'type': 'TicketmasterTmptTask',
    'url': 'https://www.ticketmaster.com/event/EXAMPLE',
    'action': 'Event',
    "proxy": os.environ["SOLVETHREE_PROXY"],
    "requestId": str(uuid4()),
}
result = client.solve(request, timeout=180)
tmpt = result["solution"]["token"]  # The raw cookie value, without "tmpt=".
print("Ready task:", result["id"])

Use solve to wait for the cookie

TMPT creation is asynchronous by default: waitMs is zero, so creation doesn’t wait for the cookie. The examples use solve for convenience. It creates one task and polls until ready, or raises an exception. The client waits for up to 180 seconds in these examples. The Python SDK is synchronous and blocks while it waits.

If your application needs the task ID immediately, use create_task in Python or createTask in Node.js, then retrieve that same task with get_task or getTask. Keep polling while its status is pending or solving. Read the solution only when it is ready. On failed, stop polling and inspect errorCode and error rather than resubmitting unchanged inputs.

Run your first task.

Start with $5 in workspace credit.

Create a workspace