I am thinking to use the google news API but confused with the document that how to implement it.
If there am any other good news API then also I am ready to use it.
Documentation for everything is being same but I am not able to understand that. they are providing a link so added the linked in my HTML page but where the JSON data is going to be stored?
I got the solution we have to make an ajax call. if you don’t know this then you do it like this
$.getJSON(“https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=53f08a8a7ab3407cb54b07ca5490730a”, function (data) {
var response = data.articles;
});
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.