Skip to main content
POST
/
api
/
imdb
/
titles
/
search
/imdb/titles/search
curl --request POST \
  --url https://api.anysite.io/api/imdb/titles/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "<string>",
  "title_type": [],
  "title_type_exclude": [],
  "genres": [],
  "genres_exclude": [],
  "rating_min": 5,
  "rating_max": 5,
  "votes_min": 1,
  "votes_max": 1,
  "release_date_from": "<string>",
  "release_date_to": "<string>",
  "runtime_min": 1,
  "runtime_max": 1,
  "countries": [
    "<string>"
  ],
  "countries_exclude": [
    "<string>"
  ],
  "languages": [
    "<string>"
  ],
  "us_certificates": [],
  "color": [],
  "keywords": [
    "<string>"
  ],
  "companies": [
    "<string>"
  ],
  "cast_or_crew": [
    "<string>"
  ],
  "awards": [],
  "ranked_lists": [],
  "interests": [
    "<string>"
  ],
  "sort": "POPULARITY",
  "sort_order": "ASC",
  "country": "<string>",
  "language": "<string>"
}
'
import requests

url = "https://api.anysite.io/api/imdb/titles/search"

payload = {
"count": 2,
"timeout": 300,
"keyword": "<string>",
"title_type": [],
"title_type_exclude": [],
"genres": [],
"genres_exclude": [],
"rating_min": 5,
"rating_max": 5,
"votes_min": 1,
"votes_max": 1,
"release_date_from": "<string>",
"release_date_to": "<string>",
"runtime_min": 1,
"runtime_max": 1,
"countries": ["<string>"],
"countries_exclude": ["<string>"],
"languages": ["<string>"],
"us_certificates": [],
"color": [],
"keywords": ["<string>"],
"companies": ["<string>"],
"cast_or_crew": ["<string>"],
"awards": [],
"ranked_lists": [],
"interests": ["<string>"],
"sort": "POPULARITY",
"sort_order": "ASC",
"country": "<string>",
"language": "<string>"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
keyword: '<string>',
title_type: [],
title_type_exclude: [],
genres: [],
genres_exclude: [],
rating_min: 5,
rating_max: 5,
votes_min: 1,
votes_max: 1,
release_date_from: '<string>',
release_date_to: '<string>',
runtime_min: 1,
runtime_max: 1,
countries: ['<string>'],
countries_exclude: ['<string>'],
languages: ['<string>'],
us_certificates: [],
color: [],
keywords: ['<string>'],
companies: ['<string>'],
cast_or_crew: ['<string>'],
awards: [],
ranked_lists: [],
interests: ['<string>'],
sort: 'POPULARITY',
sort_order: 'ASC',
country: '<string>',
language: '<string>'
})
};

