This project is a simple IMDb API wrapper built with Express.js, Axios, and Cheerio. It allows users to retrieve movie or TV show information by either IMDb ID or IMDb URL.
- Get by ID: Endpoint to fetch movie or TV show details by IMDb ID.
- Get by URL: Endpoint to fetch movie or TV show details by IMDb URL.
Before running this project, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/sribalan98/imbd-scrapper.git
- Install dependencies:
npm install
- Start the server:
npm start
Send a POST request to /getByID with the IMDb ID in the request body.
- Example:
POST /getByID
Content-Type: application/json
{
"id": "tt1234567"
}
Send a POST request to /getByURL with the IMDb URL in the request body.
- Example:
POST /getByURL
Content-Type: application/json
{
"url": "https://www.imdb.com/title/tt1234567/"
}
- Express
- Axios
- Cheerio
- main.js -> imdb.min.js