CNBC API endpoint
Lists the public CNBC editorial sections accepted by /cnbc/headlines, including market, investing, business, technology, and policy subsections, with each section's slug, display name, and landing-page URL.
/cnbc/categoriesLists the top-level public CNBC editorial sections accepted by cnbc-headlines.
Parameters:
x-api-key (required)The public editorial section slugs are: markets, pre-markets, us-markets, currencies, prediction-markets, cryptocurrency, futures-and-commodities, bonds, funds-and-etfs, business, economy, finance, health-and-science, media, real-estate, energy, climate, transportation, cnbc-investigations, industrials, retail, wealth, sports, life, small-business, investing, personal-finance, fintech, financial-advisors, options-action, etf-street, earnings, trader-talk, technology, cybersecurity, ai-artificial-intelligence, enterprise, internet, mobile, social-media, cnbc-disruptors, tech-guide, politics, white-house, policy, defense, congress, and expanding-opportunity.
| Field | Filled in, of 48 checked | Values in the sample |
|---|---|---|
| slug | 48 | |
| name | 48 | “Markets” and 47 other values |
| url | 48 | cnbc.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/cnbc/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "markets",
"name": "Markets",
"url": "https://www.cnbc.com/markets/"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/cnbc.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | cnbc.CategoriesResponse | 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 |
| 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/cnbc/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"