We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(18)
IMDb 有一个公共 API,虽然没有文档记录,但快速可靠(通过 AJAX 在官方网站上使用)。
搜索建议 API
https://sg.media-imdb.com/suggests /h/hello.json
https://v2.sg.media- imdb.com/suggests/h/hello.json(截至 2019 年)
imdb${searchphrase}
格式)。或者,可以通过本地代理去除或替换填充。https://v2.sg.media-imdb.com/ suggest/h/hello.json(截至 2020 年)
高级搜索
名称搜索 (json):http://www.imdb.com/xml/find?json=1&nr =1&nm=on&q=jeniffer+garner优点:同时支持电影标题和演员姓名(与建议 API 不同)。请注意,这些 API 是非官方的,可能随时更改!
更新(2019 年 1 月):高级 API 不再存在。好消息是,建议 API 现在还支持按电影标题和演员姓名搜索的“高级”功能。
The IMDb has a public API that, although undocumented, is fast and reliable (used on the official website through AJAX).
Search Suggestions API
https://sg.media-imdb.com/suggests/h/hello.json
https://v2.sg.media-imdb.com/suggests/h/hello.json (as of 2019)
imdb${searchphrase}
format). Alternatively, one could strip or replace the padding via a local proxy.https://v2.sg.media-imdb.com/suggestion/h/hello.json (as of 2020)
Advanced Search
Name search (json): http://www.imdb.com/xml/find?json=1&nr=1&nm=on&q=jeniffer+garnerUpside: Supports both film titles and actor names (unlike Suggestions API).Beware that these APIs are unofficial and could change at any time!
Update (January 2019): The Advanced API no longer exists. The good news is, that the Suggestions API now supports the "advanced" features of searching by film titles and actor names as well.
新的 api @ http://www.omdbapi.com
编辑:由于法律问题不得不将服务转移到新域名:)
new api @ http://www.omdbapi.com
edit: due to legal issues had to move the service to a new domain :)
IMDB 本身似乎分发数据,但仅在文本文件中:
http://www.imdb.com/interfaces
有几个与此相关的 API,您可以通过 Google 搜索。明确禁止屏幕抓取。
官方 API 似乎正在开发中,但已经存在多年了。
IMDB themselves seem to distribute data, but only in text files:
http://www.imdb.com/interfaces
there are several APIs around this that you can Google. Screen scraping is explicitly forbidden.
A official API seems to be in the works, but has been that for years already.
获取电影信息的另一个合法替代方法是 Rotten-Tomatoes API(由 Fandango 提供)。
Another legal alternative to get movie info is the Rotten-Tomatoes API (by Fandango).
TMDb API 怎么样?
您可以使用
GET /find/{external_id}
按 imdb_id 进行搜索https://developers.themoviedb.org/3/find/find-by-id
What about TMDb API ?
You can search by imdb_id with
GET /find/{external_id}
https://developers.themoviedb.org/3/find/find-by-id
是的,但不是免费的。
网址:-
http://www.imdb.com/licensing/
Yes, but not for free.
URL :-
http://www.imdb.com/licensing/
http://app.imdb.com 上有一个可供移动应用程序使用的 JSON API,
但是,警告相当严重:
我认为这适用于那些支付许可证费用以通过 API 访问数据的开发人员。
编辑:只是为了好玩,我编写了一个客户端库来尝试从 API 读取数据,您可以在这里找到它:api-imdb
显然,你应该注意警告,实际上,使用类似 TheMovieDB 作为更好、更开放的数据库。
然后你可以使用这个Java API包装器(我写的):api-themoviedb
There is a JSON API for use by mobile applications at http://app.imdb.com
However, the warning is fairly severe:
I presume this is for those developers that pay for the licence to access the data via their API.
EDIT: Just for kicks, I wrote a client library to attempt to read the data from the API, you can find it here: api-imdb
Obviously, you should pay attention to the warning, and really, use something like TheMovieDB as a better and more open database.
Then you can use this Java API wrapper (that I wrote): api-themoviedb
找到了这个
http://imdbpy.sourceforge.net/
Found this one
http://imdbpy.sourceforge.net/
https://deanclatworthy.com/tools.html 是一个 IMDB API,但由于滥用而已关闭。
https://deanclatworthy.com/tools.html is an IMDB API but has been down due to abuse.
截至 2016 年 8 月,IMDB 似乎还没有直接的 API,但我看到很多人在写爬虫和上面的东西。 这里是使用票房访问电影数据的更标准方法嗡嗡声API。免费计划中的所有响应均采用 JSON 格式,每天 5000 次查询
API 提供的内容列表
IMDB doesn't seem to have a direct API as of August 2016 yet but I saw many people writing scrapers and stuff above. Here is a more standard way to access movie data using box office buzz API. All responses in JSON format and 5000 queries per day on a free plan
List of things provided by the API
那个 deanclatworthy 似乎仍然有效
还有另一个:http://imdbapi.poromenos.org/
that deanclatworthy still seems to work
and there's another one: http://imdbapi.poromenos.org/
这里是一个简单的解决方案,它根据 Krinkle 的查询按名称获取节目:
您可以通过让服务器获取 URL 而不是尝试使用 AJAX 直接获取它来绕过同源策略,您不必使用 JSONP 来执行此操作。
Javascript (jQuery):
PHP(在文件 ajax.php 中):
Here is a simple solution that fetches shows by name based on the query from Krinkle:
You can get around the same-origin policy by having your server fetch the URL instead of trying to fetch it directly with AJAX and you don't have to use JSONP to do it.
Javascript (jQuery):
PHP (in file ajax.php):
如果您想要电影详细信息API,那么您可以考虑
OMDB API,它是开放电影数据库。它
返回 IMDB 评级、IMDB 投票,还有烂番茄评级。
或者您可以使用
My Api Films,它允许您使用 IMDB ID 进行搜索,它会返回详细信息信息,但有请求限制。
If you want movie details API then you can consider
OMDB API which is Open movies Database. It
returns IMDB Ratings, IMDB Votes and it also has Rotten Tomato rating.
Or else You can use
My Api Films which allows you to search with IMDB ID, it returns detailed information but it has request limits.
最近在 SXSWi 2012 上,在他们的“Mashery Lounge”中,有一个从 rovi 调用的类似 IMDB 的 API 展位。它不是免费的 API,但据我交谈过的销售人员称,他们根据您的预算提供收益分成或固定使用费。我还没用过,但看起来很酷。
Recently at SXSWi 2012, in their "Mashery Lounge", there was a booth for an IMDB-like API called from rovi. It's not a free API, but according to the sales guy I talked to they offer either a rev share or a flat fee for usage, depending on your budget. I haven't used it yet but it seems pretty cool.
NetFilx 更多的是个性化媒体服务,但您可以使用它来获取有关电影的公共信息。它支持 Javascript 和 OData。
另请参阅JMDb:信息与使用IMDb网站时获得的信息基本相同。
NetFilx is more of personalized media service but you can use it for public information regarding movies. It supports Javascript and OData.
Also look JMDb: The information is basically the same as you can get when using the IMDb website.
好的,我找到了这个
C# 的 IMDB scraper:
http://web3o.blogspot.de/2010/11/aspnetc -imdb-scraping-api.html
PHP 在这里:
http://web3o.blogspot.de /2010/10/php-imdb-scraper-for-new-imdb-template.html
或者是 c# 的 imdbapi.org 实现:
ok i found this one IMDB scraper
for C#:
http://web3o.blogspot.de/2010/11/aspnetc-imdb-scraping-api.html
PHP here:
http://web3o.blogspot.de/2010/10/php-imdb-scraper-for-new-imdb-template.html
alternatively a imdbapi.org implementation for c#:
这是一个 Python 模块,提供 API 以从 IMDB 网站获取数据
http:// techdiary-viki.blogspot.com/2011/03/imdb-api.html
Here is a Python module providing API's to get data from IMDB website
http://techdiary-viki.blogspot.com/2011/03/imdb-api.html
我非常有信心您找到的应用程序实际上从 Themoviedb.org 的 API 获取信息(他们从 IMDB 获取大部分内容)。他们有一个免费的开放 API,许多电影组织者/XMBC 应用程序都使用该 API。
Im pretty confident that the application you found actually gets their information form Themoviedb.org's API(they get most of there stuff from IMDB). They have a free open API that is used alot of the movie organizer/XMBC applications.