# IMDb Videos API

IMDb titles with original title, type, year, end year and the IMDb URL. Search by keyword or pass title IDs.

**Pricing:** $0.003 per video

**Endpoint:** `POST /v1/data/imdb/videos/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `searchQueries` | array | No | One or more search queries. One request reads them all. |
| `titleIds` | array | No | One or more title ids. One request reads them all. |
| `type` | string | No | Type to use. |
| `yearFrom` | integer | No | Year From as a whole number. |
| `yearTo` | integer | No | Year To as a whole number. |
| `maxResults` | integer | No | How many videos to return in total. Defaults to 100; use 0 for all. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/imdb/videos/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/imdb/videos/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `imdbId` | Imdb ID | text |
| `title` | Title | text |
| `originalTitle` | Original Title | text |
| `imdbUrl` | Imdb URL | url |
| `type` | Type | text |
| `year` | Year | number |
| `endYear` | End Year | number |
| `releaseDate` | Release Date | date |
| `rating` | Rating | rating |
| `votes` | Votes | number |
| `runtimeMin` | Runtime Min | number |
| `genres` | Genres | array |
| `plot` | Plot | text |
| `certificate` | Certificate | text |
| `metascore` | Metascore | number |
| `metascoreReviews` | Metascore Reviews | number |
| `topRank` | Top Rank | number |
| `countries` | Countries | array |
| `languages` | Languages | array |
| `isSeries` | Is Series | boolean |
| `isEpisode` | Is Episode | boolean |
| `seasons` | Seasons | number |
| `totalEpisodes` | Total Episodes | number |
| `isOngoing` | Is Ongoing | boolean |
| `budget` | Budget | number |
| `budgetCurrency` | Budget Currency | text |
| `grossWorldwide` | Gross Worldwide | number |
| `grossWorldwideCurrency` | Gross Worldwide Currency | text |
| `openingWeekendGross` | Opening Weekend Gross | number |
| `openingWeekendCurrency` | Opening Weekend Currency | text |
| `openingWeekendEndDate` | Opening Weekend End Date | date |
| `openingWeekendTheaters` | Opening Weekend Theaters | number |
| `trailerUrl` | Trailer URL | url |
| `trailerDurationS` | Trailer Duration S | number |
| `image` | Image | image |
| `totalCast` | Total Cast | number |
| `directors` | Directors | object_array |
| `creators` | Creators | object_array |
| `writers` | Writers | object_array |
| `stars` | Stars | object_array |
| `cast` | Cast | object_array |
| `similarTitles` | Similar Titles | object_array |
