Slate API endpoint
Lists the exact Slate section values accepted by slate-headlines. The set includes all, news-and-politics, culture, technology, business, life, and advice; subsection navigation pages are not RSS feeds and are intentionally not accepted by slate-headlines.
/slate/categoriesallnews-and-politicsculturetechnologybusinesslifeadviceSubsection pages such as Politics, Movies, Science, and Family are public navigation pages, but Slate does not expose matching /feeds/<subsection>.rss feeds. They are therefore not returned as accepted headline-section values.
| Field | Filled in, of 7 checked | Values in the sample |
|---|---|---|
| slug | 7 | |
| name | 7 | “All” and 6 other values |
| path | 7 | “/” and 6 other values |
| url | 7 | slate.com |
| feed_url | 7 | slate.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/slate/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "news-and-politics",
"name": "News & Politics",
"path": "/news-and-politics",
"url": "https://slate.com/news-and-politics",
"feed_url": "https://slate.com/feeds/news-and-politics.rss"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/slate.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | slate.CategoriesResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].feed_url | string | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].path | string | No | ||||
| data.sections[].slug | string | No | ||||
| data.sections[].url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/slate/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"