The TLDR answer:

Using a third-party service is the best option possible according to me. One service which I have been using for years is It hasn't let me down until now.

Here are the code snippets you can use as per your framework:

// If you are using angular

this.http.get('').subscribe(data => {

// For React use axios or fetch API.
    res => console.log(res.json())