You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IMDb API调用返回USA别名标题而非原始标题的问题咨询

Why does ia.get_movie() return the US alias instead of the original title for Blood Oath (1990)?

First off, this isn’t an error on your part—this is intentional behavior in the IMDbPY library.

When you call ia.get_movie('0100414') without specifying additional info parameters, the library defaults to fetching the region-specific title for the US market (which is Prisoners of the Sun for this film) instead of the original title listed on IMDb’s main page.

How to retrieve the original title

To get the original title (Blood Oath), you need to explicitly request the original title field when fetching the movie data. Adjust your code like this:

# Fetch movie data with explicit request for original title
movie = ia.get_movie('0100414', info=['original title'])

# Access the original title
print(movie['original title'])  # Outputs: Blood Oath (1990)

If you want to view all available titles (including aliases and the original), you can use the akas info parameter (which you mentioned you already know how to work with):

movie = ia.get_movie('0100414', info=['akas'])
print(movie['akas'])

Why this default behavior exists

IMDbPY’s standard get_movie() call prioritizes localized titles based on common regional settings (often US English) unless instructed otherwise. The original title is stored as a separate entry in IMDb’s database, so you have to explicitly ask for it to override the default localized title.

内容的提问来源于stack exchange,提问作者dwids

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 11:27:38