The Hindu API endpoint
Lists the The Hindu section slugs that the headlines endpoint accepts, covering news, opinion, business, sport, entertainment, sci-tech, education, life and style, society, books and food, for example `news-national`, `sport-cricket` and `food-recipes`. Each entry has a `slug`, `name` and `url`.
/thehindu/sectionsReturns the public The Hindu section slugs accepted by thehindu-headlines: news, news-national, news-international, news-states, news-cities, opinion, opinion-editorial, opinion-cartoon, opinion-columns, opinion-op-ed, opinion-interview, opinion-lead, opinion-letters, opinion-open-page, business, business-agri-business, business-economy, business-industry, business-markets, business-budget, sport, sport-cricket, sport-football, sport-hockey, sport-tennis, sport-athletics, sport-motorsport, sport-races, sport-other-sports, entertainment, entertainment-art, entertainment-dance, entertainment-movies, entertainment-music, entertainment-reviews, entertainment-theatre, data, sci-tech-health, sci-tech-science, sci-tech-technology, sci-tech-technology-gadgets, sci-tech-technology-internet, sci-tech-energy-and-environment, sci-tech-agriculture, education, education-careers, education-colleges, education-schools, life-and-style, life-and-style-fashion, life-and-style-fitness, life-and-style-homes-and-gardens, life-and-style-luxury, life-and-style-motoring, life-and-style-travel, society, society-faith, society-history-and-culture, books, books-books-authors, books-books-reviews, children, food, food-dining, food-features, food-guides, food-recipes, real-estate.
| Field | Filled in, of 68 checked | Values in the sample |
|---|---|---|
| slug | 68 | |
| name | 68 | “News” and 67 other values |
| url | 68 | thehindu.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/thehindu/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "news-national",
"name": "India",
"url": "https://www.thehindu.com/news/national/"
}
]
}
}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/thehindu/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"