API Directory › 🎬 Movies, TV & Music › OMDb API
API KeyHTTPSCORS

OMDb API

Movie and TV info by title or IMDb ID — plots, ratings, posters.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open OMDb API docs ↗

What it does

The OMDb API returns movie and TV metadata by title or IMDb ID: year, rating, runtime, genre, director, cast, plot, poster URL and ratings from IMDb, Rotten Tomatoes and Metacritic. It also does keyword search.

Base URL

https://www.omdbapi.com

Authentication

Request a free API key by email and pass it as ?apikey=YOUR_KEY. Everything is a single GET against the root URL with query parameters.

Code examples

curl
curl -s "https://www.omdbapi.com/?apikey=$OMDB_KEY&t=The+Matrix&y=1999"
curl -s "https://www.omdbapi.com/?apikey=$OMDB_KEY&i=tt0133093&plot=full"
curl -s "https://www.omdbapi.com/?apikey=$OMDB_KEY&s=matrix&type=movie"
Python
import requests

r = requests.get("https://www.omdbapi.com/",
    params={"apikey": KEY, "t": "Inception"}, timeout=10)
d = r.json()
if d.get("Response") == "True":
    print(d["Year"], d["imdbRating"], d["Runtime"])
else:
    print("not found:", d.get("Error"))

Rate limits & quotas

The free key allows 1,000 requests/day. Over that you get {"Response":"False","Error":"Request limit reached!"}. A small donation upgrades to a higher daily cap and unlocks poster-image endpoints.

Key response fields

Title / Year / Rated / Runtime / GenreCore metadata
Director / Writer / Actors / PlotCredits and synopsis
Ratings[]Source + value from IMDb, Rotten Tomatoes, Metacritic
imdbID / imdbRating / imdbVotesIMDb identifiers and score
PosterURL of the poster image

Common errors

Response="False", "Invalid API key!"Key missing, wrong, or not yet activated (check the verification email).
Response="False", "Movie not found!"No exact title match — try s= search or add y=.
Response="False", "Request limit reached!"Daily 1,000-call cap hit.

When to use it (and alternatives)

Best when you have a title or IMDb ID and want a quick rating/plot/poster, especially the cross-site Ratings array. For search, images, trailers and TV depth, TMDB is far richer; for watch tracking see Trakt.

FAQ

How do I get an OMDb API key?

Fill in the form on omdbapi.com; the key arrives by email with an activation link you must click. Until you activate it, every call returns ‘Invalid API key’.

Why is the HTTP status 200 on an error?

OMDb always returns 200 and signals failure in the body: check Response == "True" and read Error otherwise.

Can I search by year or type?

Yes — add y=1999 and type=movie|series|episode to either a title lookup (t=) or a search (s=).

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Movies, TV & Music APIs

← Back

More Movies, TV & Music APIs · All 196 APIs