Skip to main content

IMDb Unofficial API

CI Python versions License: MIT

Unofficial Python SDK for IMDb's internal GraphQL API. 56 typed endpoints for titles, names, credits, charts, reviews and media. No API key required.

What it does:

  • Sync client (ImdbClient) and async client (AsyncImdbClient)
  • Typed dataclass responses with full type hints
  • 55 CLI subcommands
  • Cursor pagination on search
  • Batch fetches (get_titles, get_names) in one request
  • Retries with exponential backoff
  • Optional in-memory cache
  • Custom exception hierarchy
  • One dependency: httpx

Install

pip install imdb-unofficial-api

Quick Start

from imdb_unofficial_api import ImdbClient

with ImdbClient() as c:
    t = c.get_title("tt1375666")
    print(f"{t.title} ({t.release_year}) — {t.rating.aggregate_rating}")

Async:

import asyncio
from imdb_unofficial_api import AsyncImdbClient

async def main():
    async with AsyncImdbClient() as c:
        t = await c.get_title("tt1375666")
        print(t.title)

asyncio.run(main())

CLI:

imdb get tt1375666
imdb search "Inception" --first 10
imdb top-rated-movies --first 10
imdb person nm0000138

Documentation

File Content
docs/endpoints.md All 56 endpoint methods with signatures and return types
docs/cli.md All 55 CLI subcommands and flags
docs/development.md Configuration, exceptions, pagination, architecture, models

Contact

For reverse engineering work: t.me/etrnkz

Metadata

Release files for imdb-unofficial-api 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imdb-unofficial-api 0.2.1
File Size Uploaded Provenance Actions
imdb_unofficial_api-0.2.1.tar.gz 32.6 kB Without provenance Details for imdb_unofficial_api-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imdb-unofficial-api 0.2.1
File Interpreter ABI Platform Actions
imdb_unofficial_api-0.2.1-py3-none-any.whl Python 3 none any Details for imdb_unofficial_api-0.2.1-py3-none-any.whl

Total release size: 65.6 kB

Release files / imdb_unofficial_api-0.2.1.tar.gz

Download URL imdb_unofficial_api-0.2.1.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c473605f06e2d198961e3ced1d696d0522e2b22b9ec16715f4d29b40c4320bab
BLAKE2b-256 checksum
How to use checksums
7b1238fd37955a1f6b320dbe4d84dc386d6218c6e399ffaa715c2e99152a211a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / imdb_unofficial_api-0.2.1-py3-none-any.whl

Download URL imdb_unofficial_api-0.2.1-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ab7e9df64c192145aebfdc9a467f6bf8f15679dedceff0373efa27197ce3b49
BLAKE2b-256 checksum
How to use checksums
1f98955c63cc51e8505531d5347f7e2ab31b4aadeb0f078f370454cb701d66b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for imdb-unofficial-api 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page