Edge API

The original QuoteLore dynamic routes, mounted at /edge. Same dataset and response shape as QuoteLore. Use this if you want the shorter edge-style surface:

https://api.casw.app/edge/quote?id=1

Host: https://api.casw.app

Base path: /edge

CORS: open

Methods: GET, HEAD, OPTIONS

Raw markdown: /docs/edge.md

For list, tag, and author-search endpoints, use QuoteLore.


Endpoints

MethodPathQueryExample
GET/edge—Catalog
GET/edge/quoteid*/edge/quote?id=1
GET/edge/searchq*, page, limit, filters/edge/search?q=unexamined%20life
GET/edge/randomcount, filters/edge/random?tag=science&photo=1
GET/edge/today—/edge/today
GET/edge/authorslug*/edge/author?slug=socrates

* = required.


Shared filters

On /edge/search and /edge/random:

ParamDescription
tagfilm, indian-thinkers, leaders, literature, philosophy, science, sports
authorAuthor slug
minlen / maxlenQuote length
photo=1Authors with a portrait
gradeA or B
film1 film dialogue only, 0 exclude it
kindperson or character
page / limitSearch pagination (limit max 50)
count/random only, 1–20

GET /edge/quote

GET https://api.casw.app/edge/quote?id=1

Sample response:

{
  "id": 1,
  "text": "The unexamined life is not worth living.",
  "author": {
    "name": "Socrates",
    "slug": "socrates",
    "url": "https://api.casw.app/quotelore/author?slug=socrates"
  },
  "tags": ["philosophy"],
  "url": "https://api.casw.app/quotelore/quote?id=1"
}

Canonical url fields point at /quotelore, even when you called /edge.


GET /edge/search

GET https://api.casw.app/edge/search?q=unexamined%20life
GET https://api.casw.app/edge/search?q=gandhi&tag=leaders&limit=10
{
  "query": "unexamined life",
  "total": 1,
  "page": 1,
  "limit": 20,
  "results": []
}

q must be at least 2 characters.


GET /edge/random

GET https://api.casw.app/edge/random
GET https://api.casw.app/edge/random?tag=science&photo=1
GET https://api.casw.app/edge/random?count=3&author=sagan

count=1 (default) returns a quote object. count>1 returns { "count": n, "quotes": [...] }.


GET /edge/today

GET https://api.casw.app/edge/today
{
  "date": "2026-11-28",
  "timezone": "Asia/Kolkata",
  "quote": { "id": 1240, "text": "..." }
}

Same quote for everyone until midnight Asia/Kolkata.


GET /edge/author

GET https://api.casw.app/edge/author?slug=socrates

Returns the author profile plus quotes (without a nested author object on each quote).


Errors

Same as QuoteLore: missing_id, missing_slug, q_too_short, not_found, no_match.