Dice.fm Events Scraper avatar

Dice.fm Events Scraper

Pricing

from $0.50 / 1,000 results

Go to Apify Store
Dice.fm Events Scraper

Dice.fm Events Scraper

Scrape event data from Dice.fm - search by artist, city, or keyword. Get event details, lineups, ticket prices, and venue info. NOTE: Dice.fm uses aggressive Cloudflare protection - residential proxies, a VPN, or running locally are required for reliable results.

Pricing

from $0.50 / 1,000 results

Rating

0.0

(0)

Developer

Brandon Hamm

Brandon Hamm

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

A Python-based Apify Actor that scrapes event data from Dice.fm — one of the UK's leading independent ticketing platforms for live music, club nights, and festivals.

Features

  • Multiple query modes: Search by keyword, browse by city, scrape direct event URLs, or search by artist name
  • API interception: Intercepts Dice.fm's internal API responses during page load for structured JSON data — no HTML scraping required when API is available
  • HTML fallback: Falls back to BeautifulSoup HTML parsing when API interception fails
  • Full event details: Optionally visits individual event pages for complete lineups, ticket types, descriptions, and images
  • Date filtering: Filter events by date range (YYYY-MM-DD)
  • Cloudflare handling: Uses Playwright with stealth settings and residential proxies to bypass Cloudflare protection
  • Deduplication: Automatically deduplicates events by event ID or URL
  • No API key required: Works entirely through the public Dice.fm website

⚠️ Proxy Requirement: Dice.fm uses aggressive Cloudflare protection. Residential proxies are required for successful scraping. Enable useProxy and use Apify's residential proxy groups. Datacenter proxies and direct connections will be blocked by Cloudflare. Users on Apify's Free plan may need to upgrade or provide their own residential proxy for reliable results.

Input Parameters

ParameterTypeRequiredDefaultDescription
queryTypeselectsearchQuery mode: search, browse, event, or artist
searchQuerystringText search query (for search mode)
eventUrlsstring[]Direct Dice.fm event URLs (for event mode)
citystringCity name for browse mode (for browse mode)
artistNamestringArtist name to search (for artist mode)
dateFromstringStart date filter (YYYY-MM-DD)
dateTostringEnd date filter (YYYY-MM-DD)
maxEventsinteger100Maximum events to scrape (0 = unlimited)
includeEventDetailsbooleantrueVisit each event page for full details
useProxybooleantrueUse Apify proxy for anti-bot bypass

Output Fields

Each event in the dataset contains:

FieldTypeDescription
eventIdstringDice.fm event ID
eventNamestringEvent name/title
eventUrlstringFull Dice.fm event URL
datestringEvent date (YYYY-MM-DD)
timestringEvent start time (HH:MM)
venueNamestringVenue name
venueCitystringVenue city
venueCountrystringVenue country
venueAddressstringVenue street address
latitudefloat|nullVenue latitude
longitudefloat|nullVenue longitude
lineuparrayArray of {artist, role, setTime} objects
ticketTypesarrayArray of {name, price, currency, soldOut, availability} objects
priceFromfloat|nullMinimum ticket price
priceTofloat|nullMaximum ticket price
currencystringPrice currency code (default: GBP)
genreTagsarrayArray of genre/style tag strings
typeTagstringEvent type (e.g., "Club night", "Live music", "Festival")
ageLimitstringAge restriction info
descriptionstringEvent description text
imageUrlsarrayArray of image URLs
soldOutbooleanWhether the event is sold out
isFreebooleanWhether the event is free entry

Use Cases

  • Event discovery: Find upcoming events by city, genre, or keyword
  • Market research: Track ticket prices, sold-out rates, and event frequency
  • Artist touring data: Find all upcoming dates for a specific artist
  • Venue monitoring: Monitor a venue's upcoming programme
  • Festival tracking: Scrape festival lineups and ticket availability
  • Data journalism: Analyse live music trends, pricing, and market dynamics

