The Straits Times API endpoint
Returns a The Straits Times author's profile by `url`, a canonical `straitstimes.com/authors/<slug>` link: name, email when the author's page publishes one, and recent articles with title, URL, summary, author, image, `type` and publication time.
/straitstimes/authorQuery parameters:
url (required): a canonical https://www.straitstimes.com/authors/<slug> URL.email reflects whatever contact email the author's own page shows; not every author page publishes one.
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| title | 10 | median 82 characters |
| url | 10 | straitstimes.com |
| image_url | 10 | cassette.sphdigital.com.sg |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical The Straits Times author URL | https://www.straitstimes.com/authors/example-author | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/straitstimes/author?url=https%3A%2F%2Fwww.straitstimes.com%2Fauthors%2Fexample-author" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"url": "https://www.straitstimes.com/authors/jane-doe",
"name": "Jane Doe",
"email": "[email protected]",
"articles": [
{
"title": "Example headline",
"url": "https://www.straitstimes.com/singapore/example-article-slug"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.straitstimesAuthorResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | straitstimes.AuthorResponse | No | ||||
| data.articles | array | No | HeadlineItem record, 7 fields: author, image_url, published_at, summary, title, type, url. Described under The Straits Times top stories API. | |||
| data.email | string | No | ||||
| data.name | 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/straitstimes/author?url=https%3A%2F%2Fwww.straitstimes.com%2Fauthors%2Fexample-author" \
-H "x-api-key: $CRAWLORA_API_KEY"