Hello guys,
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.themoviedb.org/3/discover/tv',
params: {page: '1', with_genres: '28'},
headers: {
accept: 'application/json',
Authorization: 'My token is used here properly'
}
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
This GET request returns nothing for me, an empty results array. Is it something wrong on my side or is there some kind of issue?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on April 4, 2024 at 11:57 AM
Genre 28 - Action, is valid only for Movies.
For TV use the genre 10759 - Action & Adventure
Reply by milan_gl
on April 4, 2024 at 2:02 PM
Thanks a lot, will try!