Get one random quote
fetch("https://programming-quotesapi.vercel.app/api/random").then((response) => response.json()).then((quote) => console.log(quote));
Get one random quote using the authors name
fetch("https://programming-quotesapi.vercel.app/api/random?author=Linus Torvalds").then((response) => response.json()).then((quote) => console.log(quote));
Get 10 random quotes
fetch("https://programming-quotesapi.vercel.app/api/bulk").then((response) => response.json()).then((quote) => console.log(quote));
Get 10 random quotes using the authors name
fetch("https://programming-quotesapi.vercel.app/api/bulk?author=Linus Torvalds").then((response) => response.json()).then((quote) => console.log(quote));
Get all available quotes
fetch("https://programming-quotesapi.vercel.app/api/available").then((response) => response.json()).then((quote) => console.log(quote));
Get all available quotes using the authors name
fetch("https://programming-quotesapi.vercel.app/api/available?author=Linus Torvalds").then((response) => response.json()).then((quote) => console.log(quote));
Created by Omer Mohideen © 2023