Hikka Docs Hikka Docs
EndpointsArticles

Get Articles

POST
/articles

Query Parameters

page?integer
Default1
Range0 < value <= 10000
size?integer
Default15
Range1 <= value <= 100

Header Parameters

auth?|
auth?|

Request Body

application/json

content_type?|
min_vote_score?|
categories?array<>
Default[]
tags?array<>
Default[]
Itemsitems <= 3
sort?array<>
Default["created:desc"]
content_slug?|
show_trusted?boolean
Defaulttrue
author?|
draft?boolean
Defaultfalse
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://api.hikka.io/articles" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "total": 20,
    "pages": 2,
    "page": 1
  },
  "list": [
    {
      "data_type": "string",
      "author": {
        "reference": "c773d0bf-1c42-4c18-aec8-1bdd8cb0a434",
        "updated": 1686088809,
        "created": 1686088809,
        "description": "Hikka",
        "username": "hikka",
        "cover": "string",
        "active": true,
        "avatar": "string",
        "role": "string",
        "is_followed": true
      },
      "tags": [
        {
          "content_count": 0,
          "name": "string"
        }
      ],
      "created": 0,
      "updated": 0,
      "comments_count": 0,
      "vote_score": 0,
      "my_score": 0,
      "category": "string",
      "trusted": true,
      "draft": true,
      "views": 0,
      "title": "string",
      "slug": "string",
      "content": {
        "data_type": "string",
        "image": "https://cdn.hikka.io/hikka.jpg",
        "title_en": "string",
        "title_ua": "string",
        "slug": "string",
        "title_ja": "string"
      },
      "preview": [
        {}
      ]
    }
  ]
}
{
  "message": "Example error message",
  "code": "example_error"
}