# Themovedb Profile Scraper (`getdataforme/themovedb-profile-scraper`) Actor

Effortlessly scrape comprehensive TV show data from TMDB, including profiles, ratings, cast, episodes, and media counts. Built for reliability and scalability, it delivers structured JSON for easy analysis. Perfect for market research, content aggregation, and competitive intelligence....

- **URL**: https://apify.com/getdataforme/themovedb-profile-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Themovedb Profile Scraper

### Introduction
The Themovedb Profile Scraper is a powerful Apify Actor designed to extract comprehensive data from The Movie Database (TMDB) TV show profiles. It automates the collection of detailed information including show details, ratings, cast, episodes, and more, enabling efficient data gathering for research, analysis, and integration into various applications. This tool saves time and ensures reliable access to TMDB's rich media database without manual browsing.

### Features
- **Comprehensive Data Extraction**: Scrapes full TV show profiles including metadata, ratings, cast lists, episode counts, and social media links.
- **High Reliability**: Built on CheerioCrawler for robust web scraping with error handling to manage dynamic TMDB pages.
- **Structured Output**: Delivers clean, JSON-formatted data ready for analysis or export to CSV/Excel.
- **Scalable Performance**: Handles multiple URLs efficiently, ideal for batch processing large datasets.
- **Real-Time Data**: Captures up-to-date information like current seasons, ratings, and community discussions.
- **Easy Integration**: Outputs data compatible with databases, APIs, or data visualization tools.
- **Customizable Inputs**: Supports multiple start URLs for targeted scraping.

### Input Parameters

| Parameter | Type   | Required | Description | Example |
|-----------|--------|----------|-------------|---------|
| startUrls | array | Yes      | List of TMDB TV show URLs to scrape. Each URL should point to a specific TV show's page on themoviedb.org. | [{"url": "https://www.themoviedb.org/tv/549-law-order"}] |

### Example Usage

