Skip to main content
POST
/
api
/
rottentomatoes
/
tv
/
search
/rottentomatoes/tv/search
curl --request POST \
  --url https://api.anysite.io/api/rottentomatoes/tv/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "sort": "popular",
  "genres": [],
  "ratings": [],
  "affiliates": []
}
'
import requests

url = "https://api.anysite.io/api/rottentomatoes/tv/search"

payload = {
"count": 2,
"timeout": 300,
"sort": "popular",
"genres": [],
"ratings": [],
"affiliates": []
}
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,
sort: 'popular',
genres: [],
ratings: [],
affiliates: []
})
};

fetch('https://api.anysite.io/api/rottentomatoes/tv/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/rottentomatoes/tv/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,
'sort' => 'popular',
'genres' => [

],
'ratings' => [

],
'affiliates' => [

]
]),
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/rottentomatoes/tv/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"popular\",\n \"genres\": [],\n \"ratings\": [],\n \"affiliates\": []\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/rottentomatoes/tv/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"popular\",\n \"genres\": [],\n \"ratings\": [],\n \"affiliates\": []\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/rottentomatoes/tv/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 \"sort\": \"popular\",\n \"genres\": [],\n \"ratings\": [],\n \"affiliates\": []\n}"

response = http.request(request)
puts response.read_body
[
  {
    "url": "<string>",
    "@type": "RottentomatoesBrowseItem",
    "id": "<string>",
    "media_type": "<string>",
    "slug": "<string>",
    "name": "<string>",
    "release_text": "<string>",
    "image": "<string>",
    "tomatometer": 123,
    "popcornmeter": 123
  }
]
{
"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
sort
enum<string>
default:popular
Available options:
popular,
newest
genres
enum<string>[]
Available options:
action,
adventure,
animation,
anime,
biography,
comedy,
crime,
documentary,
drama,
entertainment,
faith_and_spirituality,
fantasy,
game_show,
health_and_wellness,
history,
holiday,
horror,
house_and_garden,
kids_and_family,
lgbtq,
music,
musical,
mystery_and_thriller,
nature,
news,
reality,
romance,
sci_fi,
short,
soap,
special_interest,
sports,
stand_up,
talk_show,
travel,
variety,
war,
western
ratings
enum<string>[]
Available options:
tvy,
tvy7,
tvg,
tvpg,
tv14,
tvma
tomatometer
enum<string> | null
Available options:
certified_fresh,
fresh,
rotten
popcornmeter
enum<string> | null
Available options:
verified_hot,
upright,
spilled
affiliates
enum<string>[]
Available options:
theaters,
fandango-at-home,
apple-tv,
apple-tv-plus,
netflix,
prime-video,
disney-plus,
max,
peacock,
hulu,
paramount-plus,
amc-plus,
acorn-tv

Response

Successful Response

url
string
required
@type
string
default:RottentomatoesBrowseItem
id
string | null
media_type
string | null
slug
string | null
name
string | null
release_text
string | null
image
string | null
tomatometer
integer | null
popcornmeter
integer | null