Find an API

Search public APIs with auth details & Postman guides

← All APIs

ZenQuotes API

zenquotes.io · Developer Tools

Developer Tools No Auth Free & Open Quotes Developer Tools Inspiration

Inspirational and motivational quotes API. Returns single or multiple quotes in JSON. No API key required for basic use.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get random quote

Get a single random inspirational quote.

https://zenquotes.io/api/random

Hover any highlighted part to learn what it does

curl -X GET "https://zenquotes.io/api/random"
import requests
response = requests.get(
    "https://zenquotes.io/api/random",
)
print(response.json())
const url = 'https://zenquotes.io/api/random';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://zenquotes.io/api/random"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://zenquotes.io/api/random")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://zenquotes.io/api/random";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get quote of the day

Get today's quote of the day.

https://zenquotes.io/api/today

Hover any highlighted part to learn what it does

curl -X GET "https://zenquotes.io/api/today"
import requests
response = requests.get(
    "https://zenquotes.io/api/today",
)
print(response.json())
const url = 'https://zenquotes.io/api/today';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://zenquotes.io/api/today"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://zenquotes.io/api/today")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://zenquotes.io/api/today";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. No API key needed
  2. Random: GET https://zenquotes.io/api/random
  3. Today: GET https://zenquotes.io/api/today
  4. 10 quotes: GET https://zenquotes.io/api/quotes

Open documentation ↗