TVMaze Scraper — TV Shows, Episodes & Cast avatar

TVMaze Scraper — TV Shows, Episodes & Cast

Pricing

from $2.75 / 1,000 results

Go to Apify Store
TVMaze Scraper — TV Shows, Episodes & Cast

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.

Pricing

from $2.75 / 1,000 results

Rating

0.0

(0)

Developer

Haketa

Haketa

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Categories

Features

Limited permissions

Share

TVMaze Scraper — TV Shows, Episodes, Cast & Ratings

Apify Actor TVMaze API Data Format Scale Pricing

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

FeatureSpecification
Target DatabaseTVMaze (tvmaze.com) — Comprehensive Television & Streaming Catalog
Search CapabilitiesMulti-query batch show search, franchise lookup, titles exploration
Streaming & Network CoverageBroadcast networks (AMC, HBO, BBC) + Streamers (Netflix, Disney+, Apple TV+, Prime)
Enrichment OptionsOptional episode lists (counts, seasons, latest), full cast & character credits
External IdentifiersDirect IMDb ID (imdbId) and TheTVDB ID (thetvdbId) for cross-dataset joins
Scale & PaginationDeep multi-query fan-out (1,000+ shows across queries, 0 = unlimited)
Speed & ConcurrencyConfigurable parallel queries (default 5, up to 20 workers)
Output FormatsJSON, CSV, XML, Excel (XLSX), HTML Table, Apify Dataset API
IntegrationsPython 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 imdbId and thetvdbId strings 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 network attribute.
  • ✅ Optional Deep Episode Summaries — toggle includeEpisodes to populate total episode counts, season totals, and formatted latest episode strings.
  • ✅ Optional Cast Extraction — toggle includeCast to extract main cast members with actor names and character mappings.
  • ✅ Universal Foreign Keys — outputs standardized imdbId and thetvdbId values 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: 0 keeps 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.

FieldTypeDescriptionDefaultPrefill
queriesArrayTV show search terms, one per line (e.g. breaking bad, the office, stranger things).[]["breaking bad", "the office", "stranger things"]
includeEpisodesBooleanFetch episode count, season count, and latest episode details.falsefalse
includeCastBooleanFetch main cast member names and character attributions.falsefalse
maxItemsPerQueryIntegerMaximum matching shows to retain per query. Set to 0 for unlimited matches.050
maxConcurrencyIntegerParallel search workers to dispatch simultaneously.55
proxyConfigurationObjectApify 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
FieldTypeDescriptionCoverage
showIdStringTVMaze internal unique show identifier.🟢 High (100%)
nameStringOfficial show title.🟢 High (100%)
typeStringFormat type (Scripted, Animation, Reality, Documentary).🟢 High (100%)
languageStringPrimary audio language.🟢 High (98%)
statusStringProduction status (Running, Ended, To Be Determined).🟢 High (100%)
urlStringCanonical URL to the TVMaze show page.🟢 High (100%)
🏷️ Classification, Ratings & Scheduling
FieldTypeDescriptionCoverage
genresStringSemicolon-separated list of genres.🟢 High (86%)
ratingStringCommunity weighted score (e.g., 9.2).🟡 Conditional (48%)
weightStringAlgorithmic popularity score (0–100).🟢 High (100%)
runtimeStringTypical episode runtime in minutes.🟢 High (88%)
premieredStringSeries premiere date (YYYY-MM-DD).🟢 High (97%)
endedStringSeries finale date (YYYY-MM-DD) if ended.🟡 Conditional (70%)
scheduleDaysStringScheduled broadcast days (e.g. Sunday).🟡 Conditional (65%)
scheduleTimeStringScheduled broadcast time slot.🟡 Conditional (62%)
FieldTypeDescriptionCoverage
networkStringBroadcast network or streaming channel.🟢 High (99%)
networkCountryStringCountry of origin for linear networks.🟢 High (84%)
officialSiteStringOfficial show or studio URL.🟡 Conditional (68%)
imdbIdStringCanonical IMDb identifier (e.g., tt0903747).🟢 High (76%)
thetvdbIdStringCanonical TheTVDB numeric identifier.🟢 High (86%)
summaryStringPlain-text synopsis (HTML tags stripped).🟢 High (97%)
imageStringHigh-resolution poster image URL.🟢 High (95%)
🎬 Enriched Episodes & Cast (Optional)
FieldTypeDescriptionCoverage
episodeCountStringTotal number of released episodes.🟡 When Enabled (100%)
seasonCountStringTotal count of seasons.🟡 When Enabled (100%)
latestEpisodeStringLatest episode title, season, and airdate.🟡 When Enabled (98%)
castStringPrimary cast listing (Actor as Character).🟡 When Enabled (92%)
castCountStringTotal number of credited main cast members.🟡 When Enabled (100%)
scrapedAtStringISO 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: 0 removes 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 ApifyClient
client = 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 / SymptomProbable CauseRecommended Resolution
Query returns 0 matchesTitle misspelled or obscure foreign titleCheck exact title spelling or search by primary keyword (e.g. wire instead of the wire).
Empty imdbId or thetvdbIdObscure, student, or unindexed television releaseExternal IDs are present for ~80% of titles. Filter your dataset for records where imdbId is populated before joining with IMDb datasets.
Missing scheduleTime or scheduleDaysStreaming-only release without linear scheduleDirect-to-streaming titles (Netflix, Prime, etc.) do not have weekly timeslots. This is expected behavior.
Rate-limiting (HTTP 429)High concurrency on single IPThe scraper includes built-in retries and backoff. Keep proxyConfiguration enabled to automatically rotate IPs.
Empty cast or episodeCountEnrichment flags were left disabledEnsure 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 Scraper
df = pd.read_csv("tvmaze_shows.csv")
# Filter for rated scripted series with high popularity
top_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 IDs
cat dataset.json | jq -r '.[] | select(.imdbId != "") | "\(.name): https://www.imdb.com/title/\(.imdbId)/"'
# Count shows by broadcast network / streaming platform
cat 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, or love surfaces dozens of related series across eras.
  • 🔗 Join with IMDb Effortlessly: Export imdbId alongside your title data to fetch user reviews, box office stats, or awards data from IMDb databases.
  • ⚡ Optimize Execution Speed: Leave includeEpisodes and includeCast disabled 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 weight column (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


📋 Changelog

  • v1.2 (2026-11):
    • 🚀 Unlocked 1,000+ Deep Scalability: Enabled maxItemsPerQuery: 0 for 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.
  • v1.1 (2026-08):
    • Added optional deep episode summary extraction (episodeCount, seasonCount, latestEpisode).
    • Added optional cast credits extraction with actor and character name mapping.
  • v1.0 (2026-05):
    • Initial release with multi-query TV show search, unified network/streaming mapping, and external IMDb/TheTVDB ID extraction.