Philippine Daily Inquirer API endpoint
Lists the ten Philippine Daily Inquirer sections that `inquirer-headlines` accepts, from `newsinfo` to `cebudailynews`. Each entry has a `slug`, a display `name` and the section's `url`. Takes no parameters.
/inquirer/sectionsReturns the Philippine Daily Inquirer section slugs accepted by inquirer-headlines: newsinfo, globalnation, business, sports, entertainment, lifestyle, technology, opinion, usa, cebudailynews. Each section is its own public news subdomain (e.g. business.inquirer.net).
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| slug | 10 | |
| name | 10 | “News” and 9 other values |
| url | 10 | newsinfo.inquirer.net and 9 other hosts |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/inquirer/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "newsinfo",
"name": "News",
"url": "https://newsinfo.inquirer.net/feed"
}
]
}
}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/inquirer/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"