Skip to content

API Endpoints

Complete API reference for the Thamizhi Cloudflare Workers backend.

https://api.thamizhi.app/v1

Most endpoints require an API key or JWT token:

Authorization: Bearer <token>
GET /v1/news

Returns the published news feed.

ParameterTypeDefaultDescription
categorystringallFilter by category
districtstringallFilter by district
pageinteger1Page number
limitinteger20Items per page (max 50)

Response:

{
"data": [
{
"id": "abc123",
"title_ta": "சென்னையில் 61 வயது மூதாட்டி கூட்டு பாலியல் வன்கொடுமை",
"title_en": "61-yr-old woman gangraped in Chennai",
"summary_50": "...",
"category": "crime_against_women",
"district": "Chennai",
"poster_url": "https://images.thamizhi.app/posters/abc123.png",
"badge": "ai_verified",
"published_at": "2026-05-28T04:00:00Z",
"source": "Times of India"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 156
}
}
GET /v1/news/:id
POST /v1/citizen/submit
FieldTypeRequiredDescription
titlestringyesNews title
descriptionstringyesFull description
image_urlsstring[]noAttached image URLs
latitudenumbernoLocation latitude
longitudenumbernoLocation longitude
incident_datestringyesDate of incident (ISO 8601)
POST /v1/scrape
FieldTypeRequiredDescription
urlstringyesURL to scrape and process
TierRequests per hour
Unauthenticated60
Authenticated (normal)300
Authenticated (expert)1000