Vanity Fair API endpoint
Lists the current headlines for one Vanity Fair section. `section` is required and takes `hollywood`, `movies`, `television`, `award-season`, `what-is-cinema`, `culture`, `politics`, `business`, `style`, `beauty`, `fashion` or `royals`. Each item has its title and URL.
/vanityfair/headlinesQuery parameter: section is required and must be one of hollywood,
movies, television, award-season, what-is-cinema, culture,
politics, business, style, beauty, fashion, or royals.
| Field | Filled in, of 19 checked | Values in the sample |
|---|---|---|
| title | 19 | median 69 characters |
| url | 19 | vanityfair.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | Vanity Fair section slug Allowed values: hollywood, movies, television, award-season, what-is-cinema, culture, politics, business, style, beauty, fashion, royals. | hollywood | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/vanityfair/headlines?section=hollywood" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"section": "hollywood",
"items": [
{
"title": "Example headline",
"url": "https://www.vanityfair.com/story/example-story"
}
]
}
}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 Vanity Fair 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/vanityfair/headlines?section=hollywood" \
-H "x-api-key: $CRAWLORA_API_KEY"