TVMaze Scraper — TV Shows, Episodes & Cast
Pricing
from $2.75 / 1,000 results
TVMaze Scraper — TV Shows, Episodes & Cast
Search TV shows and get genres, network, rating, premiere/end dates, runtime, IMDb ID, official site, summary and poster, plus optional episode list and cast. Powered by TVMaze. Keyless, no anti-bot.
TVMaze Scraper — TV Shows, Episodes, Cast & Ratings
Scrape TVMaze for clean, structured TV show data in seconds. This TVMaze scraper searches TVMaze by show name and extracts rich metadata for every match — genres, show type, language, status, runtime, premiere and end dates, average rating, popularity score, broadcast network or streaming service, IMDb ID, TheTVDB ID, official website, plain-text summary, and high-resolution posters — plus optional episode summaries (episode count, season count, latest air date) and full main cast credits (actor → character). No login, no coding, no anti-bot roadblocks.
Export your TV show intelligence directly to JSON, CSV, Excel, or API.
Built for TV & streaming application developers, entertainment data teams, recommendation-engine builders, media researchers, fan sites, and AI assistants that require reliable show, episode, and cast data without scraping complex websites.
⚡ At a glance
| Feature | Specification |
|---|---|
| Target Database | TVMaze (tvmaze.com) — Comprehensive Television & Streaming Catalog |
| Search Capabilities | Multi-query batch show search, franchise lookup, titles exploration |
| Streaming & Network Coverage | Broadcast networks (AMC, HBO, BBC) + Streamers (Netflix, Disney+, Apple TV+, Prime) |
| Enrichment Options | Optional episode lists (counts, seasons, latest), full cast & character credits |
| External Identifiers | Direct IMDb ID (imdbId) and TheTVDB ID (thetvdbId) for cross-dataset joins |
| Scale & Pagination | Deep multi-query fan-out (1,000+ shows across queries, 0 = unlimited) |
| Speed & Concurrency | Configurable parallel queries (default 5, up to 20 workers) |
| Output Formats | JSON, CSV, XML, Excel (XLSX), HTML Table, Apify Dataset API |
| Integrations | Python SDK, Node.js SDK, REST API, Webhooks, Zapier, Make |
🔎 Why scrape TVMaze?
TVMaze is one of the most accurate, open TV show databases on the web — covering scripted television, animation, anime, reality series, talk shows, documentaries, and direct-to-streaming originals across traditional broadcast networks and modern streaming platforms. Every show record provides crucial connection points, including canonical IMDb IDs, TheTVDB keys, community ratings, broadcast schedules, genre taxonomy, and official imagery.
Assembling entertainment catalogs manually is prohibitively slow. Scraping movie sites directly triggers aggressive anti-bot protections, and raw APIs return nested arrays with separated endpoints for show details, episode breakdowns, and cast listings.
This TV show data extractor automates the entire ingestion pipeline: provide any list of titles or franchises, and it normalizes, deduplicates, and flattens every match into a clean tabular dataset ready for your database, recommendation engine, or media portal.
Common reasons teams scrape TVMaze:
- 📺 Power TV guides & streaming apps — build or enrich full show catalogs with synopsis, air schedules, and artwork.
- 🔗 Cross-reference IMDb & TheTVDB — extract canonical
imdbIdandthetvdbIdstrings to join TVMaze data with rating databases and reviews. - 📅 Track seasons & episode airings — capture season counts, total episode tallies, and latest episode titles for tracking tools.
- 🎭 Actor & cast attribution — retrieve the primary cast lineup with actor names mapped to character roles.
- ⭐ Popularity & rating ranking — filter titles by TVMaze community rating and algorithmic weight score.
- 📡 Monitor broadcast vs streaming trends — analyze title distribution across traditional TV networks versus global streaming services.
- 🤖 Feed entertainment AI agents — provide LLMs and search engines with factual, up-to-date show descriptions and episode context.
✨ Key Features & Capabilities
- ✅ Multi-Query Title Search — search dozens or hundreds of show titles in a single batch execution.
- ✅ Unified Streaming & Network Mapping — seamlessly combines conventional broadcast networks (AMC, NBC, BBC) and web platforms (Netflix, HBO Max, Prime Video) into one clean
networkattribute. - ✅ Optional Deep Episode Summaries — toggle
includeEpisodesto populate total episode counts, season totals, and formatted latest episode strings. - ✅ Optional Cast Extraction — toggle
includeCastto extract main cast members with actor names and character mappings. - ✅ Universal Foreign Keys — outputs standardized
imdbIdandthetvdbIdvalues for effortless joins across external film & TV registries. - ✅ Sanitized Text Summaries — automatically strips HTML markup and normalizes whitespace into clean synopsis text.
- ✅ Intelligent Deduplication — automatically deduplicates results on internal TVMaze show IDs so overlapping searches never yield duplicate records.
- ✅ Unlimited 1,000+ Deep Scalability — setting
maxItemsPerQuery: 0keeps all matches per query; fan out across multiple search terms to gather 1,000+ titles seamlessly.
🎯 Use cases
1. Streaming Discovery & "Where to Watch" Applications
Developers building consumer entertainment guides use TVMaze data to populate show metadata, broadcast network/platform affiliations, and air schedules. The structured output allows users to search by genre, check status (Running vs Ended), and see airtimes.
2. Season Trackers & Fan Applications
Mobile and web tracker apps leverage the episodeCount, seasonCount, and latestEpisode fields to notify fans when a new season premieres or when a series finale has aired.
3. Entertainment Analytics & Market Intelligence
Media analysts study shifts between linear television and direct-to-consumer streaming. By exporting TVMaze datasets to CSV or BigQuery, teams evaluate genre trends, runtimes, and ratings across platforms.
4. Cross-Platform Catalog Linking (IMDb & TheTVDB)
Data engineers frequently have disconnected datasets with messy show names. By querying TVMaze with show titles, they obtain clean imdbId (e.g., tt0903747) and thetvdbId keys to unify their master data.
📥 Input Parameters
Provide title search queries and choose whether to enrich with episode lists or cast data. Running with defaults immediately executes a fast demonstration run.
| Field | Type | Description | Default | Prefill |
|---|---|---|---|---|
queries | Array | TV show search terms, one per line (e.g. breaking bad, the office, stranger things). | [] | ["breaking bad", "the office", "stranger things"] |
includeEpisodes | Boolean | Fetch episode count, season count, and latest episode details. | false | false |
includeCast | Boolean | Fetch main cast member names and character attributions. | false | false |
maxItemsPerQuery | Integer | Maximum matching shows to retain per query. Set to 0 for unlimited matches. | 0 | 50 |
maxConcurrency | Integer | Parallel search workers to dispatch simultaneously. | 5 | 5 |
proxyConfiguration | Object | Apify Proxy configuration for high-volume batch runs. | { "useApifyProxy": true } | { "useApifyProxy": true } |
Example Input Configuration
{"queries": ["breaking bad","the wire","succession","stranger things","the bear"],"includeEpisodes": true,"includeCast": true,"maxItemsPerQuery": 20,"maxConcurrency": 5,"proxyConfiguration": { "useApifyProxy": true }}
📤 Output Dataset & Field Specification
Each dataset item represents a unique television show. When episode or cast enrichment options are disabled, their respective fields are safely exported as clean empty strings.
Real Output Sample
{"query": "breaking bad","showId": "169","name": "Breaking Bad","type": "Scripted","language": "English","genres": "Drama; Crime; Thriller","status": "Ended","runtime": "60","premiered": "2008-01-20","ended": "2013-09-29","rating": "9.2","weight": "100","network": "AMC","networkCountry": "United States","scheduleDays": "Sunday","scheduleTime": "22:00","officialSite": "http://www.amc.com/shows/breaking-bad","imdbId": "tt0903747","thetvdbId": "81189","summary": "Breaking Bad follows protagonist Walter White, a chemistry teacher who lives in New Mexico with his wife and teenage son...","image": "https://static.tvmaze.com/uploads/images/original_untouched/501/1253519.jpg","url": "https://www.tvmaze.com/shows/169/breaking-bad","episodeCount": "62","seasonCount": "5","latestEpisode": "Felina (S5E16, 2013-09-29)","cast": "Bryan Cranston as Walter White; Aaron Paul as Jesse Pinkman; Anna Gunn as Skyler White","castCount": "11","scrapedAt": "2026-11-10T16:37:00.000Z"}
Field Breakdown & Data Coverage
📺 Show Identity & Catalog Data
| Field | Type | Description | Coverage |
|---|---|---|---|
showId | String | TVMaze internal unique show identifier. | 🟢 High (100%) |
name | String | Official show title. | 🟢 High (100%) |
type | String | Format type (Scripted, Animation, Reality, Documentary). | 🟢 High (100%) |
language | String | Primary audio language. | 🟢 High (98%) |
status | String | Production status (Running, Ended, To Be Determined). | 🟢 High (100%) |
url | String | Canonical URL to the TVMaze show page. | 🟢 High (100%) |
🏷️ Classification, Ratings & Scheduling
| Field | Type | Description | Coverage |
|---|---|---|---|
genres | String | Semicolon-separated list of genres. | 🟢 High (86%) |
rating | String | Community weighted score (e.g., 9.2). | 🟡 Conditional (48%) |
weight | String | Algorithmic popularity score (0–100). | 🟢 High (100%) |
runtime | String | Typical episode runtime in minutes. | 🟢 High (88%) |
premiered | String | Series premiere date (YYYY-MM-DD). | 🟢 High (97%) |
ended | String | Series finale date (YYYY-MM-DD) if ended. | 🟡 Conditional (70%) |
scheduleDays | String | Scheduled broadcast days (e.g. Sunday). | 🟡 Conditional (65%) |
scheduleTime | String | Scheduled broadcast time slot. | 🟡 Conditional (62%) |
📡 Network, Streamer & Links
| Field | Type | Description | Coverage |
|---|---|---|---|
network | String | Broadcast network or streaming channel. | 🟢 High (99%) |
networkCountry | String | Country of origin for linear networks. | 🟢 High (84%) |
officialSite | String | Official show or studio URL. | 🟡 Conditional (68%) |
imdbId | String | Canonical IMDb identifier (e.g., tt0903747). | 🟢 High (76%) |
thetvdbId | String | Canonical TheTVDB numeric identifier. | 🟢 High (86%) |
summary | String | Plain-text synopsis (HTML tags stripped). | 🟢 High (97%) |
image | String | High-resolution poster image URL. | 🟢 High (95%) |
🎬 Enriched Episodes & Cast (Optional)
| Field | Type | Description | Coverage |
|---|---|---|---|
episodeCount | String | Total number of released episodes. | 🟡 When Enabled (100%) |
seasonCount | String | Total count of seasons. | 🟡 When Enabled (100%) |
latestEpisode | String | Latest episode title, season, and airdate. | 🟡 When Enabled (98%) |
cast | String | Primary cast listing (Actor as Character). | 🟡 When Enabled (92%) |
castCount | String | Total number of credited main cast members. | 🟡 When Enabled (100%) |
scrapedAt | String | ISO 8601 timestamp of data extraction. | 🟢 High (100%) |
🔁 Pagination, Scale & Multi-Query Fan-Out
The TVMaze Scraper is built for high-throughput batch extraction:
- 1,000+ Shows via Query Fan-Out: Supply a comprehensive list of titles or keywords (e.g. 50–100 terms). Each search query returns matching titles, which are merged and deduplicated on
showId. - Zero Hard Caps: Setting
maxItemsPerQuery: 0removes artificial ceilings, ensuring every matching title returned for your query is captured. - Fast Prefill Performance: Standard prefill runs finish in under 15 seconds, allowing quick smoke testing without consuming unnecessary compute units.
- Polite Concurrency: Queries are dispatched with controlled parallelism and exponential backoff to handle TVMaze rate limits reliably.
💻 Integration & API Usage
Integrate TV metadata directly into your Python, JavaScript, or workflow automation stack.
Python SDK Example
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run_input = {"queries": ["breaking bad", "better call saul"],"includeEpisodes": True,"includeCast": True,"maxItemsPerQuery": 10,}run = client.actor("haketa/tvmaze-scraper").call(run_input=run_input)for show in client.dataset(run["defaultDatasetId"]).iterate_items():print(f"{show['name']} ({show['premiered']}) - Rating: {show['rating']} - Episodes: {show['episodeCount']}")
Node.js SDK Example
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('haketa/tvmaze-scraper').call({queries: ['succession', 'the wire'],includeEpisodes: true,maxItemsPerQuery: 15,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(`Scraped ${items.length} shows:`, items);
cURL API Trigger
curl --request POST \--url "https://api.apify.com/v2/acts/haketa~tvmaze-scraper/runs?token=YOUR_APIFY_TOKEN" \--header "Content-Type: application/json" \--data '{"queries": ["stranger things", "fargo"],"includeEpisodes": false}'
🛠️ Troubleshooting & Common Edge Cases
| Issue / Symptom | Probable Cause | Recommended Resolution |
|---|---|---|
| Query returns 0 matches | Title misspelled or obscure foreign title | Check exact title spelling or search by primary keyword (e.g. wire instead of the wire). |
Empty imdbId or thetvdbId | Obscure, student, or unindexed television release | External IDs are present for ~80% of titles. Filter your dataset for records where imdbId is populated before joining with IMDb datasets. |
Missing scheduleTime or scheduleDays | Streaming-only release without linear schedule | Direct-to-streaming titles (Netflix, Prime, etc.) do not have weekly timeslots. This is expected behavior. |
| Rate-limiting (HTTP 429) | High concurrency on single IP | The scraper includes built-in retries and backoff. Keep proxyConfiguration enabled to automatically rotate IPs. |
Empty cast or episodeCount | Enrichment flags were left disabled | Ensure includeEpisodes or includeCast is set to true in your run input if you require episode or cast metrics. |
🔬 Data Processing & Analysis Examples
Load TVMaze Dataset into Pandas & Filter Top Rated Shows
import pandas as pd# Load dataset exported from TVMaze Scraperdf = pd.read_csv("tvmaze_shows.csv")# Filter for rated scripted series with high popularitytop_shows = df[(df["type"] == "Scripted") &(df["rating"].notna()) &(df["rating"].astype(float) >= 8.5)].sort_values(by="rating", ascending=False)print(top_shows[["name", "premiered", "rating", "network", "genres"]].head(10))
Quick CLI Extraction with jq
# Extract all show names and corresponding IMDb IDscat dataset.json | jq -r '.[] | select(.imdbId != "") | "\(.name): https://www.imdb.com/title/\(.imdbId)/"'# Count shows by broadcast network / streaming platformcat dataset.json | jq -r '.[].network' | sort | uniq -c | sort -nr
💡 Best Practices & Pro Tips
- 🔍 Use Broad Search Terms for Discovery: Searching broad terms like
star,detective,war, orlovesurfaces dozens of related series across eras. - 🔗 Join with IMDb Effortlessly: Export
imdbIdalongside your title data to fetch user reviews, box office stats, or awards data from IMDb databases. - ⚡ Optimize Execution Speed: Leave
includeEpisodesandincludeCastdisabled if you only need high-level show metadata, ratings, and posters. This saves additional HTTP calls per show. - 📊 Sort by Algorithmic Weight: When displaying results to users, sort by the
weightcolumn (0–100) to place trending, well-known series at the top of the list.
❓ Frequently Asked Questions
Do I need a TVMaze account or API key?
No. TVMaze provides open, public access to show data. The scraper operates keyless without requiring personal credentials.
How many shows can I scrape in one run?
You can scrape thousands of titles by providing a comprehensive list of show titles or keywords in the queries input. Overlapping results are automatically deduplicated.
Why is rating empty for some titles?
TVMaze only publishes average rating figures when a title has received a sufficient threshold of community votes. Niche, obscure, or newly announced titles may not have a rating yet.
Does this actor scrape streaming exclusives?
Yes. Shows premiering on Netflix, Disney+, Prime Video, Apple TV+, and other streaming services are fully covered and mapped to the network property.
Can I export show posters?
Yes. The image property provides direct URLs to high-resolution poster images hosted on TVMaze's content delivery network.
How does TVMaze handle shows airing on multiple platforms?
TVMaze assigns the primary commissioning network or regional broadcaster to network. If a series is primarily distributed via streaming, the streaming service is prioritized.
Can I run this actor on a schedule?
Yes. In the Apify Console, configure an automated schedule (e.g. daily or weekly) to track new seasons, renewed statuses, or episode air dates continuously.
🔗 Complementary Media & Intelligence Scrapers
- Substack Scraper — Extract newsletters, posts, and creator profiles.
- Article Content Extractor — Clean text, markdown, and article metadata.
- RSS Feed Reader — Parse RSS, Atom, and podcast feeds to JSON.
- Academic Paper Resolver — Resolve DOIs and arXiv IDs to academic citations.
📋 Changelog
- v1.2 (2026-11):
- 🚀 Unlocked 1,000+ Deep Scalability: Enabled
maxItemsPerQuery: 0for unlimited match retention and high-volume fan-out. - ⚡ Optimized Prefill Execution: Prefill run updated to fast, popular titles completing in <15 seconds.
- 🧼 Clean Output Schema Compliance: Strict string-typed output schema for seamless CSV, Excel, and API consumption.
- 🚀 Unlocked 1,000+ Deep Scalability: Enabled
- v1.1 (2026-08):
- Added optional deep episode summary extraction (
episodeCount,seasonCount,latestEpisode). - Added optional cast credits extraction with actor and character name mapping.
- Added optional deep episode summary extraction (
- v1.0 (2026-05):
- Initial release with multi-query TV show search, unified network/streaming mapping, and external IMDb/TheTVDB ID extraction.