电影数据库API和批处理请求 [英] Movie Database API with Batch Requests

查看:364
本文介绍了电影数据库API和批处理请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用我的电影推荐人申请烂番茄的API,但它具有每秒10个电话的限制。我的应用程序可能需要相当多的电影相当打了几个电话,因为它挂接到Facebook和使用他们喜欢的,但类似的网页没有提供太多细节。

I am currently using the Rotten Tomatoes API for my Movie Recommender application, but it has a limit of 10 calls per second. My application may require quite a few calls for quite a few movies since it hooks into facebook and uses their likes, but the like pages don't offer much detail.

我要寻找支持或者更快的要求,或者一个电影数据库的批处理请求的API。我不需要太多信息,只是曲风,描述,等级和名称作为最低限度。

I am looking for an API that supports either faster requests, or batch requests for a movie data base. I don't need much information, just the genre, description, a rating, and a name as a bare minimum.

哪些API支持这个标准是什么?

What APIs support this criteria?

编辑:我已经用烂番茄,IMDB API试过了,看着themoviedb.org。

I have tried using Rotten Tomatoes, IMDB api, and looked over themoviedb.org.

烂番茄提供每秒,这点我可以,但工作10个请求,因为我不会有ID的为电影和某些信息在搜索不给出,如流派,现在只需每部电影2请求(一个要搜索的电影通过名称,其它搜索一次按id发现电影。)

Rotten tomatoes offers 10 requests per second, which I can work with but since I won't have the ID's for the movies and certain information is not given on a search, like genre, it now takes 2 requests per movie (one to search for the movie by name, the other to search for the movie once found by id.)

IMDB API提供每小时3000的请求,这是不到RT总体但如果用户最终有那么它可以接受他和他所有的朋友之间的低于3000电影(这是有可能的)。它只是让我担心了一下该应用程序可以基本上切断用户。

IMDB API offers 3000 requests per hour, which is less than RT overall but if the user ends up having less than 3000 movies (which is likely) between him and all his friends then its acceptable. It just worries me a bit that the app could essentially cut off the user.

theMovieDB.org提供每10秒,这是太慢10个请求。

theMovieDB.org offers 10 requests per 10 seconds, which is too slow.

这是我已经尝试了几下,我找一个更快或提供较小,但选择性的金额信息的批量请求(我只想要一些东西,名称,类型,等级,说明将是不错,但我甚至不需要这一点)。

These are the few I have tried, I am looking for one that is faster or offers batch requests for smaller but selective amounts of information (I only want a few things, name, genre, rating, description would be nice but I don't even need that).

推荐答案

好像游离碱是最好的解决方案。他们提供他们的使用限制所列出每天10万的请求,每人/机构:
https://developers.google.com/freebase/usage-limits

It seems like FreeBase is the best solution. They offer 100k requests per day, per person / organization as outlined on their usage limits: https://developers.google.com/freebase/usage-limits

还有一个独立的项目去, http://www.omdbapi.com/ 这是供电关中游离碱,使API调用更简单,有兴趣的人士。

There is also an independent project going, http://www.omdbapi.com/ which is powered off Freebase that makes the API calls simpler, for anyone interested.

这篇关于电影数据库API和批处理请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