Home > Back-end >  How can i get genres and descriptions of movies in IMBd API?
How can i get genres and descriptions of movies in IMBd API?

Time:02-24

so Im using the Top 250 Movies database in IMDb's API and i need the genres and descriptions of all the movies but i looked in enter image description here

CodePudding user response:

Use the following IMPORTXML:

For Plot use :

=IMPORTXML("imdb movie url","//*[@data-testid='plot-xl']")

For Genres use :

=IMPORTXML("imdb movie url","//*[@data-testid='genres']")

Example:

enter image description here

Reference:

  • Related