From acd7e30c6997419cb5645110dc6be89869a5f22d Mon Sep 17 00:00:00 2001 From: Pranav Barthwal <110532770+PranavBarthwal@users.noreply.github.com> Date: Sun, 18 Feb 2024 15:32:28 +0000 Subject: [PATCH] API response from NASA gallery --- app.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 937f1ce..c41dc2d 100644 --- a/app.js +++ b/app.js @@ -182,4 +182,19 @@ function displayRover(){ document.querySelector('.land').textContent = land document.querySelector('.launch').textContent = launch document.querySelector('.status').textContent = status -} \ No newline at end of file +} + + + + + + +// API CALL 3 : NASA Photo Video Gallery +fetch('https://images-api.nasa.gov/search?q=apollo') + .then((response) => { + return response.json() + }).then((data) => { + console.log(data) + + }) + .catch((error) => console.error(error)) \ No newline at end of file