Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

xuuto's avatar
Level 2

movie website , how to get casts of a movie in my DB, from external Api tmdb

hi, iam working a project that i want to build a movie website, i have a movie model, which stores movie name, movie url , movie etc.

but when iam showing that specific movie in to the end user , i want to also show the casts of this movie from external Api tmdb, when the user clicks a specific cast thumnail, i want to render actors page for details for that actor from external api tmdb.

so how can i incorporate this casts which are not stored in my db but from external api, tmdb to this movie.

i searched i heard something about imdb_id.

i saw a lot of websites built like that.

when you inspect the url of the image it gives like this https://image.tmdb.org/t/p/w276_and_h350_face/kflgvFCFZnpTRbKmJWn5T0G5EKI.jpg

the website that i think is using something like this concept is www.fanproj.com

0 likes
2 replies
xuuto's avatar
Level 2

yeah. i have seen that course. but it about only consuming that external api of movies and rendering in pages. but my project is little diffrent from that, as i have table to save movie details and upload the movie, but to get the casts of this uploaded movie from that api.

get the point?

Please or to participate in this conversation.