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.

Updated View as Markdown

How do I use the OMDb API?

Send a GET request to https://api.amodb.dev/omdb/ 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://api.amodb.dev/3.

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://api.amodb.dev/omdb/ 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.

bashjspyphpgo
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

  • apikeyqueryrequired
    Your amodb key.
  • iqueryone of i, t, s
    IMDb id of the title: tt plus 7 to 9 digits, for example tt0137523.
  • tqueryone of i, t, s
    Title to look up, returns the best match.
  • squeryone of i, t, s
    Search text of at least 3 letters, returns a list.
  • typequery
    movie or series. episode finds nothing.
  • yquery
    Release year.
  • plotquery
    short or full. Default short.
  • pagequery
    Page of search results, 1 to 100. Used with s.
  • rquery
    json only. 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

FieldNotes
Title, Year, Rated, Released, RuntimeText. Released reads like 15 Oct 1999.
Genre, Director, Writer, ActorsComma separated names.
Plot, Language, Country, AwardsText.
PosterAddress on https://img.amodb.dev/t/p/w300/.
RatingsArray of objects with Source and Value.
Metascore, imdbRating, imdbVotes, imdbIDText, including the vote count with commas.
Typemovie or series.
DVD, BoxOffice, Production, WebsiteMovies only. BoxOffice carries a value when known. DVD, Production and Website always read N/A.
totalSeasonsSeries only, as text. Series replies have no DVD, BoxOffice, Production or Website.
ResponseTrue or False, always a string.

Fields follow OMDb, so an existing OMDb parser needs no change beyond the base URL.

Example response

JSON
{
  "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://api.amodb.dev/omdb/ plus a query string. Replace KEY with your key. Spaces in a title become + or %20.

GoalURL
Title by IMDb idhttps://api.amodb.dev/omdb/?i=tt0137523&apikey=KEY
Title by namehttps://api.amodb.dev/omdb/?t=Fight+Club&apikey=KEY
Name and release yearhttps://api.amodb.dev/omdb/?t=Fight+Club&y=1999&apikey=KEY
Series by namehttps://api.amodb.dev/omdb/?t=The+Wire&type=series&apikey=KEY
Full plothttps://api.amodb.dev/omdb/?i=tt0137523&plot=full&apikey=KEY
Search, page 2https://api.amodb.dev/omdb/?s=Matrix&type=movie&page=2&apikey=KEY

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
curl -sf "https://api.amodb.dev/omdb/?s=Matrix&type=movie&page=1&apikey=$AMODB_KEY"
FieldNotes
SearchArray of up to 10 items with Title, Year, imdbID, Type, Poster.
totalResultsCount of all matches, as a string.
ResponseTrue or False.
JSON
{
  "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","Error":"..."}. Most of them come with HTTP 200, so read Error and branch on the text, not on the HTTP status alone.

Error textHTTPWhen
Movie not found!200No title matches t, the i value is valid but unknown, or a search page is past the last one.
Incorrect IMDb ID.200The i value is not shaped like an IMDb id.
Too many results.200The search text is shorter than 3 letters or matches too many titles. Make the text longer or add type or y.
Something went wrong.200None of i, t and s was sent.
Only r=json is supported.400r is set to anything but json.
No API key provided. or Invalid API key!401The apikey is missing or wrong.
Request limit reached!429Over 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.

JavaScript
// 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.

FeatureOn this endpoint
i, t, s, type, y, plot, pageSupported, same names and values. type is movie or series.
r=jsonSupported, and the only format.
r=xmlHTTP 400 with Only r=json is supported.
Season, EpisodeIgnored. A series reply has totalSeasons and no episode data.
callback, vIgnored.
type=episodeFinds nothing.
PosterAddress on img.amodb.dev at the w300 size, no key needed.
Number fieldsText, as in OMDb. N/A means unknown.
Rate20, 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.

OMDbamodb OMDb endpoint
PriceFree 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 useThe 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 arrayIMDb, 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, imdbRating and totalResults yourself, and treat N/A as missing.
  • Use plot=full only when you show the long plot. short keeps responses smaller.
  • Lookups by i or t are cached longer than searches with s, 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 style poster_path and the TMDB image URL size list.
  • Keep the key on a server. An apikey in 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 requests is in the TMDB API in Python tutorial, and every endpoint is listed in the API reference.