I need to find a random api, use it on python to pull requests.
First I need to present all the information of the api and then play with it while giving examples.
The most important step is that I need to make a request to that api and use the data from that request to make additional requests.
For example using a tv shows api, requesting the id of a show from the api then using that id for a request to show the episodes of the that tv show (We cant get the episodes without that first request).
The api could be about anything (I couldnt find an api that
works well with the above task)
You can use google API but you need a API Key for that.
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=20&q=datascience&type=video&key=YOUR_API_KEY
I have one another method. If you want to fetch data (Video by ID) You can use below code.
var id = 'dQw4w9WgXcQ'; //ID of video.
var url = 'https://www.you*tube.com/watch?v=' + id;
$.getJSON('https://noembed.com/embed',
{format: 'json', url: url}, function (data) {
alert(data.title); //Whatever you wanna fetch.
});
Get Answers For Free
Most questions answered within 1 hours.