Suporte do The Movie Database

I'm looking at this collection using the API, by calling this endpoint:

https://api.themoviedb.org/3/collection/14890

and the results I'm getting don't match what I see on the website. What's on the website is correct:

  1. Bad Boys
  2. Bad Boys II
  3. Bad Boys for Life
  4. Bad Boys: Ride or Die

However, what I see from the API is not the same; here's a subset of the result:

[
  {
    "title": "Bad Boys for Life",
    "id": 38700
  },
  {
    "title": "Bad Boys",
    "id": 9737
  },
  {
    "title": "Bad Boys II",
    "id": 8961
  },
  {
    "title": "Bad Boys: Ride or Die",
    "id": 573435
  }
]

This is placing the third film — Bad Boys for Life as the first.

Since the website is correct, I guess this is just an API issue?

Thanks,
Clue Liss

2 respostas (na página 1 de 1)

Jump to last post

Hey Casey,

I don't believe the results in the collection end point are explicitly ordered. My suggestion would be to sort by the release_date field locally, on your client.

TMDB does not store any order information about collection parts at this time (I have an open ticket for that), and we just sort by the release date as well.

😳 🤦🏻‍♂️

Whoopsie doopsie! That's my bad then; thanks for clarifying!

For what it's worth, may be worth adding a small clause to the API endpoint to make this explicit?

Thanks again, [No Longer] Clue Liss

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade