Podpora The Movie Database

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

7 odpovědí (na stránce 1 z 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

Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.

Globální

s zaměřit panel hledání
p otevřít nabídku profilu
esc zavřít otevřené okno
? otevřít okno klávesových zkratek

Na stránkách médií

b zpět (nebo na nadřazený záznam, pokud to jde)
e na stránku úprav

Na stránkách sezón

(šipka vpravo) na další sezónu
(šipka vlevo) na předchozí sezónu

Na stránkách epizod

(šipka vpravo) na další epizodu
(šipka vlevo) na předchozí epizodu

Na všech stránkách obrázků

a otevřít okno přidání obrázku

Na všech stránkách úprav

t otevřít výběr překladu
ctrl+ s odeslat formulář

Na stránkách diskusí

n vytvořit novou diskusi
w přepnout stav zhlédnutí
p přepnout veřejný a soukromý
c přepnout zavřít a otevřít
a otevřít aktivitu
r odpovědět na diskusi
l na poslední odpověď
ctrl+ enter odeslat zprávu
(šipka vpravo) další stránka
(šipka vlevo) předchozí stránka

Nastavení

Want to rate or add this item to a list?

Přihlásit se