content.article
Read a news article, its comments and related articles.
GET
/api/v1/{locale}/news/{slug}API scope content.article
Request
Send Authorization: Bearer <key> with each request.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL slug of the resource. |
This endpoint takes no request body.
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request GET \
-H "Authorization: Bearer $MINEXON_API_KEY" \
"${MINEXON_BASE_URL}/api/v1/en/news/example"Response
HTTP 200 · application/json
The fields below are inside the response’s data object.
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
post | object | Conditional | Selected news article. |
engagement | object | Conditional | Like and comment state. |
newsCommentRestricted | boolean | Conditional | News comment restriction for the account. |
newsLikeRestricted | boolean | Conditional | News like restriction for the account. |
engagementAction | string or null | Conditional | Last engagement action. |
engagementError | string or null | Conditional | Last engagement error. |
engagementNotice | string or null | Conditional | Last engagement notice. |
related | array or object | Conditional | Related published records. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
post.bodyHtml | string or null | Conditional | Formatted article body. |
post.body | string[] | Conditional | Plain-text paragraphs. |
post.commentMode | closed, moderated or immediate | Conditional | Publication rule for comments on this article. |
engagement.views | integer | Conditional | View count. |
engagement.likes | integer | Conditional | Like count. |
engagement.liked | boolean | Conditional | Like state for the current account or guest session. |
engagement.comments | array | Conditional | Published comments. |
engagement.pendingComments | array | Conditional | Pending comments for this account or session. |
engagement.commentNonce | string or null | Conditional | Send as _nonce in the comment request within the same session. |
Selected fields from an example response
{
"data": {
"locale": "en",
"post": {
"slug": "opening-week",
"title": "Opening week",
"body": [
"The new world opens on Saturday."
],
"commentMode": "moderated"
},
"engagement": {
"views": 4,
"likes": 1,
"liked": false,
"comments": [],
"pendingComments": [],
"commentNonce": "<issued nonce>"
}
}
}Flow and error cases
When commenting is available, engagement.commentNonce is the value used for submission in the same session.