Suporte do The Movie Database

Could you help, what request can get info about Age Rating of movie and TVShow?

7 respostas (na página 1 de 1)

Jump to last post

TMDb has certifications and content ratings (like MPAA, etc.) available in the following two end points:

Cheers.

I get a null response when I enter:

https://api.themoviedb.org/3/tv/1408/content_ratings&api_key=&language=en

Is this the correct format?

@Dan Hinsley said:
I get a null response when I enter:
https://api.themoviedb.org/3/tv/1408/content_ratings&api_key=&language=en
Is this the correct format?

I believe there is a small error in your API Request.
You put the " & " character.
The correct character is " ? " .

Would be like this    
https://api.themoviedb.org/3/tv/1408/content_ratings?api_key=THE_KEY  
Not this  
https://api.themoviedb.org/3/tv/1408/content_ratings&api_key=<key>&language=en    

Oops. So I tried:

https://api4.thetvdb.com/v4/tv/1408/content_ratings?language=en

Supplying my token in the Authorization header (like I do for all calls), but still get a null return.

That is a call to TVDB.

Here is an example working call to the /content_ratings method:

Request

curl -v "https://api.themoviedb.org/3/tv/1408/content_ratings?api_key=###"

*   Trying 52.84.162.78:443...
* Connected to api.themoviedb.org (52.84.162.78) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.themoviedb.org
*  start date: Oct 21 00:00:00 2021 GMT
*  expire date: Nov 18 23:59:59 2022 GMT
*  subjectAltName: host "api.themoviedb.org" matched cert's "*.themoviedb.org"
*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fa0a400a800)
> GET /3/tv/1408/content_ratings?api_key=### HTTP/2
> Host: api.themoviedb.org
> user-agent: curl/7.81.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 335
< date: Mon, 21 Mar 2022 21:21:48 GMT
< server: openresty
< access-control-allow-origin: *
< access-control-allow-methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
< access-control-expose-headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After, Content-Length, Content-Range
< cache-control: public, max-age=28800
< x-memc: HIT
< x-memc-key: 88904df4af68fb04f80ae08739acfd4666e2fd07
< x-memc-age: 1174
< x-memc-expires: 13679
< etag: W/"cdf44ecf804c84a2e1d5f3556084fdac"
< vary: Accept-Encoding,Accept-Encoding
< x-cache: Miss from cloudfront
< via: 1.1 618052a0d9c86c1a3bf663f82d041d1c.cloudfront.net (CloudFront)
< x-amz-cf-pop: SEA19-C3
< x-amz-cf-id: nKgt9ZaEdppqS0TXX-2V_AolSEEh6teqI9u61kV-ucfbXbhyUcqyVA==
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  "results": [
    {
      "iso_3166_1": "DE",
      "rating": "16"
    },
    {
      "iso_3166_1": "US",
      "rating": "TV-14"
    },
    {
      "iso_3166_1": "FR",
      "rating": "10"
    },
    {
      "iso_3166_1": "RU",
      "rating": "16+"
    },
    {
      "iso_3166_1": "GB",
      "rating": "18"
    },
    {
      "iso_3166_1": "BR",
      "rating": "14"
    },
    {
      "iso_3166_1": "HU",
      "rating": "16"
    },
    {
      "iso_3166_1": "LT",
      "rating": "N-14"
    },
    {
      "iso_3166_1": "ES",
      "rating": "16"
    }
  ],
  "id": 1408
}

Thanks, another question, is there any way to piggyback this onto another call (using append_to_response)?

@Dan Hinsley said:
Thanks, another question, is there any way to piggyback this onto another call (using append_to_response)?

I think so.
It would be this API Request.

https://api.themoviedb.org/3/tv/1408?api_key=THE_KEY&language=en-US&append_to_response=content_ratings

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