Internet Movie Database (IMDB)


This entry is part 1 of 9 in the series IMDB Data Files

The Internet Movie Database (IMDB.com) is a large website containing information related to films, television programs, home videos, video games, and streaming content online – including cast, production crew, and personal biographies, plot summaries, trivia, ratings, and fan, and critical reviews.

Download Part of the Database

If you work with data on a computer you may be interested to know that you can download parts of that database. Go to the IMDB Datasets webpage to get the link to the set of links you can use to download the data. Near the top of that page you can see the link as https://datasets.imdbws.com/. Here is a list of the files you can download to your own computer.

  1. name.basics.tsv.gz
  2. title.akas.tsv.gz
  3. title.basics.tsv.gz
  4. title.crew.tsv.gz
  5. title.episode.tsv.gz
  6. title.principals.tsv.gz
  7. title.ratings.tsv.gz

title.basics.tsv.gz

This one gets you started. It is an gz file that needs to be unzipped to a text file that has its elements separated with the Tab. Once its unzipped, with a program like 7-Zip, you get a file called data.tsv. TSV is an acronym for tab-separated values. I suggest re-naming the data.tsv file to name.basics.tsv. This file is very large with over 8 million rows! You cannot entirely open it with Notepad, Notepad++ or MS Excel. However, the Large Text Viewer app is able to open it and you can use Excel and load it into the Power Pivot Data Model. Here is a list of the columns in title.basics.

  1. tconst – this is the primary key
  2. titleType
  3. primaryTitle
  4. originalTitle
  5. isAdult
  6. startYear
  7. endYear
  8. runtimeMinutes – some of the data are blanks,
  9. genres

tconst is a string that uniquely identifies a moving picture, such as a movie. If you were to find the movie Snowden in the file you would find that the tconst is tt3774114, titleType is movie, primaryTitle is Snowden, originalTitle is Snowden, isAdult is 0, startYear is 2016, endYear is \N, runtimeMinutes is 134, and genre is Biography,Crime,Drama. The endYear is “\N”. In Excel’s Power Query we need to replace the “\N” with null.

title.ratings.tsv.gz

This file has 3 columns: tconst, averageRating, and numVotes. It has just over 1.2 million rows.

name.basics.tsv.gz

This file is about the people. It has over 11 million rows.

  1. nconst
  2. primaryName – the full name such as Fred Astaire
  3. birthYear – some may be “\N”
  4. deathYear – some may be “\N”
  5. primaryProfession- a csv list such as actress,soundtrack,producer
  6. knownForTitles – a csv list such as tt0050419,tt0053137,tt0072308,tt0031983

title.crew.tsv.gz

This contains the director and writer information for all the titles in IMDb. The columns include tconst, directors, and writers.

Understanding the Files

To understand the files and data of the IMDB database better, have a look at our series called Tiny IMDB.

Series NavigationIMDB and the Excel Data Model >>