Global News API endpoint
Returns a Global News author profile by `url`, a canonical `https://globalnews.ca/author/<slug>/` link. The response has the author's `name`, `biography`, `image_url` and a list of recent articles. `title`, `image_url` and `biography` appear only if the author page shows them, and each article's `published_at` is relative text such as `2 hours` or `Sep 16`, not a timestamp.
/globalnews/authorQuery parameters:
url (required): a canonical https://globalnews.ca/author/<slug>/ URL.title, image_url, and biography reflect whatever the author's own page shows -- not every author page carries a job title, headshot, or bio. Each article's published_at is the page's own rendered relative publish time (for example 2 hours or Sep 16), not a machine-readable timestamp.
Example response (truncated):
{"code":200,"data":{"url":"https://globalnews.ca/author/jane-doe/","name":"Jane Doe","title":"Digital Broadcast Journalist","image_url":"https://globalnews.ca/wp-content/uploads/2021/07/jane-doe.jpg","biography":["Jane Doe is a Digital Broadcast Journalist with Global News."],"articles":[{"title":"City Council passes new budget plan","url":"https://globalnews.ca/news/12070709/city-council-passes-new-budget-plan","published_at":"2 hours"}]}}
| Field | Filled in, of 25 checked | Values in the sample |
|---|---|---|
| title | 25 | median 72 characters |
| url | 25 | globalnews.ca |
| summary | 25 | median 153 characters |
| published_at | 25 | |
| image_url | 25 | globalnews.ca |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical Global News author URL | https://globalnews.ca/author/jane-doe/ | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/globalnews/author?url=https%3A%2F%2Fglobalnews.ca%2Fauthor%2Fjane-doe%2F" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"url": "https://globalnews.ca/author/jane-doe/",
"name": "Jane Doe",
"title": "Digital Broadcast Journalist",
"image_url": "https://globalnews.ca/wp-content/uploads/2021/07/jane-doe.jpg",
"biography": [
"Jane Doe is a Digital Broadcast Journalist with Global News."
],
"articles": [
{
"title": "City Council passes new budget plan",
"url": "https://globalnews.ca/news/12070709/city-council-passes-new-budget-plan",
"published_at": "2 hours"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.globalnewsAuthorResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | globalnews.AuthorResponse | No | ||||
| data.articles | array | No | HeadlineItem record, 7 fields: author, image_url, published_at, summary, title, type, url. Described under Global News top stories API. | |||
| data.biography | array | No | ||||
| data.image_url | string | No | ||||
| data.name | string | No | ||||
| data.title | string | No | ||||
| data.url | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/globalnews/author?url=https%3A%2F%2Fglobalnews.ca%2Fauthor%2Fjane-doe%2F" \
-H "x-api-key: $CRAWLORA_API_KEY"