{"openapi":"3.0.3","info":{"title":"QuotesNova API","version":"1.0.0","description":"Read published, attributed quotes as JSON. API keys require an active QuotesNova Plus membership.","termsOfService":"https://www.quotesnova.com/page/terms","contact":{"name":"QuotesNova support","url":"https://www.quotesnova.com/page/contact"}},"servers":[{"url":"https://www.quotesnova.com"}],"externalDocs":{"description":"API reference","url":"https://www.quotesnova.com/api"},"tags":[{"name":"Quotes"}],"paths":{"/api/quotes":{"get":{"tags":["Quotes"],"operationId":"listQuotes","summary":"List quotes","description":"Published quotes, newest first.","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":12},"description":"How many quotes to return."},{"name":"category","in":"query","schema":{"type":"string"},"description":"Category slug."},{"name":"author","in":"query","schema":{"type":"string"},"description":"Author slug (the author_slug of a quote). An unknown author returns an empty list."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Search words in the quote text or author."}],"responses":{"200":{"description":"A list of quotes.","content":{"application/json":{"schema":{"type":"object","required":["ok","count","data"],"properties":{"ok":{"type":"boolean"},"count":{"type":"integer"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Quote"}}}}}}},"401":{"description":"No API key, or the key is invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key owner does not have an active QuotesNova Plus membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/qotd":{"get":{"tags":["Quotes"],"operationId":"getQuoteOfTheDay","summary":"Quote of the day","description":"Today's featured quote. No API key needed.","security":[],"responses":{"200":{"description":"The quote of the day, or null.","content":{"application/json":{"schema":{"type":"object","properties":{"quote":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"slug":{"type":"string","nullable":true},"text":{"type":"string"},"author":{"type":"string"},"authorSlug":{"type":"string","nullable":true},"verified":{"type":"boolean"},"image":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true},"likes":{"type":"integer"}}}}}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"A key starting with qn_live_, created in Settings > API (QuotesNova Plus)."},"BearerAuth":{"type":"http","scheme":"bearer","description":"The same key, sent as a Bearer token."}},"schemas":{"Quote":{"type":"object","required":["id","slug","quote","author","verified","likes","created_at","url"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"quote":{"type":"string"},"author":{"type":"string"},"author_slug":{"type":"string","nullable":true},"verified":{"type":"boolean"},"category":{"type":"string","nullable":true},"image":{"type":"string","format":"uri","nullable":true},"likes":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri"}}},"Error":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","example":false},"error":{"type":"string"},"plus_required":{"type":"boolean"},"upgrade_url":{"type":"string","format":"uri"},"docs":{"type":"string","format":"uri"}}}}}}