fetch('https://api.anysite.io/api/imdb/titles/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/imdb/titles/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'keyword' => '<string>',
'title_type' => [

],
'title_type_exclude' => [

],
'genres' => [

],
'genres_exclude' => [

],
'rating_min' => 5,
'rating_max' => 5,
'votes_min' => 1,
'votes_max' => 1,
'release_date_from' => '<string>',
'release_date_to' => '<string>',
'runtime_min' => 1,
'runtime_max' => 1,
'countries' => [
'<string>'
],
'countries_exclude' => [
'<string>'
],
'languages' => [
'<string>'
],
'us_certificates' => [

],
'color' => [

],
'keywords' => [
'<string>'
],
'companies' => [
'<string>'
],
'cast_or_crew' => [
'<string>'
],
'awards' => [

],
'ranked_lists' => [

],
'interests' => [
'<string>'
],
'sort' => 'POPULARITY',
'sort_order' => 'ASC',
'country' => '<string>',
'language' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/imdb/titles/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"<string>\",\n \"title_type\": [],\n \"title_type_exclude\": [],\n \"genres\": [],\n \"genres_exclude\": [],\n \"rating_min\": 5,\n \"rating_max\": 5,\n \"votes_min\": 1,\n \"votes_max\": 1,\n \"release_date_from\": \"<string>\",\n \"release_date_to\": \"<string>\",\n \"runtime_min\": 1,\n \"runtime_max\": 1,\n \"countries\": [\n \"<string>\"\n ],\n \"countries_exclude\": [\n \"<string>\"\n ],\n \"languages\": [\n \"<string>\"\n ],\n \"us_certificates\": [],\n \"color\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"companies\": [\n \"<string>\"\n ],\n \"cast_or_crew\": [\n \"<string>\"\n ],\n \"awards\": [],\n \"ranked_lists\": [],\n \"interests\": [\n \"<string>\"\n ],\n \"sort\": \"POPULARITY\",\n \"sort_order\": \"ASC\",\n \"country\": \"<string>\",\n \"language\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/imdb/titles/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"<string>\",\n \"title_type\": [],\n \"title_type_exclude\": [],\n \"genres\": [],\n \"genres_exclude\": [],\n \"rating_min\": 5,\n \"rating_max\": 5,\n \"votes_min\": 1,\n \"votes_max\": 1,\n \"release_date_from\": \"<string>\",\n \"release_date_to\": \"<string>\",\n \"runtime_min\": 1,\n \"runtime_max\": 1,\n \"countries\": [\n \"<string>\"\n ],\n \"countries_exclude\": [\n \"<string>\"\n ],\n \"languages\": [\n \"<string>\"\n ],\n \"us_certificates\": [],\n \"color\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"companies\": [\n \"<string>\"\n ],\n \"cast_or_crew\": [\n \"<string>\"\n ],\n \"awards\": [],\n \"ranked_lists\": [],\n \"interests\": [\n \"<string>\"\n ],\n \"sort\": \"POPULARITY\",\n \"sort_order\": \"ASC\",\n \"country\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/imdb/titles/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"keyword\": \"<string>\",\n \"title_type\": [],\n \"title_type_exclude\": [],\n \"genres\": [],\n \"genres_exclude\": [],\n \"rating_min\": 5,\n \"rating_max\": 5,\n \"votes_min\": 1,\n \"votes_max\": 1,\n \"release_date_from\": \"<string>\",\n \"release_date_to\": \"<string>\",\n \"runtime_min\": 1,\n \"runtime_max\": 1,\n \"countries\": [\n \"<string>\"\n ],\n \"countries_exclude\": [\n \"<string>\"\n ],\n \"languages\": [\n \"<string>\"\n ],\n \"us_certificates\": [],\n \"color\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"companies\": [\n \"<string>\"\n ],\n \"cast_or_crew\": [\n \"<string>\"\n ],\n \"awards\": [],\n \"ranked_lists\": [],\n \"interests\": [\n \"<string>\"\n ],\n \"sort\": \"POPULARITY\",\n \"sort_order\": \"ASC\",\n \"country\": \"<string>\",\n \"language\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "ImdbTitleSearchResult",
    "title_text": "<string>",
    "original_title": "<string>",
    "type_id": "<string>",
    "type_name": "<string>",
    "year": 123,
    "end_year": 123,
    "rating": 123,
    "vote_count": 123,
    "runtime_minutes": 123,
    "certificate": "<string>",
    "plot": "<string>",
    "genres": [],
    "image": "<string>"
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
keyword
string | null
title_type
enum<string>[] | null
Available options:
movie,
tvSeries,
tvMiniSeries,
tvMovie,
tvSpecial,
tvEpisode,
tvShort,
short,
video,
videoGame,
musicVideo,
podcastSeries,
podcastEpisode
title_type_exclude
enum<string>[] | null
Available options:
movie,
tvSeries,
tvMiniSeries,
tvMovie,
tvSpecial,
tvEpisode,
tvShort,
short,
video,
videoGame,
musicVideo,
podcastSeries,
podcastEpisode
genres
enum<string>[] | null
Available options:
Action,
Adult,
Adventure,
Animation,
Biography,
Comedy,
Crime,
Documentary,
Drama,
Family,
Fantasy,
Film-Noir,
Game-Show,
History,
Horror,
Music,
Musical,
Mystery,
News,
Reality-TV,
Romance,
Sci-Fi,
Short,
Sport,
Talk-Show,
Thriller,
War,
Western
genres_exclude
enum<string>[] | null
Available options:
Action,
Adult,
Adventure,
Animation,
Biography,
Comedy,
Crime,
Documentary,
Drama,
Family,
Fantasy,
Film-Noir,
Game-Show,
History,
Horror,
Music,
Musical,
Mystery,
News,
Reality-TV,
Romance,
Sci-Fi,
Short,
Sport,
Talk-Show,
Thriller,
War,
Western
rating_min
number | null
Required range: 0 <= x <= 10
rating_max
number | null
Required range: 0 <= x <= 10
votes_min
integer | null
Required range: x >= 0
votes_max
integer | null
Required range: x >= 0
release_date_from
string | null
release_date_to
string | null
runtime_min
integer | null
Required range: x >= 0
runtime_max
integer | null
Required range: x >= 0
countries
string[] | null
countries_exclude
string[] | null
languages
string[] | null
us_certificates
enum<string>[] | null
Available options:
G,
PG,
PG-13,
R,
NC-17
color
enum<string>[] | null
Available options:
COLOR,
BLACK_AND_WHITE,
COLORIZED,
ACES
keywords
string[] | null
companies
string[] | null
cast_or_crew
string[] | null
awards
enum<string>[] | null
Available options:
OSCAR_WINNING,
OSCAR_NOMINATED,
EMMY_WINNING,
EMMY_NOMINATED,
GOLDEN_GLOBE_WINNING,
GOLDEN_GLOBE_NOMINATED
ranked_lists
enum<string>[] | null
Available options:
TOP_RATED_MOVIES,
LOWEST_RATED_MOVIES,
MOVIE_METER,
TV_METER,
TITLE_METER
interests
string[] | null
adult
enum<string> | null
Available options:
EXCLUDE_ADULT,
INCLUDE_ADULT,
ONLY_ADULT
sort
enum<string>
default:POPULARITY
Available options:
POPULARITY,
USER_RATING,
USER_RATING_COUNT,
RELEASE_DATE,
RUNTIME,
YEAR,
BOX_OFFICE_GROSS_DOMESTIC,
METACRITIC_SCORE,
RANKING
sort_order
enum<string>
default:ASC
Available options:
ASC,
DESC
country
string | null
language
string | null

Response

Successful Response

id
string
required
url
string
required
@type
string
default:ImdbTitleSearchResult
title_text
string | null
original_title
string | null
type_id
string | null
type_name
string | null
year
integer | null
end_year
integer | null
rating
number | null
vote_count
integer | null
runtime_minutes
integer | null
certificate
string | null
plot
string | null
genres
string[]
image
string | null