Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 14, 2022 04:22 pm GMT

Hey! Did you know has an API??

Have you ever wanted to embed a "Recent Posts" in your website? has an API for this.

Check out this example:

Just make a simple HTTP request to this URL:

Example JS usage:

fetch("")  .then(res => res.json())  .then(res => {  res.forEach(article => {    var item = document.createElement("div")    item.innerHTML = `<b>${article.title}</b><p></p>${article.description}</p>`;    item.classList.add("card")    document.body.appendChild(item)  })})
  • screw IE. nobody uses it lol

Original Link:

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To