How to access all the data from api

How to access all the data using API ? i can access only specific data like only released dates of a movie but i want total details of the movie

@busangaribhargavredd

Which API are you talking about? Can you share the API or the topic to which you are referring to?

i am doing internship project on movie finder
http://www.omdbapi.com/​. in this api i am only able to access any one of the element
Eg: released date or awards
but i want to access all data at one time.

i am doing internship project on movie finder
http://www.omdbapi.com/​. in this api i am only able to access any one of the element
Eg: released date or awards
but i want to access all data at one time.

Hi @busangaribhargavredd,

Omdb api return all the data. Add the console log to the response and check the output in console.

For example:

{"Title":"Hello","Year":"2008","Rated":"N/A","Released":"10 Oct 2008","Runtime":"129 min","Genre":"Drama, Romance","Director":"Atul Agnihotri","Writer":"Atul Agnihotri (screenplay), Chetan Bhagat (additional dialogue), Chetan Bhagat (book), Jalees Sherwani (lyrics), Alok Upadhyay (additional dialogue)","Actors":"Sharman Joshi, Amrita Arora, Sohail Khan, Isha Koppikar","Plot":"Call-center workers receive a phone call from God.","Language":"Hindi","Country":"India","Awards":"N/A","Poster":"https://m.media-amazon.com/images/M/MV5BZGM5NjliODgtODVlOS00OWZmLWIzYzMtMTI2OWIzMTM1ZGRhXkEyXkFqcGdeQXVyNDUzOTQ5MjY@._V1_SX300.jpg","Ratings":[{"Source":"Internet Movie Database","Value":"3.3/10"},{"Source":"Rotten Tomatoes","Value":"19%"}],"Metascore":"N/A","imdbRating":"3.3","imdbVotes":"1,897","imdbID":"tt1087856","Type":"movie","DVD":"05 Apr 2018","BoxOffice":"N/A","Production":"N/A","Website":"N/A","Response":"True"}

Share your current code with us.

Eg:In my code if i give moviedetails.Released then i will get released date.
if i give moviedetails.Awards then i get awards details. but i want both awards,released date to be displayed but i can display any one .

Hi @busangaribhargavredd,

Share your current code with me so that I can help you out.

Hi @busangaribhargavredd,

Create different html element for each of the fields.

For example:

<p id="output1">

<p id="output2">

Then
update the elements by id.

document.getElementById("output1").innerHTML = movie_details.awards
document.getElementById("output2").innerHTML = movie_details. Released

Do let me know in case in case you need any other information.

Thanks Sir.my doubt was clarified.

1 Like

sir ,i am working on movie finder project,the api [http://www.omdbapi.com/​] returning the link of the poster.how to get it on the website

Hi @busangaribhargavredd,

Check this link HTML DOM Image src Property

Do let me know in case you need any other information.

Got it sir,thank you

1 Like