Example Input

{
"queryType": "search",
"searchQuery": "techno London",
"dateFrom": "2026-08-15",
"dateTo": "2026-09-15",
"maxEvents": 50,
"includeEventDetails": true,
"useProxy": true
}
{
"queryType": "browse",
"city": "London",
"maxEvents": 200
}
{
"queryType": "event",
"eventUrls": [
"https://dice.fm/event/abc123-floating-points-tickets",
"https://dice.fm/event/def456-four-tet-tickets"
]
}
{
"queryType": "artist",
"artistName": "Floating Points",
"maxEvents": 20
}

Example Output

{
"eventId": "abc123",
"eventName": "Floating Points — All Night Long",
"eventUrl": "https://dice.fm/event/abc123-floating-points-all-night-long-tickets",
"date": "2026-08-22",
"time": "23:00",
"venueName": "Phonox",
"venueCity": "London",
"venueCountry": "GB",
"venueAddress": "22 Brixton Hill, London SW2 1JW",
"latitude": 51.4614,
"longitude": -0.1152,
"lineup": [
{"artist": "Floating Points", "role": "headliner", "setTime": "02:00"},
{"artist": "DJ support TBA", "role": "support", "setTime": "23:00"}
],
"ticketTypes": [
{"name": "Standard", "price": 25.00, "currency": "GBP", "soldOut": false, "availability": "available"},
{"name": "Early Bird", "price": 18.00, "currency": "GBP", "soldOut": true, "availability": "sold_out"}
],
"priceFrom": 18.0,
"priceTo": 25.0,
"currency": "GBP",
"genreTags": ["electronic", "house", "techno"],
"typeTag": "Club night",
"ageLimit": "18+",
"description": "Floating Points plays an all-night set at Phonox...",
"imageUrls": ["https://images.dice.fm/abc123-cover.jpg"],
"soldOut": false,
"isFree": false
}

How It Works

  1. Launches Playwright with stealth settings (anti-automation flags disabled, realistic user agent)
  2. Navigates to the target Dice.fm page (search results, city browse, or direct event URL)
  3. Intercepts network responses — listens for JSON responses from Dice.fm's internal API endpoints
  4. Scrolls the page to trigger infinite loading and additional API calls
  5. Normalises intercepted API data into the output schema
  6. HTML fallback — if no API data is intercepted, parses the rendered HTML for event links
  7. Event detail enrichment — optionally visits each event page for full lineup/ticket/description data
  8. Filters and deduplicates events by date range and event ID
  9. Pushes results to the Apify dataset incrementally

Cloudflare Handling

Dice.fm uses Cloudflare protection. This scraper handles it by:

  • Using Playwright (real browser engine) instead of HTTP requests
  • Apify proxy with residential IPs to avoid rate limiting
  • Anti-automation flags disabled (--disable-blink-features=AutomationControlled)
  • Challenge detection: detects Cloudflare interstitial pages and waits for them to resolve
  • Retry logic: up to 3 wait cycles (5s each) for Cloudflare challenges to clear

If Cloudflare consistently blocks the scraper, ensure useProxy is enabled and try again after a cooldown period.

Technical Details

  • Runtime: Python 3.12
  • Browser engine: Chromium (via Playwright)
  • Dependencies: apify, crawlee[playwright], beautifulsoup4, lxml
  • Docker base image: apify/actor-python-playwright:3.12
  • No API keys: Works entirely through the public Dice.fm website

Limitations

  • Dice.fm's internal API structure may change without notice — the HTML fallback provides resilience
  • Very large result sets may be slow due to page scrolling and detail page visits
  • Cloudflare may temporarily block repeated requests; use proxy and reasonable delays
  • Some events may have incomplete data if the API response is sparse

License

This actor is provided as-is for educational and research purposes. Ensure compliance with Dice.fm's terms of service when using this scraper.