惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
S
Secure Thoughts
I
Intezer
Project Zero
Project Zero
Stack Overflow Blog
Stack Overflow Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Full Disclosure
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
人人都是产品经理
人人都是产品经理
博客园_首页
J
Java Code Geeks
Recorded Future
Recorded Future
K
Kaspersky official blog
GbyAI
GbyAI
S
Schneier on Security
The Cloudflare Blog
Spread Privacy
Spread Privacy
C
Cisco Blogs
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
Know Your Adversary
Know Your Adversary
T
Tenable Blog
A
Arctic Wolf
Blog — PlanetScale
Blog — PlanetScale
H
Hacker News: Front Page
The Last Watchdog
The Last Watchdog
O
OpenAI News
Last Week in AI
Last Week in AI
B
Blog RSS Feed
T
Troy Hunt's Blog
G
GRAHAM CLULEY
N
Netflix TechBlog - Medium
Vercel News
Vercel News
量子位
The Register - Security
The Register - Security
Google Online Security Blog
Google Online Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
Cisco Talos Blog
Cisco Talos Blog
U
Unit 42
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I Built a Free Public Random Quotes API — No Key, No Auth, Just Use It
Prayush Adhi · 2026-05-07 · via DEV Community

Hey there! So you've been Googling for a free quotes API that doesn't require signing up, doesn't throttle you after 100 requests, and actually has useful filters?

Yeah, I built that. It's live, it's public, and I want you to use it.

Base URL: https://quotesapi.prayushadhikari.com.np/api

No API key. No authentication. No credit card. Just copy the URL and start fetching quotes. Let me show you everything it can do.


Why Another Quotes API?

Most random quotes APIs I found while building projects were either:

  • Dead (domain expired, RIP)
  • Rate-limited to the point of uselessness
  • Behind a signup wall for basic features
  • Returning the same 20 quotes forever

I needed something with real filtering — by author, category, text search, quote length. So I built it. And since I built it anyway, I hosted it publicly so you don't have to.


Try It Right Now

Open your browser or terminal and hit this:

curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes/random"

Enter fullscreen mode Exit fullscreen mode

You'll get back:

{
  "data": [
    {
      "quote": "I feel bare. I didn't realize I wore my secrets as armor until they were gone and now everyone sees me as I really am.",
      "author": "Veronica Roth, Insurgent",
      "category": ["armor", "secrets"]
    }
  ],
  "meta": {
    "total": 499708,
    "limit": 1,
    "offset": 0,
    "order": "random",
    "returned": 1
  }
}

Enter fullscreen mode Exit fullscreen mode

Notice category is an array — a single quote can belong to multiple categories. And yeah, meta.total is 499,708. Nearly half a million quotes. That's not a typo.

That's it. No setup, no tokens, no nonsense. It just works.


All Available Endpoints

Hit the discovery endpoint first — it gives you the full route map:

curl -s "https://quotesapi.prayushadhikari.com.np/api"

Enter fullscreen mode Exit fullscreen mode

Here's what's available:

Endpoint What it does
GET /api Route map — your starting point
GET /api/quotes Paginated quotes with all filters
GET /api/quotes/random Random quote(s), default limit=1
GET /api/categories All available categories
GET /api/authors Searchable author list
GET /api/health Load status + diagnostics

The Random Quotes Endpoint

The most popular use case — get a random quote:

# Single random quote (default)
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes/random"

# 5 random quotes at once
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes/random?limit=5"

Enter fullscreen mode Exit fullscreen mode

This is what you want for daily quote widgets, Discord bots, browser extensions, email footers — anything that needs a surprise every time.


Filters That Actually Work

This is where this free quotes API beats most alternatives. You're not stuck with just "give me random." Let me show you what's possible.

Filter by Category

# Quotes about wisdom
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?category=wisdom&limit=5"

# Multiple categories (OR — matches either)
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?categories=wisdom,motivation&limit=10"

# Multiple categories (AND — must match all)
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?categories=wisdom,motivation&match_categories=all"

# Exclude a category
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?exclude_category=politics&limit=10"

Enter fullscreen mode Exit fullscreen mode

Filter by Author

# Partial match, case-insensitive
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?author=oscar&limit=5"

# Exact match
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?author_exact=Oscar%20Wilde"

# Exclude specific author
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?exclude_author=Napoleon&limit=10"

Enter fullscreen mode Exit fullscreen mode

Full-Text Search

# Search inside quote text
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?q=journey&order=text&limit=20"

Enter fullscreen mode Exit fullscreen mode

Quote Length Filters

Perfect when you have a UI constraint — like a widget that only fits a tweet-length quote:

# Short quotes only (under 100 characters)
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?max_len=100&limit=5"

# Medium length range
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?min_len=80&max_len=200&limit=5"

Enter fullscreen mode Exit fullscreen mode


Discover What's in the Dataset

Before you build filters, explore what categories and authors exist:

# All categories
curl -s "https://quotesapi.prayushadhikari.com.np/api/categories"

# Categories with quote counts
curl -s "https://quotesapi.prayushadhikari.com.np/api/categories?counts=true"

# Search authors by name
curl -s "https://quotesapi.prayushadhikari.com.np/api/authors?q=einstein&limit=10"

# All authors (up to 100)
curl -s "https://quotesapi.prayushadhikari.com.np/api/authors"

Enter fullscreen mode Exit fullscreen mode

The counts=true on categories returns { name, count }[] which is exactly what you need to build a category picker UI.


The Seed Param — My Favorite Feature

