News18 API endpoint
Lists the 18 News18 section slugs accepted by `news18-headlines`, such as `india`, `world`, `cricket`, `explainers` and `education-career`. Each entry has its `slug`, display `name` and `url`.
/news18/sectionsReturns the public RSS section slugs accepted by news18-headlines: india, world, cricket, business, sports, movies, lifestyle, tech, auto, opinion, elections, politics, viral, explainers, education-career, astrology, cities, breaking-news.
| Field | Filled in, of 18 checked | Values in the sample |
|---|---|---|
| slug | 18 | |
| name | 18 | “India” and 17 other values |
| url | 18 | news18.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/news18/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "india",
"name": "India",
"url": "https://www.news18.com/commonfeeds/v1/eng/rss/india.xml"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | newsplatform.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].slug | string | No | ||||
| data.sections[].url | string | No |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/news18/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"