Hindustan Times API endpoint
Lists the 24 Hindustan Times sections accepted by `hindustantimes-headlines`, including `india-news`, `world-news`, `cricket`, `real-estate`, `nri` and `editors-pick`. Each entry has a `slug`, display `name` and section `url`. Takes no parameters.
/hindustantimes/sectionsReturns the public Hindustan Times section slugs accepted by hindustantimes-headlines: india-news, world-news, cities, business, sports, cricket, entertainment, lifestyle, astrology, education, technology, opinion, science, books, real-estate, car-bike, nri, htcity, ht-insight, ht-explainers, editorials, trending, india-and-the-elections, editors-pick.
| Field | Filled in, of 24 checked | Values in the sample |
|---|---|---|
| slug | 24 | |
| name | 24 | “India News” and 23 other values |
| url | 24 | hindustantimes.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/hindustantimes/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "india-news",
"name": "India News",
"url": "https://www.hindustantimes.com/india-news"
}
]
}
}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/hindustantimes/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"