The Movie Database Support Forum

Hey Guys, i checked almost all the api's, is there a way to get the directors of movies. it will be a great help if anyone can suggest me

3 Antworten (Seite 1 von 1)

Jump to last post

Hi @KushTehlan, you can call the /credits method to get a list of the movie crew. You can of course use this with append_to_response as well.

Hi Travis.. thanks. one more query. I am using "movie" details api to get imdb_id. I am using scala and i am making my requests like this:

"val TmdbRequest: HttpResponse[String] = Http("https://api.themoviedb.org/3/movie/")
      .param("movie_id", "550" + "?")
      // .param("?","?")
      .param("api_key", "######")
      .param("language", "en-US")
      .param("append_to_response", "reviews")
      .asString"

Now the problem is of charachter "?" . i want to collect for several movie id . My problem is how do i parse "?" in query. If i do manually for every movie it works fine. i want a way so that i keep passing my movie id into this reques

Having never used Scala, I can't answer for sure but it looks like you're just building out a URL with the HttpResponse object. Something like this is what I would think would work:

val TmdbRequest: HttpResponse[String] = Http("https://api.themoviedb.org/3/movie/550")
      .param("api_key", "######")
      .param("language", "en-US")
      .param("append_to_response", "reviews")
      .asString

It looks like HttpResponse is handling building the URL for you, so you don't need to worry about ? or &.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden