This project provides a "quick and dirty" API service to retrieve movie information from IMDB. It uses the imdbinfo package to fetch movie details based on the IMDB ID or title and is powered by FastAPI.
-
Clone the repository and navigate to the project folder.
-
Build and run the service with:
docker compose up --build
-
The API will be available at
http://127.0.0.1:5000. -
The API exposes the following endpoints:
/search?q=<searchstring>/movie/<imdb_id>- example: http://127.0.0.1:5000/movie/0234215
/name/<imdb_id>- example: http://127.0.0.1:5000/name/nm0000206
/series/<imdb_id>/season/<season>/series/<imdb_id>/episodes/akas/<imdb_id>- example: http://127.0.1:5000/akas/tt0944947`
/trivia/<imdb_id>/reviews/<imdb_id>/filmography/<imdb_id>- example: http://127.0.0.1:5000/filmography/nm0000206
- returns the complete filmography of a person grouped by role
/apidoc- auto-generated Swagger/OpenAPI documentation for the service
/- health check endpoint
If you prefer to run the application without Docker, you can do so by following these steps:
-
Ensure you have Python 3.8+ installed.
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python api.py
-
The API will be available at
http://127.0.0.1:5000.
- Python 3.8 or higher
imdbinfopackage for fetching movie details- FastAPI for creating the API service and automatic API documentation
- Uvicorn for running the ASGI server
FOr details on how to use the imdbinfo package, please refer to the imdbinfo Github repository.
Copyright (C) 2025 T.Veronesi
This code is released under the GPL license, version 2 or later.
Read the included LICENSE.txt file for details.
This project and its authors are not affiliated in any way to Internet Movie Database Inc.; see the DISCLAIMER.txt file for details about data licenses.