This is the most underrated param in this random quotes API.

curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?order=random&seed=42&limit=10"

Enter fullscreen mode Exit fullscreen mode

Same seed = same "random" order, every single time. Use cases:

  • Daily quote of the day — use today's date as the seed (seed=20250506)
  • Shareable quote lists — send someone a seed and they see what you see
  • Reproducible testing — no flaky randomness in your test suite

Pagination for the Full Dataset

Random order doesn't support offset — that's intentional. But if you switch to deterministic ordering, pagination works perfectly:

# Page 1
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?order=text&limit=20&offset=0"

# Page 2
curl -s "https://quotesapi.prayushadhikari.com.np/api/quotes?order=text&limit=20&offset=20"

Enter fullscreen mode Exit fullscreen mode

The meta field in every response gives you total and returned so you can compute pages on your end.


Using the API in JavaScript

This quotes API supports CORS, so you can call it directly from the browser — no backend needed.

// Fetch a single random quote
const getRandomQuote = async () => {
  const res = await fetch('https://quotesapi.prayushadhikari.com.np/api/quotes/random');
  const { data } = await res.json();
  return data[0];
};

// Fetch quotes by category
const getQuotesByCategory = async (category, limit = 5) => {
  const params = new URLSearchParams({ category, limit });
  const res = await fetch(`https://quotesapi.prayushadhikari.com.np/api/quotes?${params}`);
  const { data, meta } = await res.json();
  return { quotes: data, total: meta.total };
};

// Daily quote using date as seed
const getDailyQuote = async () => {
  const today = new Date().toISOString().slice(0, 10).replace(/-/g, '');
  const params = new URLSearchParams({ order: 'random', seed: today, limit: 1 });
  const res = await fetch(`https://quotesapi.prayushadhikari.com.np/api/quotes?${params}`);
  const { data } = await res.json();
  return data[0];
};

// Example usage
const quote = await getRandomQuote();
console.log(`"${quote.quote}" — ${quote.author}`);

Enter fullscreen mode Exit fullscreen mode


Using It in Python

import requests
from datetime import date

BASE_URL = "https://quotesapi.prayushadhikari.com.np/api"

def get_random_quote(category=None, limit=1):
    params = {"limit": limit}
    if category:
        params["category"] = category

    res = requests.get(f"{BASE_URL}/quotes/random", params=params)
    data = res.json()
    return data["data"]

def get_daily_quote():
    seed = date.today().strftime("%Y%m%d")
    res = requests.get(f"{BASE_URL}/quotes", params={"order": "random", "seed": seed, "limit": 1})
    return res.json()["data"][0]

# Get a random motivation quote
quotes = get_random_quote(category="motivation")
for q in quotes:
    print(f'"{q["quote"]}"{q["author"]}')

# Get today's quote (same every time you call it today)
daily = get_daily_quote()
print(f'Daily: "{daily["quote"]}"')

Enter fullscreen mode Exit fullscreen mode


All Query Parameters at a Glance

Here's the full reference for GET /api/quotes and GET /api/quotes/random:

Parameter Description Example
author Substring match on author name author=einstein
author_exact Exact author name author_exact=Albert%20Einstein
exclude_author Exclude this author exclude_author=Napoleon
category Must include this category category=wisdom
categories Comma-separated, OR logic categories=wisdom,love
match_categories=all Require ALL listed categories match_categories=all
exclude_category Exclude this category exclude_category=politics
q Substring search in quote text q=courage
min_len / max_len Quote character length range min_len=50&max_len=200
limit Results per page (default 10, max 100) limit=25
offset Pagination offset (not for random) offset=40
order random, author, text, none order=author
seed Deterministic shuffle for random seed=42
legacy=true Returns bare JSON array legacy=true
meta=false Omit meta object from response meta=false

What Can You Build With This?

Here's what I'd love to see people building:

  • Daily quote bots for Discord, Telegram, or Slack
  • New tab browser extensions with category-filtered quotes
  • Motivational widgets on personal portfolio sites
  • Quote-of-the-day email newsletters using the seed param
  • Mobile apps that match quote moods to user input
  • Screensaver or wallpaper generators with random quotes
  • Obsidian plugins that pull quotes into your daily notes
  • CLI tools that show a quote on every terminal open

The API handles CORS for all GET requests, so browser-direct calls work without a proxy backend.


Troubleshooting

Getting empty data: []?

Hit the health endpoint first:

curl -s "https://quotesapi.prayushadhikari.com.np/api/health"

Enter fullscreen mode Exit fullscreen mode

It'll tell you if the full dataset loaded correctly or if there's a fallback in use.

Filters returning fewer results than expected?

You might be combining too many strict filters. Try loosening them one at a time. The q text search is a substring match, so q=inspiration won't match a quote containing "inspire."

Need ALL quotes, not just 10?

Use order=text (or order=author) with offset for pagination. meta.total tells you how many exist total. Don't use order=random with offset — it won't work.


Wrapping Up

I built this free random quotes API because I was tired of hitting dead endpoints and rate limits every time I wanted to add a quote feature to a side project. Now you don't have to be.

It's free. It's public. It's not going anywhere.

Start here: https://quotesapi.prayushadhikari.com.np/api

Drop a comment with what you're building — I read every single one and it helps me figure out what to add next. Want me to cover setting up your own instance, adding new quote datasets, or building a Discord bot with this? Let me know.

I'm Prayush Adhikari, grinding through computer engineering and shipping things in public.

Now go fetch some quotes.