# 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/workflows/stubhub
- Handle: `@stubhub`
- Category: [Entertainment](https://fous.com/workflows/category/entertainment)
- Source website: https://stubhub.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with StubHub.

## Methods

### Get ticket prices

Operation `get_ticket_prices`, version 1. 1 credit per call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@stubhub","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with StubHub?

No. Fous is not affiliated with StubHub. This workflow reads the public stubhub.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/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/workflows/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/workflows/meetup.md): Find local groups and public events.
- [Bandsintown API](https://fous.com/workflows/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/workflows/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/workflows/offerup.md): Local marketplace for buying and selling items.
- [setlist.fm API](https://fous.com/workflows/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 workflows](https://fous.com/workflows/category/entertainment)
