Skip to main content
POST
/
api
/
imdb
/
titles
/imdb/titles
curl --request POST \
  --url https://api.anysite.io/api/imdb/titles \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "title_id": "<string>",
  "timeout": 300,
  "country": "<string>",
  "language": "<string>"
}
'
import requests

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

payload = {
"title_id": "<string>",
"timeout": 300,
"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({title_id: '<string>', timeout: 300, country: '<string>', language: '<string>'})
};

fetch('https://api.anysite.io/api/imdb/titles', 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",
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([
'title_id' => '<string>',
'timeout' => 300,
'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"

payload := strings.NewReader("{\n \"title_id\": \"<string>\",\n \"timeout\": 300,\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")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title_id\": \"<string>\",\n \"timeout\": 300,\n \"country\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

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

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 \"title_id\": \"<string>\",\n \"timeout\": 300,\n \"country\": \"<string>\",\n \"language\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "ImdbTitle",
    "title_text": "<string>",
    "original_title": "<string>",
    "type_id": "<string>",
    "type_name": "<string>",
    "is_series": false,
    "is_episode": false,
    "year": 123,
    "end_year": 123,
    "release_date": "<string>",
    "release_country": "<string>",
    "runtime_minutes": 123,
    "plot": "<string>",
    "rating": 123,
    "vote_count": 123,
    "metascore": 123,
    "metascore_review_count": 123,
    "certificate": "<string>",
    "is_adult": false,
    "genres": [],
    "countries": [],
    "languages": [],
    "image": "<string>",
    "image_caption": "<string>",
    "budget": 123,
    "budget_currency": "<string>",
    "gross_worldwide": 123,
    "gross_domestic": 123,
    "opening_weekend_gross": 123,
    "tagline": "<string>",
    "award_summary": {
      "@type": "ImdbAwardSummary",
      "name": "<string>",
      "wins": 123,
      "nominations": 123
    },
    "meter_rank": 123,
    "directors": [],
    "writers": [],
    "creators": [],
    "stars": [],
    "series": {
      "id": "<string>",
      "title_text": "<string>",
      "@type": "ImdbTitleRef",
      "url": "<string>",
      "type_id": "<string>",
      "year": 123,
      "rating": 123,
      "vote_count": 123,
      "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
title_id
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
country
string | null
language
string | null

Response

Successful Response

id
string
required
url
string
required
@type
string
default:ImdbTitle
title_text
string | null
original_title
string | null
type_id
string | null
type_name
string | null
is_series
boolean
default:false
is_episode
boolean
default:false
year
integer | null
end_year
integer | null
release_date
string | null
release_country
string | null
runtime_minutes
integer | null
plot
string | null
rating
number | null
vote_count
integer | null
metascore
integer | null
metascore_review_count
integer | null
certificate
string | null
is_adult
boolean
default:false
genres
string[]
countries
string[]
languages
string[]
image
string | null
image_caption
string | null
budget
number | null
budget_currency
string | null
gross_worldwide
number | null
gross_domestic
number | null
opening_weekend_gross
number | null
tagline
string | null
award_summary
object | null
meter_rank
integer | null
directors
object[]
writers
object[]
creators
object[]
stars
object[]
series
object | null