Use the Youtube API


#1

Hello,

My name is Billy. I have finished learning Youtube API on Codecademy. The last result is I got the JSON object in my HTML file. In order to use that JSON, is it true to copy all the JSON from beginning to end and paste in a .json file then use AJAX to call the .json file ?

Thanks


#2

Link to exercise, please. Thank you.


#3

@billyhalim,
You have looked at

Meet JSON
https://www.codecademy.com/courses/javascript-beginner-en-xTAfX/0/1?curriculum_id=50802b7d5225bf0200000767


#4

I have uploaded a screenshot. Look, there is a JSON object. So, should I copy all to a .json file then I fetch the data using XMLHttpRequest ?


#5

I have finished the course in 3 minutes. Have a look at my screenshot of my reply to @mtf


#6

@billyhalim,
As you are keeping your cards close to the chest
i would recommend a google search
javascript youtube how to use the json file using youtube api site:stackoverflow.com
and be on your way.
( be aware that downloading files is against the ToS )