GET
/api/v1/newsSri Lanka News Feed API
Structured, sourced writeups on trending Sri Lanka topics, each reviewed and approved by a human before publishing. Every post lists the independent source URLs used to verify it. Call with ?slug=<slug> for one full post (title, full body, every source), or without it for a paginated, searchable list of summaries.
Parameters
| Param | In | Required | Description |
|---|---|---|---|
| slug | query | no | Get one full post by slug, including its full body and source URLs. |
| q | query | no | Free-text search across title, excerpt, tags and keywords. |
| category | query | no | Filter to one category, e.g. Sports, Economy, Tech. |
| limit | query | no | Results per page, 1-100 (default 20). |
| offset | query | no | Pagination offset (default 0). |
Request
curl "https://induwara.lk/api/v1/news?limit=5"JavaScript (SDK):
import { InduwaraLK } from "https://induwara.lk/sdk/induwaralk.js";
const api = new InduwaraLK();
const data = await api.news(/* … */);Response
{
"ok": true,
"data": {
"total": 3, "limit": 20, "offset": 0, "query": null, "category": null,
"categories": ["Economy", "Sports", "Tech"],
"feed": "https://induwara.lk/news/feed.xml",
"posts": [
{ "slug": "rumesh-pathirage-wins-the-diamond-league-final-a-first-for-sri-lanka",
"title": "Rumesh Pathirage wins the Diamond League Final — a first for Sri Lanka",
"category": "Sports", "publishedAt": "2026-09-06T06:45:26.000Z",
"readingMinutes": 2, "sourceCount": 3,
"url": "https://induwara.lk/news/rumesh-pathirage-wins-the-diamond-league-final-a-first-for-sri-lanka" }
]
}
}Frequently asked questions
- Is there a JSON API for Sri Lanka news?
- Yes. GET /api/v1/news returns a searchable, paginated list of short, sourced writeups on trending Sri Lanka topics. Add ?slug=<slug> to get one full post with its complete body and every independent source URL used to verify it.
- How do I get the sources behind a Sri Lanka news post via API?
- Call /api/v1/news?slug=<slug> — the response includes a sources array listing every independent URL used to verify the post's facts before a human approved it for publishing.