BizKitHub
DokumentacjaEksplorator APIPost/api/v1/post/category
getPostPubliczne API v1

/api/v1/post/category

Returns category detail with child categories, breadcrumb, post feed, and routing info. Returns an error object if the category does not exist.

postgetApiV1PostCategory

Parametry

4 w query

Parametry query

· 4
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringWymagane
Przykładnovinky
localestringWymagane

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendict → en-GB → en (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Długość: 2–35
Przykładcs
identityIdstringOpcjonalne

Logged user identity (from your frontend cookies). Learn more

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
namestringWymagane
PrzykładNovinky
descriptionstringWymagane
PrzykładNejnovější zprávy a aktuality ze světa kyberbezpečnosti.
routeobjectWymagane
slugstringWymagane
PrzykładNovinky
localestringWymagane

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendict → en-GB → en (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Długość: 2–35
Przykładycsenen-GBpt-BRzh-Hans
canonicalbooleanWymagane
routesobject[]Wymagane
Każdy element tablicy:
slugstringWymagane
Przykładnovinky
localestringWymagane

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendict → en-GB → en (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Długość: 2–35
Przykładycsenen-GBpt-BRzh-Hans
childrenobject[]Wymagane
Każdy element tablicy:
slugstringWymagane
namestringWymagane
descriptionstringWymagane
postCountnumberWymagane
breadcrumbobject[]Wymagane
Każdy element tablicy:
namestringOpcjonalne
PrzykładNovinky
slugstringWymagane
Przykładnovinky
childrenany[]Wymagane
postFeedobject[]Wymagane
Każdy element tablicy:
slugstringWymagane
Przykładkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
titlestringWymagane
PrzykładKYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.
contentstringWymagane
PrzykładŽijeme ve světě, kde je...
perexstring | nullWymagane
PrzykładTřetí ročník vyhlášení proběhl...
publishedDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-11-05T15:54:44.280Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
parentobjectOpcjonalne
namestringWymagane
slugstringWymagane
descriptionstring | nullWymagane
Wariant 2
state"error"Wymagane
messagestringWymagane
PrzykładCategory "about" does not exist.
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

application/json
{
  "name": "Novinky",
  "description": "Nejnovější zprávy a aktuality ze světa kyberbezpečnosti.",
  "route": {
    "slug": "Novinky",
    "locale": "cs",
    "canonical": false
  },
  "routes": [
    {
      "slug": "novinky",
      "locale": "cs"
    }
  ],
  "children": [
    {
      "slug": "example_slug",
      "name": "example_name",
      "description": "example_description",
      "postCount": 0
    }
  ],
  "breadcrumb": [
    {
      "name": "Novinky",
      "slug": "novinky",
      "children": []
    }
  ],
  "postFeed": [
    {
      "slug": "kyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos",
      "title": "KYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.",
      "content": "Žijeme ve světě, kde je..."
    }
  ],
  "parent": {
    "name": "example_name",
    "slug": "example_slug"
  }
}

Przykład żądania

GET /api/v1/post/category

get
curl -X GET "https://api.bizkithub.com/api/v1/post/category?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&slug=novinky&locale=cs&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API