Skip to Content
MinexonMinexon

content.news

List published news with pagination and an optional category filter.

GET/api/v1/{locale}/news

API scope content.news

Request

Send Authorization: Bearer <key> with each request.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Query parameters

FieldTypeRequirementDescription
pageinteger ≥ 1OptionalPage number, defaults to 1.
categoryinteger ≥ 1OptionalNews category ID.

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?page=1"

Response

HTTP 200 · application/json

The fields below are inside the response’s data object.

FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
postsarray or objectConditionalPublished news records.
categoriesarray or objectConditionalAvailable categories or a map keyed by category.
selectedCategoryinteger or string or nullConditionalCurrent category filter.
paginationobjectConditionalPagination values.
Nested fields
FieldTypeRequirementDescription
posts[].slugstringConditionalArticle slug.
posts[].titlestringConditionalArticle title.
posts[].datestringConditionalPublication date, YYYY-MM-DD.
posts[].dateLabelstringConditionalDisplay-ready publication date.
posts[].coverstringConditionalCover image path.
posts[].categorystringConditionalDisplay category name.
pagination.pageintegerConditionalCurrent page.
pagination.pagesintegerConditionalNumber of result pages.
pagination.sizeintegerConditionalRecords per page.
pagination.totalintegerConditionalTotal records matching the category filter.

Selected fields from an example response

{
  "data": {
    "locale": "en",
    "posts": [
      {
        "id": 7,
        "slug": "opening-week",
        "title": "Opening week",
        "date": "2026-12-05",
        "cover": "default/news-announcement.jpg",
        "category": "News"
      }
    ],
    "pagination": {
      "page": 1,
      "pages": 1,
      "size": 7,
      "total": 1
    }
  }
}

Flow and error cases

Shared error and authentication contract