The Movie Database 支持

Hello,

This endpoint returns an empty result with the 60572 ID: https://api.themoviedb.org/3/tv/{series_id}/videos

I also tried using the developer page, but I get the same result: https://developer.themoviedb.org/reference/tv-series-videos

response status code 200

{
  "id": 60572,
  "results": []
}

The series ID is: Pokémon (1997) https://www.themoviedb.org/tv/60572

Other id: 22980 : doesnt work 456 : works

Can you help me? Thank you

6 回复(第 1 页,共 1 页)

Jump to last post

@tmdb1999 said:
TVshow api Videos return an empty result
Hello,
This endpoint returns an empty result with the 60572 ID:
https://api.themoviedb.org/3/tv/{series_id}/videos
I also tried using the developer page, but I get the same result:
https://developer.themoviedb.org/reference/tv-series-videos
response status code 200

{
  "id": 60572,  
  "results": []
}

The series ID is:
Pokémon (1997)
https://www.themoviedb.org/tv/60572

Other id:
22980 : doesnt work
456 : works

Can you help me?
Thank you

For me all the Requests worked correctly.
https://api.themoviedb.org/3/tv/60572?api_key=THE_KEY&language=pt-BR
https://api.themoviedb.org/3/tv/22980?api_key=THE_KEY&language=pt-BR
https://api.themoviedb.org/3/tv/456?api_key=THE_KEY&language=pt-BR
Try again and let me know if the problem persists.

Maybe I didn't understand how it works or the problem is with the language

Movie: Pokèmon TMDB 60572

It exists on the website:

https://www.themoviedb.org/search?language=it-IT&query=pok%C3%A9mon

but the developer API panel returns an empty result. However it works with the 'en-US' language

It works even with the IT language (this is not the developer API panel) https://api.themoviedb.org/3/tv/60572?api_key=api_key&language=it-IT

My endpoint in Python returns an empty result in IT:

https://api.themoviedb.org/3/tv/60572/videos {'api_key': 'api_key', 'language': 'it-IT', 'query': ''}

My endpoint in Python returns the correct result in US:

https://api.themoviedb.org/3/tv/60572/videos {'api_key': 'api_key', 'language': 'en-US', 'query': ''}

It does not work in the TMDB developer panel and in my Python script with IT language

Hi @tmdb1999,

Pokémon (id 60572) does not have any videos added to the it-IT translation. Compare these two requests:

https://www.themoviedb.org/tv/60572/videos?language=it-IT

vs.

https://www.themoviedb.org/tv/60572/videos?language=en-US

Here's the API request:

Request

curl -v "https://api.themoviedb.org/3/tv/60572/videos?api_key=###&language=en-US"

