OMDb API documentation: URL, parameters and fields
This OMDb API documentation covers a compatible endpoint: send GET https://api.amodb.dev/omdb/ with apikey and one of i (IMDb id), t (title) or s (search). Nine parameters and the OMDb field names work, and only r=json is served. Posters sit on img.amodb.dev. Change the base URL and the key, and an OMDb client keeps working.
How do I use the OMDb API?
Send a GET request to https:/ with apikey and one of i, t or s. i takes an IMDb id such as tt0137523, t takes a title and s searches, with 10 results per page. The reply is flat JSON with OMDb field names, and Response is True on success. The same key also works on the TMDB style paths at https:/.
This page documents an OMDb compatible endpoint that amodb hosts, not the OMDb service itself. Parameters and fields follow OMDb, so a client written for OMDb needs a new base URL and a new key. Plans start at $5.19 a month, see amodb pricing. The comparison with the original service is on the OMDb API page.
GET https:/ returns one title as flat JSON with OMDb field names. Pass i for an IMDb id such as tt0137523, or t for a title. Auth is the apikey query parameter. The reply has Response set to True on success and False on failure.
The sample loads Fight Club by IMDb id and stops with the OMDb error text when Response is False.
curl -sf "https://api.amodb.dev/omdb/?i=tt0137523&plot=short&apikey=$AMODB_KEY"const params = new URLSearchParams({ i: 'tt0137523', plot: 'short', apikey: process.env.AMODB_KEY });
const res = await fetch(`https://api.amodb.dev/omdb/?${params}`);
if (!res.ok) throw new Error(`amodb returned ${res.status}`);
const data = await res.json();
if (data.Response === 'False') throw new Error(data.Error);
console.log(data.Title, data.Year, data.imdbRating);import os
import requests
r = requests.get(
"https://api.amodb.dev/omdb/",
params={"i": "tt0137523", "plot": "short", "apikey": os.environ["AMODB_KEY"]},
timeout=10,
)
r.raise_for_status()
data = r.json()
if data["Response"] == "False":
raise SystemExit(data["Error"])
print(data["Title"], data["Year"], data["imdbRating"])<?php
$query = http_build_query(['i' => 'tt0137523', 'plot' => 'short', 'apikey' => getenv('AMODB_KEY')]);
$ch = curl_init('https://api.amodb.dev/omdb/?' . $query);
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 10]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
throw new RuntimeException("amodb returned $status");
}
$data = json_decode($body, true);
if ($data['Response'] === 'False') {
throw new RuntimeException($data['Error']);
}
echo $data['Title'], ' ', $data['Year'], ' ', $data['imdbRating'], PHP_EOL;package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"time"
)
type Title struct {
Title string `json:"Title"`
Year string `json:"Year"`
ImdbRating string `json:"imdbRating"`
Response string `json:"Response"`
Error string `json:"Error"`
}
func main() {
q := url.Values{"i": {"tt0137523"}, "plot": {"short"}, "apikey": {os.Getenv("AMODB_KEY")}}
client := &http.Client{Timeout: 10 * time.Second}
res, err := client.Get("https://api.amodb.dev/omdb/?" + q.Encode())
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
panic(res.Status)
}
var t Title
if err := json.NewDecoder(res.Body).Decode(&t); err != nil {
panic(err)
}
if t.Response == "False" {
panic(t.Error)
}
fmt.Println(t.Title, t.Year, t.ImdbRating)
}Parameters
apikeyqueryrequiredYour amodb key.iqueryone ofi,t,sIMDb id of the title:ttplus 7 to 9 digits, for examplett0137523.tqueryone ofi,t,sTitle to look up, returns the best match.squeryone ofi,t,sSearch text of at least 3 letters, returns a list.typequerymovieorseries.episodefinds nothing.yqueryRelease year.plotqueryshortorfull. Defaultshort.pagequeryPage of search results, 1 to 100. Used withs.rqueryjsononly. Any other value returns HTTP 400.
The Season, Episode, callback and v parameters from the original OMDb API are not supported and are ignored.
Response fields
| Field | Notes |
|---|---|
Title, Year, Rated, Released, Runtime | Text. Released reads like 15 Oct 1999. |
Genre, Director, Writer, Actors | Comma separated names. |
Plot, Language, Country, Awards | Text. |
Poster | Address on https:/. |
Ratings | Array of objects with Source and Value. |
Metascore, imdbRating, imdbVotes, imdbID | Text, including the vote count with commas. |
Type | movie or series. |
DVD, BoxOffice, Production, Website | Movies only. BoxOffice carries a value when known. DVD, Production and Website always read N/A. |
totalSeasons | Series only, as text. Series replies have no DVD, BoxOffice, Production or Website. |
Response | True or False, always a string. |
Fields follow OMDb, so an existing OMDb parser needs no change beyond the base URL.
Example response
{
"Title": "Fight Club",
"Year": "1999",
"Rated": "R",
"Released": "15 Oct 1999",
"Runtime": "139 min",
"Genre": "Crime, Drama, Thriller",
"Director": "David Fincher",
"Writer": "Chuck Palahniuk, Jim Uhls",
"Actors": "Brad Pitt, Edward Norton, Meat Loaf",
"Plot": "A nameless first-person narrator attends support groups in an attempt to subdue his emotional state and relieve his insomniac state.",
"Language": "English",
"Country": "United States, Germany",
"Awards": "Nominated for 1 Oscar. 12 wins & 38 nominations total",
"Poster": "https://img.amodb.dev/t/p/w300/qkrH7rjYKU4KOwwIl6wF6H3ISvm.jpg",
"Ratings": [
{ "Source": "Internet Movie Database", "Value": "8.8/10" },
{ "Source": "Rotten Tomatoes", "Value": "81%" },
{ "Source": "Metacritic", "Value": "67/100" }
],
"Metascore": "67",
"imdbRating": "8.8",
"imdbVotes": "2,669,989",
"imdbID": "tt0137523",
"Type": "movie",
"DVD": "N/A",
"BoxOffice": "$38,003,039",
"Production": "N/A",
"Website": "N/A",
"Response": "True"
}For a series such as The Wire (i=tt0306414), the reply ends with "Type": "series", "totalSeasons": "5" and "Response": "True".
What does an OMDb API URL look like?
The URL is the base https:/ plus a query string. Replace KEY with your key. Spaces in a title become + or %20.
| Goal | URL |
|---|---|
| Title by IMDb id | https:/ |
| Title by name | https:/ |
| Name and release year | https:/ |
| Series by name | https:/ |
| Full plot | https:/ |
| Search, page 2 | https:/ |
A request without i, t or s answers Something went wrong. with HTTP 200. To get a TMDB id from the same IMDb id, use search by IMDb id.
How do I search with s?
Send s to get a list instead of one title. Each page holds 10 items, and totalResults gives the full count as a string. Request page=2 for items 11 to 20, and keep going until you have read totalResults items. A page past the last one answers Movie not found!.
curl -sf "https://api.amodb.dev/omdb/?s=Matrix&type=movie&page=1&apikey=$AMODB_KEY"| Field | Notes |
|---|---|
Search | Array of up to 10 items with Title, Year, imdbID, Type, Poster. |
totalResults | Count of all matches, as a string. |
Response | True or False. |
{
"Search": [
{
"Title": "The Matrix",
"Year": "1999",
"imdbID": "tt0133093",
"Type": "movie",
"Poster": "https://img.amodb.dev/t/p/w300/kEDbym5htJgDQNenjUtSJxAHysB.jpg"
},
{
"Title": "The Matrix Reloaded",
"Year": "2003",
"imdbID": "tt0234215",
"Type": "movie",
"Poster": "https://img.amodb.dev/t/p/w300/d0xVNNxIYxId2qHkqpgE39soOvD.jpg"
}
],
"totalResults": "20",
"Response": "True"
}The list is cut to 2 of 10 items.
How do I read the Ratings array?
Ratings holds one object per source, each with Source and Value, and the Value is text such as 8.8/10. The sources are Internet Movie Database, Rotten Tomatoes and Metacritic, and only the ones known for the title are listed. The flat fields imdbRating, imdbVotes and Metascore repeat some of the same data. Split Value on the slash if you need a number. For typed numbers and a Kinopoisk and TMDB score, use the movie ratings API instead.
Errors
Lookup failures return {"Response":"False",. Most of them come with HTTP 200, so read Error and branch on the text, not on the HTTP status alone.
Error text | HTTP | When |
|---|---|---|
Movie not found! | 200 | No title matches t, the i value is valid but unknown, or a search page is past the last one. |
Incorrect IMDb ID. | 200 | The i value is not shaped like an IMDb id. |
Too many results. | 200 | The search text is shorter than 3 letters or matches too many titles. Make the text longer or add type or y. |
Something went wrong. | 200 | None of i, t and s was sent. |
Only r= | 400 | r is set to anything but json. |
No API key provided. or Invalid API key! | 401 | The apikey is missing or wrong. |
Request limit reached! | 429 | Over your requests per minute. Wait for the Retry-After seconds. |
An ended plan answers HTTP 402. See error codes and rate limits.
How do I migrate an OMDb client?
The migration is two edits: the base URL and the key. Nothing else in the request changes.
// Before: the base URL and key of your current OMDb setup.
// After:
const OMDB_BASE = 'https://api.amodb.dev/omdb/';
const OMDB_KEY = process.env.AMODB_KEY;Remove r=xml if you send it. A client that reads episodes, Season or callback needs another source for those parts. The rate limit is per account, so OMDb style calls and TMDB style calls share one budget of 20, 40 or 120 requests per minute, whichever key they use.
Before you switch, check this list of what the endpoint does with the parts of the OMDb API that people use.
| Feature | On this endpoint |
|---|---|
i, t, s, type, y, plot, page | Supported, same names and values. type is movie or series. |
r=json | Supported, and the only format. |
r=xml | HTTP 400 with Only r= |
Season, Episode | Ignored. A series reply has totalSeasons and no episode data. |
callback, v | Ignored. |
type=episode | Finds nothing. |
Poster | Address on img.amodb.dev at the w300 size, no key needed. |
| Number fields | Text, as in OMDb. N/A means unknown. |
| Rate | 20, 40 or 120 requests per minute per account, shared with the TMDB style paths. |
Personal or commercial project?
The OMDb request is the same everywhere. The terms are not, so pick by what your project earns.
| OMDb | amodb OMDb endpoint | |
|---|---|---|
| Price | Free key with 1,000 requests a day. Patreon tiers: $1 a month (100,000 a day), $5 (500,000 a day), $10 (no daily limit, Poster API), $25 sponsor. | $5.19, $6.19 or $7.19 a month, as low as $3.11 on a 24 month prepay. No daily cap. |
| Commercial use | The terms say personal, non-commercial use. The content is CC BY-NC 4.0 and there is no public commercial license. | No extra charge; the terms do not prohibit it. No amodb logo; credit JustWatch and licensed texts and images as marked. |
| Ratings array | IMDb, Metascore and Rotten Tomatoes, with N/A on some titles. | Same field names. Add the movie ratings API for Kinopoisk and TMDB scores. |
The OMDb prices and terms were read on 2026-10-19 from the OMDb Patreon page and the OMDb legal page. For a hobby project the free OMDb key can be enough. For an app that earns money, read the terms first, then compare with amodb pricing and the IMDb API options.
Practical notes
- Treat every value as text. Convert
Year,imdbRatingandtotalResultsyourself, and treatN/Aas missing. - Use
plot=fullonly when you show the long plot.shortkeeps responses smaller. - Lookups by
iortare cached longer than searches withs, so a repeated lookup returns the stored answer. - To get a TMDB id from an IMDb id, call search by IMDb id.
- Posters are at
w300. For other sizes, build the address from the TMDB styleposter_pathand the TMDB image URL size list. - Keep the key on a server. An
apikeyin a page URL is visible to every visitor. - Need the key first? Read TMDB API key for the sign in steps. A key is 32 lowercase hex characters, and an account can hold up to 10 active keys.
- A Python script that calls amodb with
requestsis in the TMDB API in Python tutorial, and every endpoint is listed in the API reference.