# StubHub API

> StubHub returns resale ticket listings and prices as a workflow and API.

StubHub finds matching events using an artist, team, show, or event link, with optional city, date, and ticket quantity. Get ticket prices returns event details and resale listings, including ticket availability and prices before and including estimated fees.

- Page: https://fous.com/tools/stubhub
- Handle: `@stubhub`
- Category: [Entertainment](https://fous.com/tools/category/entertainment)
- Source website: https://stubhub.com
- Last verified: Sep 29, 2026

## Methods

### Get ticket prices

Operation `get_ticket_prices`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Find a matching StubHub event or use an event link to see current resale listing prices, including estimated fees. Search matches are limited to events StubHub exposes in search and the initial performer grid; when more listing pages are blocked, up to 10 lowest-priced listings are returned. Before-fee prices are not displayed.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `city` | string | no | `"Inglewood"` | Only match an event in this city, for example Inglewood. |
| `date` | string | no | `"2026-10-02"` | Local event date in YYYY-MM-DD, for example 2026-10-02. If omitted, pick the next matching event. |
| `event` | string | yes | `"https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/"` | Artist, team, show, or StubHub event link, for example Bruno Mars or https://www.stubhub.com/bruno-mars-inglewood-tickets-10-2-2026/event/160226894/. |
| `quantity` | integer | no | `2` | Tickets wanted together, for example 2. Defaults to 2. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "event"
  ],
  "properties": {
    "city": {
      "type": "string",
      "description": "Only match an event in this city, for example Inglewood.",
      "examples": [
        "Inglewood",
        "Bronx"
      ]
    },
    "date": {
      "type": "string",
      "format": "date",
      "description": "Local event date in YYYY-MM-DD, for example 2026-10-02. If omitted, pick the next matching event.",
      "examples": [
        "2026-10-02",
        "2026-09-30"
      ]
    },
    "event": {
      "type": "string",
      "description": "Artist, team, show, or StubHub event link, for example Bruno Mars or https://www.stubhub.com/bruno-mars-inglewood-tickets-10-2-2026/event/160226894/.",
      "examples": [
        "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
        "Bruno Mars",
        "Yankees"
      ]
    },
    "quantity": {
      "type": "integer",
      "default": 2,
      "maximum": 32,
      "minimum": 1,
      "description": "Tickets wanted together, for example 2. Defaults to 2.",
      "examples": [
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "event": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
      "quantity": 2
    },
    {
      "city": "Inglewood",
      "date": "2026-10-02",
      "event": "Bruno Mars",
      "quantity": 2
    },
    {
      "city": "Bronx",
      "date": "2026-09-30",
      "event": "Yankees",
      "quantity": 2
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `city` | string or null | `"Inglewood"` |  |
| `venue` | string or null | `"SoFi Stadium"` |  |
| `listings` | array |  |  |
| `listings[].row` | string or null | `"8"` |  |
| `listings[].section` | string or null | `"543"` |  |
| `listings[].stubhub_link` | string | `"https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/"` |  |
| `listings[].tickets_available` | integer or null | `2` |  |
| `listings[].price_per_ticket_before_fees` | object or null |  |  |
| `listings[].price_per_ticket_including_fees` | object or null |  |  |
| `event_name` | string | `"Bruno Mars"` |  |
| `stubhub_link` | string | `"https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/"` |  |
| `local_date_time` | string or null | `"2026-10-03T19:00:00-07:00"` |  |
| `number_of_listings` | integer | `499` |  |
| `cheapest_price_per_ticket_including_fees` | object or null |  |  |
| `cheapest_price_per_ticket_including_fees.amount` | number | `216.02` |  |
| `cheapest_price_per_ticket_including_fees.currency` | string | `"USD"` |  |

**Example input**

```json
{
  "event": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
  "quantity": 2
}
```

**Example output**

```json
{
  "city": "Inglewood",
  "venue": "SoFi Stadium",
  "listings": [
    {
      "row": "8",
      "section": "543",
      "stubhub_link": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
      "tickets_available": 2,
      "price_per_ticket_before_fees": null,
      "price_per_ticket_including_fees": {
        "amount": 216.02,
        "currency": "USD"
      }
    },
    {
      "row": "3",
      "section": "511",
      "stubhub_link": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
      "tickets_available": 2,
      "price_per_ticket_before_fees": null,
      "price_per_ticket_including_fees": {
        "amount": 231.09,
        "currency": "USD"
      }
    },
    {
      "row": "3",
      "section": "410",
      "stubhub_link": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
      "tickets_available": 4,
      "price_per_ticket_before_fees": null,
      "price_per_ticket_including_fees": {
        "amount": 247.5,
        "currency": "USD"
      }
    }
  ],
  "event_name": "Bruno Mars",
  "stubhub_link": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
  "local_date_time": "2026-10-03T19:00:00-07:00",
  "number_of_listings": 499,
  "cheapest_price_per_ticket_including_fees": {
    "amount": 216.02,
    "currency": "USD"
  }
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@stubhub",
  "visibility": "public",
  "operation": "get_ticket_prices",
  "version": 1,
  "input": {
    "event": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
    "quantity": 2
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@stubhub\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_ticket_prices\",\n  \"version\": 1,\n  \"input\": {\n    \"event\": \"https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/\",\n    \"quantity\": 2\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@stubhub",
  "visibility": "public",
  "operation": "get_ticket_prices",
  "version": 1,
  "input": {
    "event": "https://www.stubhub.com/bruno-mars-inglewood-tickets-10-3-2026/event/160226895/",
    "quantity": 2
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/stubhub`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_ticket_prices`: Get ticket prices. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-stubhub https://api.fous.com/mcp/tools/stubhub --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare resale ticket prices for an event
- Estimate ticket costs including fees
- Check available ticket quantities for a listing
- Find events by performer, team, or show
- Review listings for events in a particular city

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this StubHub tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a StubHub account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from stubhub.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What are the ticket prices for an event?

Get ticket prices returns resale listing prices before and including estimated fees.

### How many tickets are available together?

Get ticket prices returns the number of tickets available for each listing.

### Can I find an event by city and date?

Get ticket prices can match an event using a performer, team, show, or event link, with optional city and date.

## Related

- [Ticketmaster API](https://fous.com/tools/ticketmaster.md): Ticketmaster finds upcoming live events and shows available ticket options with prices, excluding partner-only listings and offers requiring a code or sign-in.
- [Eventbrite API](https://fous.com/tools/eventbrite.md): Eventbrite helps discover live and online events, with public search results that may be limited and event details that may omit public ticket listings.
- [Songkick API](https://fous.com/tools/songkick.md): Songkick finds live concerts, festivals, and artist tour dates, including upcoming artist shows and city concerts within selected dates, with ticket links when available.
- [Meetup API](https://fous.com/tools/meetup.md): Find local groups and public events.
- [Bandsintown API](https://fous.com/tools/bandsintown.md): Bandsintown provides artist tour dates and concert listings with venues, lineups and ticket or event links; results reflect listed upcoming shows and may include nearby venues.
- [eBay API](https://fous.com/tools/ebay.md): eBay provides listings, listing details, seller reputation and newest feedback; shipping varies by destination, and some details or counts may be missing or approximate.
- [OfferUp API](https://fous.com/tools/offerup.md): Local marketplace for buying and selling items.
- [setlist.fm API](https://fous.com/tools/setlist-fm.md): setlist.fm provides artists’ newest past concerts with performed songs, individual concert details and songs, and most-played songs by tour or year based on published setlists.
- [All Entertainment tools](https://fous.com/tools/category/entertainment)
