USA Today API endpoint
Lists the 13 top-level USA Today sections accepted by `usatoday-headlines`, from `news` and `sports` to `politics` and `grocery`. Each has a `slug`, a display `name` and a landing-page `url`. Takes no parameters.
/usatoday/sectionsTakes no parameters.
Lists every top-level USA Today section accepted by /usatoday/headlines, with its slug, display name, and landing-page url. This is the discovery source for that endpoint's section parameter and enumerates the full accepted value space: news, sports, entertainment, life, money, tech, travel, opinion, cars, shopping, weather, politics, grocery.
| Field | Filled in, of 13 checked | Values in the sample |
|---|---|---|
| slug | 13 | |
| name | 13 | “News” and 12 other values |
| url | 13 | usatoday.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/usatoday/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "news",
"name": "News",
"url": "https://www.usatoday.com/news/"
},
{
"slug": "sports",
"name": "Sports",
"url": "https://www.usatoday.com/sports/"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/usatoday.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | usatoday.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | 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 |
| 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/usatoday/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"