PEOPLE API endpoint
Returns fresh headlines from one PEOPLE section listing page. section accepts any slug returned by GET /people/sections (37 values, too many to enumerate inline -- see that endpoint for the full, current list), for example "celebrity" or "royals".
/people/headlinesQuery parameter: section is required. Accepts any slug returned by
people-sections (37 values, e.g. celebrity or
royals) -- see that endpoint for the full, current, live-verified list. An
unrecognized slug returns a 400 error rather than being silently accepted.
| Field | Filled in, of 67 checked | Values in the sample |
|---|---|---|
| title | 67 | median 104 characters |
| url | 67 | people.com |
| image_url | 67 | people.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | PEOPLE section slug, from GET /people/sections | celebrity | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/people/headlines?section=celebrity" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"section": "celebrity",
"items": [
{
"title": "Example Celebrity Headline",
"url": "https://people.com/example-celebrity-headline-12345678",
"image_url": "https://people.com/thmb/example.jpg"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.headlinesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | newsplatform.HeadlinesResponse | No | ||||
| data.items | array | No | HeadlineItem record, 7 fields: author, image_url, published_at, summary, title, type, url. Described under PEOPLE top stories API. | |||
| data.section | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/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/people/headlines?section=celebrity" \
-H "x-api-key: $CRAWLORA_API_KEY"