SCMP API endpoint
Lists every South China Morning Post section accepted by /scmp/headlines, with its slug, display name, feed URL, and (for a subsection) its parent section's slug and name. Values: `news`, `business`, `property`, `tech`, `lifestyle`, `culture`, `sport`, `postmag`, `style`, `this-week-in-asia`, `cooking`, `hong-kong`, `china`, `asia`, `world`, `people-culture`, `china-politics`, `china-diplomacy`, `china-economy`, `hong-kong-politics`, `hong-kong-economy`, `hong-kong-health-environment`, `hong-kong-education`, `world-us-canada`, `world-europe`, `world-middle-east`, `world-americas`, `world-africa`, `world-russia-central-asia`, `asia-australasia`, `asia-diplomacy`, `asia-east-asia`, `asia-southeast-asia`, `asia-south-asia`, `business-companies`, `business-investor-relations`, `business-global-economy`, `business-money-wealth`, `opinion-comment`, `opinion-harrys-view`, `opinion-blogs`, `opinion-polls`, `opinion-letters`, `property-hong-kong-china`, `property-international`, `tech-big-tech`, `tech-enterprises`, `tech-innovation`, `tech-leaders-founders`, `tech-science-research`, `lifestyle-fashion-beauty`, `lifestyle-travel-leisure`, `lifestyle-motoring`, `lifestyle-food-drink`, `lifestyle-health-wellness`, `lifestyle-watches`, `culture-books`, `culture-music`, `culture-film-tv`, `culture-arts`, `sport-hong-kong`, `sport-china`, `sport-golf`, `sport-racing`, `sport-rugby`, `sport-football`, `sport-tennis`, `sport-other`, `sport-boxing`, `sport-hong-kong-sevens`, `postmag-culture`, `postmag-travel`, `postmag-food-drink`, `postmag-passions`, `postmag-wellness`, `postmag-design-interiors`, `style-luxury`, `style-fashion`, `style-beauty`, `style-people`, `style-lifestyle`, `this-week-in-asia-politics`, `this-week-in-asia-geopolitics`, `this-week-in-asia-economics`, `this-week-in-asia-society`, `this-week-in-asia-opinion`, `this-week-in-asia-asia-buzz`, `this-week-in-asia-people`.
/scmp/sections| Field | Filled in, of 88 checked | Values in the sample |
|---|---|---|
| slug | 88 | |
| name | 88 | “News” and 78 other values |
| url | 88 | scmp.com |
| parent_slug | 77 | |
| parent_name | 77 | “News” and 14 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/scmp/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "hong-kong",
"name": "Hong Kong",
"url": "https://www.scmp.com/rss/2/feed",
"parent_slug": "news",
"parent_name": "News"
},
{
"slug": "sport-boxing",
"name": "Boxing",
"url": "https://www.scmp.com/rss/318217/feed",
"parent_slug": "sport",
"parent_name": "Sport"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/scmp.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | scmp.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].parent_name | string | No | ||||
| data.sections[].parent_slug | 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/scmp/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"