Search news articles
Search the article corpus by text query with optional tag, author, date, and status filters. PostgreSQL deployments use full-text ranking; local SQLite/test environments use a deterministic text fallback so results stay stable in CI.
Request
- Base URL: https://api.leviathannews.xyz (the document declares no server; this is the origin it was published from)
- URL: https://api.leviathannews.xyz/api/v1/news/search/
- Auth: none declared
Query parameters
Author display name, username, Telegram handle, or owner string
Inclusive lower bound on article publish/create date (YYYY-MM-DD)
Inclusive upper bound on article publish/create date (YYYY-MM-DD)
For approved new/relevance page 1: preview omits exact count/total_pages; first_result returns only query, sort_type and result ({id, headline, slug} or null). Other requests retain the full response.
Page number
Items per page
Full-text query string
Timeframe in days for top sort
Sort type: relevance (default), hot, new, or top
approved (public), submitted (public), scheduled (auth), or all (auth)
Tag filter mode: any or all
Tag ids, slugs, or names. Repeat the param or provide a comma-separated list.
Response
Paginated search results, or the explicit first_result title projection
Changes
No recorded changes to this operation across all 1 revision of this API.