The Movie Database Подршка

I am making an android app that fetch some actors image randomly and asks the user to identify them.

6 одговора (на страни 1 од 1)

Jump to last post

Since there are many (unknown) actors on TMDb I would suggest to fetch the list of popular people first with

/3/person/popular http://docs.themoviedb.apiary.io/#get-%2F3%2Fperson%2Fpopular

You will receive a list of about 250 persons, divided into pages of 20 each. Fetch all pages and put them into one large array (but mind the request limit. Maybe cache the results.)

Then randomly select persons out of this array. The list will contain actors as well as popular directors/writers, because there is no information like "person x is an actor" in the database. It would't make sense, since it differs from movie to movie. An actor on movie A could be a director on movie B, or vice versa.

I hope this helps and I hope my info is correct, since I started using the API only a few days ago myself :)

When I put the following URL in the browser I got the NOT FOUND page:

http://api.themoviedb.org/3/person/popular/550?api_key=xxxx

I'm sure I provided the right key

There's no id to provide with the popular method. To query for a person, use:

http://api.themoviedb.org/3/person/550?api_key=###

It returns me this:

{
  "adult": false,
  "also_known_as": [],
  "biography": null,
  "birthday": null,
  "deathday": null,
  "homepage": null,
  "id": 550,
  "imdb_id": "nm0865189",
  "name": "Jennifer Todd",
  "place_of_birth": null,
  "popularity": 1.4,
  "profile_path": null
}

"profile_path" is where the image is normally kept. Because that is null, that means there is no image. For your app, I would skip that entry

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се