* Host api.themoviedb.org:443 was resolved.
* IPv6: 2600:9000:2784:cc00:c:174a:c400:93a1, 2600:9000:2784:8e00:c:174a:c400:93a1, 2600:9000:2784:ec00:c:174a:c400:93a1, 2600:9000:2784:a800:c:174a:c400:93a1, 2600:9000:2784:3e00:c:174a:c400:93a1, 2600:9000:2784:6800:c:174a:c400:93a1, 2600:9000:2784:4800:c:174a:c400:93a1, 2600:9000:2784:5600:c:174a:c400:93a1
* IPv4: 18.238.238.125, 18.238.238.127, 18.238.238.2, 18.238.238.6
*   Trying [2600:9000:2784:cc00:c:174a:c400:93a1]:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
* 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 / x25519 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=*.themoviedb.org
*  start date: Jul 20 00:00:00 2024 GMT
*  expire date: Aug 17 23:59:59 2025 GMT
*  subjectAltName: host "api.themoviedb.org" matched cert's "*.themoviedb.org"
*  issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to api.themoviedb.org (2600:9000:2784:cc00:c:174a:c400:93a1) port 443
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api.themoviedb.org/3/tv/60572/videos?api_key=###&language=en-US
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api.themoviedb.org]
* [HTTP/2] [1] [:path: /3/tv/60572/videos?api_key=###&language=en-US]
* [HTTP/2] [1] [user-agent: curl/8.12.1]
* [HTTP/2] [1] [accept: */*]
> GET /3/tv/60572/videos?api_key=###&language=en-US HTTP/2
> Host: api.themoviedb.org
> User-Agent: curl/8.12.1
> Accept: */*
>
* Request completely sent off
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 2882
< date: Fri, 04 Apr 2025 15:27:24 GMT
< server: openresty
< cache-control: public, max-age=11638
< x-memc: HIT
< x-memc-key: f548e16d782f6ab2295d77d37bbf8f8d
< x-memc-age: 13488
< x-memc-expires: 11638
< etag: W/"00e5d156818087b2702595b36de51f19"
< vary: Accept-Encoding,accept-encoding
< x-cache: Miss from cloudfront
< via: 1.1 e76eba87ee47517dc7f2053edfb921bc.cloudfront.net (CloudFront)
< x-amz-cf-pop: SEA900-P5
< alt-svc: h3=":443"; ma=86400
< x-amz-cf-id: P0DNL-t1digRnvqUsTO32aXdk5fdhgRdPy1CU1hOoXdZJCLttxn_qw==
< vary: Origin
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  "id": 60572,
  "results": [
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "A Timeless Journey",
      "key": "dfDIHAZqfnc",
      "site": "YouTube",
      "size": 1080,
      "type": "Featurette",
      "official": true,
      "published_at": "2023-10-06T19:30:21.000Z",
      "id": "6520a7300cb33501387a9ec7"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Viz/Pioneer DVD & VHS Commercial",
      "key": "kfgfQPA6oPI",
      "site": "YouTube",
      "size": 1080,
      "type": "Trailer",
      "official": false,
      "published_at": "2022-04-19T22:00:36.000Z",
      "id": "6608aa53d5191f017e315285"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Opening 1 - \"Aim to Be a Pokémon Master\" - Rica Matsumoto [Pre-Porygon | Remastered w/ Subs]",
      "key": "TZMoQjvoICE",
      "site": "YouTube",
      "size": 720,
      "type": "Opening Credits",
      "official": false,
      "published_at": "2020-07-27T07:13:23.000Z",
      "id": "6753ab70df3ae97e1c2f3d8f"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Alola (Season 22)",
      "key": "LEZCmwCdn2w",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2019-03-16T16:59:58.000Z",
      "id": "5dbf28729d893900182ed5a3"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Alola (Seasons 20-21)",
      "key": "aKniN9oVe4Y",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-27T16:00:08.000Z",
      "id": "5dbf28329638640012e45b1b"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Kalos (Seasons 17-19)",
      "key": "LCNHc12volU",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-26T16:00:31.000Z",
      "id": "5dbf26709d893900132e93c9"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Unova (Seasons 14-16)",
      "key": "8t_NY-9r_IE",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-25T19:31:06.000Z",
      "id": "5dbf278e9638640016e48519"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Sinnoh (Seasons 10-13)",
      "key": "uBmMvGJ7uBE",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-24T20:48:27.000Z",
      "id": "5dbf27259638640012e45991"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Hoenn (Seasons 6-9)",
      "key": "x5UqwSOfeqI",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-23T17:18:21.000Z",
      "id": "5dbf26d899c964001490a896"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Johto (Seasons 3-5)",
      "key": "w7XdPcOz_4w",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-22T13:00:45.000Z",
      "id": "5dbf27727d2bc10011368c4e"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Kanto (Seasons 1-2)",
      "key": "hxooaOBJUjs",
      "site": "YouTube",
      "size": 1080,
      "type": "Opening Credits",
      "official": true,
      "published_at": "2018-04-21T13:00:02.000Z",
      "id": "5dbf2757efe37c001883b598"
    },
    {
      "iso_639_1": "en",
      "iso_3166_1": "US",
      "name": "Catch 'Em All on VHS Advert (VHS Capture)",
      "key": "Dm74XaBx7js",
      "site": "YouTube",
      "size": 1080,
      "type": "Trailer",
      "official": false,
      "published_at": "2016-06-27T20:08:02.000Z",
      "id": "6608ab5e2faf4d017dca5587"
    }
  ]
}

Oh.. I misunderstood the term 'videos' as 'trailers'........... from https://api.themoviedb.org/3/tv/{series_id}/videos

I am trying to get information about this TV show based on its ID ( only the ID) What endpoint should I use?

Thank you

If all you want is the primary details, access the ID directly:

https://api.themoviedb.org/3/tv/{series_id}

Ie.

https://api.themoviedb.org/3/tv/60572

Very kind thank you

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区