A Python service for querying IMDb data
Project description
imdbio
Your personal gateway to IMDb data — no API keys required.
Features
- Search movies, series, and people by name or title
- Detailed movie info: cast, crew, ratings, box office, company credits
- TV series support with seasons and episodes
- Person details with biography, filmography and images
- Localized results in multiple languages (global or per-request)
- User reviews, trivia, parental guide, awards info
- Typed Pydantic models
- Built-in caching
Installation
pip install imdbio
Quick Start
from imdbio import search_title, get_movie, get_name
# Search for a title
results = search_title("The Matrix")
for movie in results.titles:
print(f"{movie.title} ({movie.year}) - {movie.imdb_id}")
# Get movie details
movie = get_movie("0133093")
print(movie.title, movie.year, movie.rating, movie.kind)
# Get person details
person = get_name("nm0000206")
print(person.name, person.birth_date)
# Series example
from imdbio import get_season_episodes
episodes = get_season_episodes("tt1520211", season=1) # Walking Dead
for ep in episodes[:3]:
print(ep.title, ep.rating)
📝 More examples in the examples folder.
Using a proxy
Route all imdbio requests — including the AWS WAF challenge solver — through
a proxy with set_proxy. This is handy for rotating IPs or getting around an IP
that IMDb's WAF has started blocking (HTTP 202).
from imdbio import set_proxy, get_movie
# scheme://user:pass@host:port (credentials optional)
set_proxy("http://user:pass@proxy.example.com:8080")
movie = get_movie("tt0133093") # fetched through the proxy
# Disable proxying again
set_proxy(None)
Supported schemes: http, https, socks4, socks5, socks5h
(socks proxies require the socks extras of niquests / curl_cffi). Invalid proxy
URLs raise ValueError immediately. See examples/example_proxy.py.
Why choose imdbio?
- Clean structured data via Pydantic models
- No API keys or external dependencies
- Powered by niquests and lxml
- Ideal for scripts and data analysis
Disclaimer
Not affiliated with IMDb Inc. See DISCLAIMER.
License
MIT — see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imdbio-0.0.3.tar.gz.
File metadata
- Download URL: imdbio-0.0.3.tar.gz
- Upload date:
- Size: 145.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ae02b4486eb894b70ce5a347be5a252af16578563747c2dfe6705a17da1c1c
|
|
| MD5 |
1219154634eb6bbbde15e1ece03023d1
|
|
| BLAKE2b-256 |
7d155030037493404ab397465b2d98a39cb0ee43fb98a9c6488b362cd3830022
|
File details
Details for the file imdbio-0.0.3-py3-none-any.whl.
File metadata
- Download URL: imdbio-0.0.3-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9b446b78c9455dd0317d09f2d6af3525a299c33f77d7583f40d97d7465a85e4
|
|
| MD5 |
04196e4d9f2b1c2783f95aff8448a313
|
|
| BLAKE2b-256 |
70365c13e1b1de0391529be686e92149fa5fac86dae2269d59e141d7461d51bb
|