Latest
curl --request GET \
--url https://api.themoviedb.org/3/tv/latestimport requests
url = "https://api.themoviedb.org/3/tv/latest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.themoviedb.org/3/tv/latest', 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.themoviedb.org/3/tv/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.themoviedb.org/3/tv/latest"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.themoviedb.org/3/tv/latest")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/tv/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"adult": false,
"backdrop_path": "/sJhPVMqzZb4dfmOkewgUdzaca5K.jpg",
"created_by": [],
"episode_run_time": [],
"first_air_date": "2015-01-08",
"genres": [],
"homepage": "",
"id": 281657,
"in_production": true,
"languages": [],
"last_air_date": "2015-01-15",
"last_episode_to_air": {
"air_date": "2015-01-15",
"episode_number": 2,
"episode_type": "standard",
"id": 5891455,
"name": "Episode 2",
"overview": "",
"production_code": "",
"runtime": 51,
"season_number": 1,
"show_id": 281657,
"still_path": "/r7qMkfBtdij3gSxdWSx4WZ1RJDg.jpg",
"vote_average": 0,
"vote_count": 0
},
"name": "L'acquario più grande del mondo",
"networks": [],
"next_episode_to_air": null,
"number_of_episodes": 2,
"number_of_seasons": 1,
"origin_country": [
"IT"
],
"original_language": "it",
"original_name": "L'acquario più grande del mondo",
"overview": "",
"popularity": 0,
"poster_path": "/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg",
"production_companies": [],
"production_countries": [],
"seasons": [
{
"air_date": "2015-01-08",
"episode_count": 2,
"id": 437329,
"name": "Season 1",
"overview": "",
"poster_path": "/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg",
"season_number": 1,
"vote_average": 0
}
],
"spoken_languages": [],
"status": "Returning Series",
"tagline": "",
"type": "Scripted",
"vote_average": 0,
"vote_count": 0
}TV Series
Latest
Get the newest TV show ID.
GET
/
3
/
tv
/
latest
Latest
curl --request GET \
--url https://api.themoviedb.org/3/tv/latestimport requests
url = "https://api.themoviedb.org/3/tv/latest"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.themoviedb.org/3/tv/latest', 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.themoviedb.org/3/tv/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.themoviedb.org/3/tv/latest"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.themoviedb.org/3/tv/latest")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.themoviedb.org/3/tv/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"adult": false,
"backdrop_path": "/sJhPVMqzZb4dfmOkewgUdzaca5K.jpg",
"created_by": [],
"episode_run_time": [],
"first_air_date": "2015-01-08",
"genres": [],
"homepage": "",
"id": 281657,
"in_production": true,
"languages": [],
"last_air_date": "2015-01-15",
"last_episode_to_air": {
"air_date": "2015-01-15",
"episode_number": 2,
"episode_type": "standard",
"id": 5891455,
"name": "Episode 2",
"overview": "",
"production_code": "",
"runtime": 51,
"season_number": 1,
"show_id": 281657,
"still_path": "/r7qMkfBtdij3gSxdWSx4WZ1RJDg.jpg",
"vote_average": 0,
"vote_count": 0
},
"name": "L'acquario più grande del mondo",
"networks": [],
"next_episode_to_air": null,
"number_of_episodes": 2,
"number_of_seasons": 1,
"origin_country": [
"IT"
],
"original_language": "it",
"original_name": "L'acquario più grande del mondo",
"overview": "",
"popularity": 0,
"poster_path": "/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg",
"production_companies": [],
"production_countries": [],
"seasons": [
{
"air_date": "2015-01-08",
"episode_count": 2,
"id": 437329,
"name": "Season 1",
"overview": "",
"poster_path": "/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg",
"season_number": 1,
"vote_average": 0
}
],
"spoken_languages": [],
"status": "Returning Series",
"tagline": "",
"type": "Scripted",
"vote_average": 0,
"vote_count": 0
}Response
200 - application/json
Latest
Example:
false
Example:
"/sJhPVMqzZb4dfmOkewgUdzaca5K.jpg"
Example:
[]
Example:
[]
Example:
"2015-01-08"
Example:
[]
Example:
""
Example:
281657
Example:
true
Example:
[]
Example:
"2015-01-15"
Show child attributes
Show child attributes
Example:
"L'acquario più grande del mondo"
Example:
[]
Example:
2
Example:
1
Example:
["IT"]
Example:
"it"
Example:
"L'acquario più grande del mondo"
Example:
""
Example:
0
Example:
"/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg"
Example:
[]
Example:
[]
Show child attributes
Show child attributes
Example:
[
{
"air_date": "2015-01-08",
"episode_count": 2,
"id": 437329,
"name": "Season 1",
"overview": "",
"poster_path": "/tj7Ab5H2l9J4mNaYjPUDFHSmOM1.jpg",
"season_number": 1,
"vote_average": 0
}
]
Example:
[]
Example:
"Returning Series"
Example:
""
Example:
"Scripted"
Example:
0
Example:
0