Docs

Below you'll find examples using Fetch API but you can use any other http library out there.

Important Notes

  1. Default rate limit is 100 requests per hour.

Random Quote

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));

10 Random Quotes

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));

Available Quotes

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