Closed ghost closed 4 years ago
By using tmdbsimple
:
import tmdbsimple as tmdb
tmdb.API_KEY = '<your api key>'
BREAKING_BAD = 1396;
first_air_date = tmdb.TV(BREAKING_BAD).info()['first_air_date'];
print("First Air Date =", first_air_date)
First Air Date = 2008-01-20
By URL:
curl --silent "https://api.themoviedb.org/3/tv/1396?api_key=<your api key>" | jq -r '.first_air_date'
2008-01-20
You can install “jq” at https://stedolan.github.io/jq/download/.
Have fun!
I am trying to get the first_air_date but I have no luck. Furthermore, how can I search by url (not only the id)?