#### Input JSON
```json
{
  "startUrls": [
    {
      "url": "https://www.themoviedb.org/tv/549-law-order"
    }
  ]
}
````

#### Output JSON

```json
[
  {
    "tvShow": {
      "id": "549",
      "title": "Law & Order",
      "originalTitle": "Law & Order",
      "year": "1990",
      "url": "https://www.themoviedb.org/tv/549-law-order",
      "tagline": "Truth matters.",
      "overview": "In cases ripped from the headlines, police investigate serious and often deadly crimes, weighing the evidence and questioning the suspects until someone is taken into custody. The district attorney's office then builds a case to convict the perpetrator by proving the person guilty beyond a reasonable doubt. Working together, these expert teams navigate all sides of the complex criminal justice system to make New York a safer place.",
      "certification": "TV-14",
      "status": "Network",
      "type": "Original Language English",
      "language": "English",
      "premiered": "1990-09-13",
      "lastModified": "2026-02-10",
      "rating": {
        "tmdb": 73,
        "average": 7.3,
        "count": 669,
        "scale": 10
      },
      "totalEpisodes": 539,
      "creator": {
        "name": "Dick Wolf",
        "id": "117443",
        "role": "Creator"
      },
      "network": {
        "name": "NBC",
        "logo": "https://media.themoviedb.org/t/p/h30/cm111bsDVlYaC1foL0itvEI4yLG.png"
      },
      "country": "United States",
      "genres": [
        "Crime",
        "Drama"
      ],
      "keywords": [
        "new york city",
        "police",
        "lawyer",
        "homicide detective",
        "crime investigation",
        "criminal law"
      ],
      "social": {
        "facebook": "https://www.facebook.com/nbclawandorder",
        "twitter": "https://x.com/lawandordertv",
        "instagram": "https://instagram.com/nbclawandorder/",
        "homepage": "http://www.nbc.com/law-order"
      },
      "images": {
        "poster": {
          "small": "https://media.themoviedb.org/t/p/w300_and_h450_face/haJ9eHytVO3H3JooMJG1DiWwDNm.jpg",
          "large": "https://media.themoviedb.org/t/p/w600_and_h900_face/haJ9eHytVO3H3JooMJG1DiWwDNm.jpg"
        }
      },
      "currentSeason": {
        "number": 25,
        "year": "2025",
        "episodes": 16,
        "rating": 84,
        "overview": "Season 25 of Law & Order premiered on September 25, 2025.",
        "latestEpisode": {
          "number": 13,
          "airDate": "25x14, March  5, 2026"
        }
      },
      "cast": [
        {
          "name": "Sam Waterston",
          "character": "Jack McCoy",
          "characterCount": [
            "Jack McCoy"
          ],
          "episodes": 405,
          "id": "8975",
          "profile": "https://media.themoviedb.org/t/p/w138_and_h175_face/cSCy9Ng1QJSbEi440342bLKnq8W9.jpg"
        },
        {
          "name": "S. Epatha Merkerson",
          "character": "Anita Van Buren, Denise Winters",
          "characterCount": [
            "Anita Van Buren",
            "Denise Winters"
          ],
          "episodes": 391,
          "id": "3978",
          "profile": "https://media.themoviedb.org/t/p/w138_and_h175_face/pXCmHxrWzlv1kPZSxJXFM45QgOP.jpg"
        }
      ],
      "mediaCounts": {
        "backdrops": 115,
        "posters": 84,
        "logos": 16,
        "videos": {
          "total": 4,
          "trailers": 1,
          "clips": 7,
          "openingCredits": 4
        }
      },
      "featuredVideos": [
        {
          "id": "TzJm9vTCff8",
          "title": "Law & Order (1990-1991) Intro",
          "site": "YouTube",
          "thumbnail": "https://i.ytimg.com/vi/TzJm9vTCff8/hqdefault.jpg"
        }
      ],
      "community": {
        "discussions": {
          "total": 81,
          "recent": [
            {
              "title": "This show is so stupid",
              "replies": 1,
              "status": "Open",
              "lastActivity": "Sep 27, 2020 at 2:53 AM"
            }
          ]
        },
        "topContributors": [
          {
            "rank": 1,
            "username": "lineker",
            "edits": 274,
            "avatar": "https://media.themoviedb.org/t/p/w45_and_h45_face/m7WyGJRiOq88PFw7es7nAYz2Cxj.jpg"
          }
        ]
      },
      "metadata": {
        "scrapedAt": "2026-03-03",
        "dataCompleteness": "complete"
      },
      "_scraper": {
        "version": "1.0.0",
        "source": "TMDB",
        "timestamp": "2026-03-03T06:33:59.506Z",
        "url": "https://www.themoviedb.org/tv/549-law-order"
      }
    }
  }
]
```

### Use Cases

- **Market Research**: Analyze TV show trends, ratings, and audience engagement for media companies.
- **Competitive Intelligence**: Monitor competitor shows' performance, cast changes, and release schedules.
- **Content Aggregation**: Build databases of TV metadata for streaming platforms or recommendation engines.
- **Academic Research**: Study genre popularity, actor careers, or cultural impacts through historical data.
- **Business Automation**: Automate data feeds for analytics dashboards or marketing campaigns.
- **Media Monitoring**: Track social media links and community discussions for brand management.

### Installation and Usage

1. Search for "Themovedb Profile Scraper" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters (e.g., add start URLs).
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The output is an array of objects, each containing a "tvShow" key with detailed fields. Key sections include basic info (title, year, overview), ratings, cast list with profiles, media counts, social links, current season details, and metadata like scrape timestamp. Data is structured for easy parsing, with URLs and IDs for further API integration.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

Extract comprehensive TV show data from TMDB effortlessly. Features include full profile scraping, cast details, ratings, and media counts for reliable insights. Ideal for market research, content aggregation, and analytics. Start scraping today! (148 characters)

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.themoviedb.org/tv/549-law-order"
    }
  ]
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.themoviedb.org/tv/549-law-order"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/themovedb-profile-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.themoviedb.org/tv/549-law-order" }] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/themovedb-profile-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.themoviedb.org/tv/549-law-order"
    }
  ]
}' |
apify call getdataforme/themovedb-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/themovedb-profile-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Themovedb Profile Scraper",
        "description": "Effortlessly scrape comprehensive TV show data from TMDB, including profiles, ratings, cast, episodes, and media counts. Built for reliability and scalability, it delivers structured JSON for easy analysis. Perfect for market research, content aggregation, and competitive intelligence....",
        "version": "0.0",
        "x-build-id": "47DxBb6AgxXJckzZp"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/getdataforme~themovedb-profile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-getdataforme-themovedb-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/getdataforme~themovedb-profile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-getdataforme-themovedb-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/getdataforme~themovedb-profile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-getdataforme-themovedb-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "URLs to start with.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
