BizKitHub
getPostPubliczne API v1

/api/v1/post/post

Returns the full detail of a post, including title, markdown content, routes, breadcrumbs, related posts and tags. Returns an error object (state: "error") if the post does not exist or if neither slug nor id was supplied.

Two addressing modes:

  • slug — canonical URL slug in the requested locale. Use for blog / marketing articles.
  • id — post external id (16-char string). Use for posts that have no canonical URL, notably branch documents: obtain the postId from GET /api/v1/branch/detail?apiKey=…&slug=<branch>&locale=<loc> under documents.<termsOfBusiness|reclaim|gdpr|operatingRules>.postId, then call GET /api/v1/post/post?apiKey=…&id=<postId>&locale=<loc> to fetch the body.

For posts without a route/main-category (branch docs), route.slug is empty, mainCategory is omitted, and breadcrumb / related are empty arrays — the rest of the response mirrors the slug-based fetch exactly, so a single renderer can handle both.

The response also carries wordCount and readingTimeMinutes derived from the HTML body (tags stripped, ~200 words per minute — Medium's convention); both are 0 for empty posts.

postgetApiV1PostPost

Parametry

7 w query

Parametry query

· 7
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
slugstringOpcjonalne

Canonical URL slug of the article in the requested locale (e.g. "about"). Preferred addressing mode for regular blog posts. Mutually exclusive with id.

Przykładabout
idstringOpcjonalne

Post external id (16-char string). Optional alternative to slug — pass this to fetch a post that has no canonical route, most notably a branch document (VOP / GDPR / provozní řád / reklamace) whose postId came from /api/v1/branch/detail.documents.<slot>.postId. Exactly one of slug or id must be supplied.

Przykład58714l4gSh9jZOLU
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
sortDirectionstringOpcjonalne
Przykładasc
countrystringOpcjonalne

Optional ISO 3166-1 alpha-2 country code of the visitor (e.g. "CZ"). When set, the response is filtered to posts whose per-country / per-continent allowlist matches the visitor — a post targeted at continent "EU" matches every EU country, and a post with no rules stays globally available. When omitted, the filter is disabled and every post is returned regardless of geo settings. The API does NOT infer the country from the caller's IP; it is up to the caller to resolve and supply it. Case-insensitive. Unknown codes are rejected with HTTP 400 (PUBLIC_COUNTRY_CODE_UNKNOWN). The pseudo code INT selects the international (region-less) edition of a multi-region publication: only posts WITHOUT any country / continent rule.

Długość: 2–3
PrzykładCZ

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
idstringWymagane
Przykład6IU2SWgP76FO2UXw
authorobjectWymagane

Main author of the post — mirrors the entry in authors where main === true. Kept as a top-level field for backwards compatibility; new consumers should prefer authors.

namestringWymagane
PrzykładJan Barášek
profileSlugstringWymagane
Przykład71E58E5SjdZN6ut3
avatarUrlstringOpcjonalne

Fully qualified avatar URL resolved through the author cascade (author avatar → contact avatar → linked user avatar). Omitted when no tier has one.

Przykładhttps://storage.xhp.cz/avatar/…
biostringOpcjonalne

Public bio resolved through the author cascade (locale override → primary locale → linked member description_public). Omitted for former authors — mirrors /api/v1/post/author.

PrzykładNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
authorsobject[]Wymagane

Ordered list of every author linked to the post via content__post_author → content__author (main author first, followed by co-authors in the order they were set in admin). The entry matching content__post.main_author_id carries main: true. Each entry exposes both profileSlug (opaque external id) and slug (routable URL slug).

Każdy element tablicy:
namestringWymagane

Public byline name (author display name / pseudonym → contact name → linked user name). Empty string when no tier has one.

PrzykładJan Barášek
profileSlugstringWymagane

Author shop__contact.external_id (16-char, opaque). Machine-safe identifier — pass to /api/v1/post/author?id=… or use as a stable key across renames. NOT a routable URL slug (see slug).

Przykład71E58E5SjdZN6ut3
slugstringWymagane

Routable URL slug of the author profile in the caller organisation. Feed it into your consumer's author URL pattern (e.g. czechcyber.tv/autor/${slug}) or pass to /api/v1/post/author?slug=…. Empty string when the author profile page is hidden (render the name without a link). Lazily backfilled server-side on first read — empty string only for degenerate contacts without a resolvable name/external id (vanishingly rare).

Przykładjan-barasek
avatarUrlstringOpcjonalne

Fully qualified avatar URL resolved through the author cascade (author avatar → contact avatar → linked user avatar). Omitted when no tier has one.

Przykładhttps://storage.xhp.cz/avatar/…
biostringOpcjonalne

Public bio resolved through the author cascade (locale override → primary locale → linked member description_public). Omitted for former authors — mirrors /api/v1/post/author.

PrzykładNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
jobTitlestringOpcjonalne

Localized job title (author locale override → linked member job_title). Omitted for former authors.

PrzykładAnalytik kybernetických hrozeb
status"active" | "former"Opcjonalne

former when the author profile has an end date or its linked member is blocked; active otherwise (external contributors without membership are active).

isPseudonymbooleanOpcjonalne

True when the author writes under a pseudonym (content__author.is_pseudonym).

Przykładfalse
mainbooleanOpcjonalne

Present and true on the main author only (mirrors content__post.main_content_author_id). Omitted on co-authors — use authors.find(a => a.main) to pick the main author.

Przykładtrue
isStarbooleanOpcjonalne

True if the post is starred/pinned. Omitted when false.

mainImageUrlstringOpcjonalne
Przykładhttps://storage.xhp.cz/...
titlestringOpcjonalne

Article title as plain text, not HTML (content__post_locale.title, trimmed). Identical to title in /post/feed. Characters such as ', ", & and < are returned verbatim; the client escapes the value itself when writing it to HTML, <title>, breadcrumbs or JSON-LD. The title is never part of content. Omitted only when the locale row has an empty title.

PrzykładKYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.
contentstringWymagane

Rendered HTML body (Markdown → HTML). Does not include the article title. Headings h2–h6 carry id anchors whose values are the keys of anchorList.

Przykład<p>Žijeme ve světě, kde je normální řídit...</p>
paywalledbooleanOpcjonalne

true = the organisation enforces the paywall server-side (post_paywall_enabled) and this visitor has no active subscription, so content holds only the free part of the article. Show a subscription call-to-action after it. Subscribers get the full text and paywalled: false.

paywallSource"separator" | "default"Opcjonalne

Why the article has a paid part: separator = manual --- in the text, default = the organisation's default cut for older articles. Omitted when the article is fully free or the paywall is off.

wordCountnumberWymagane

Number of words in the post body (HTML tags stripped). 0 for empty posts.

Przykład842
readingTimeMinutesnumberWymagane

Estimated reading time in minutes at ~200 words per minute (Medium's convention). Minimum 1 for non-empty bodies, 0 for empty.

Przykład5
kindstringOpcjonalne

Post kind code from content__post_kind (post for articles, branch for branch-owned documents). Only populated when the post was fetched by id; slug-based fetches omit it because the endpoint filters to post and the field would be redundant.

Przykładypostbranch
routeobjectWymagane
slugstringWymagane

Canonical URL slug of the post in the returned locale. Empty string when the post has no route (branch documents) — treat empty as "no public URL".

Przykładkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
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

Cross-locale canonical routes for hreflang / sitemap. Empty array when the post has no routes (branch documents).

Każdy element tablicy:
slugstringWymagane
Przykładkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
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
editionsobject[]Opcjonalne

Editions (language × optional country) the post is published in. An unrestricted post lists one international edition (countryCode: null) per translated organisation language; it also appears in every regional edition of that language as a copy whose canonical URL is the international one. A post restricted to countries / continents lists one self-canonical regional edition per allowed country where a translated language is official (core__country_language), and no international edition. Omitted for posts fetched by id (branch documents).

Każdy element tablicy:
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
countryCodestring | nullWymagane

ISO 3166-1 alpha-2 country of a regional edition, or null for the international edition of locale.

PrzykładCH
slugstringWymagane

Canonical slug of the post in locale.

anchorListobjectWymagane

Map of heading anchor id → heading text for h2–h6 in content. Values are HTML (the heading inner HTML, entity-escaped, e.g. Why it&#39;s late), unlike title / perex. Keys are the id attributes in content and are derived from that escaped text (e.g. why-it-and-39s-late); they are kept stable because published #… links point at them.

Przykład{"why-it-and-39s-late":"Why it&#39;s late"}
perexstringWymagane

Short lead paragraph as plain text, not HTML. The authored content__post_locale.perex when set, otherwise the first plain paragraph of the body with HTML entities decoded. Empty string when neither exists. The client escapes it at output time.

metaTitlestringOpcjonalne

SEO <title> value authored in admin (separate from the visible article title). Omitted (undefined) when the editor did not fill it in — in that case the caller MUST fall back to title (or its own site convention) to render <title>. This mirrors content__post_locale.meta_title for the resolved locale.

PrzykładKYBER CENA ROKU 2025 | Czech Cyber TV
metaDescriptionstringWymagane
publishedDateDate | string | string | numberOpcjonalne
Jedna z 4 opcji:
Wariant 1
Date
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
updatedDateDate | string | string | numberOpcjonalne

Timestamp of the last update to the parent post. Populated on id-based fetches (useful for branch-doc revalidation); omitted on legacy slug-based fetches for backwards compatibility.

Jedna z 4 opcji:
Wariant 1
Date

Timestamp of the last update to the parent post. Populated on id-based fetches (useful for branch-doc revalidation); omitted on legacy slug-based fetches for backwards compatibility.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
mainCategoryobjectOpcjonalne

Main category of the post. Omitted for posts with no category (e.g. branch documents).

idnumberWymagane
namestringWymagane
slugstringWymagane
breadcrumbobject[]Wymagane
Każdy element tablicy:
namestringOpcjonalne
slugstringWymagane
childrenany[]Wymagane
relatedobject[]Wymagane
Każdy element tablicy:
titlestringWymagane
slugstringOpcjonalne
tagListobject[]Wymagane

Array of tags assigned to this post. Only active tags are included.

Każdy element tablicy:

Tag associated with the post.

slugstringWymagane

URL-friendly code/slug of the tag.

Przykładbezpecnost
namestringWymagane

Human-readable display name of the tag.

PrzykładBezpečnost
colorstringOpcjonalne

Hex color code for the tag.

Przykład#3B82F6
attachmentsobject[]Wymagane

Array of attachments linked to the post, ordered by upload date (oldest first). Empty array when the post has no attachments.

Każdy element tablicy:

Attachment (e.g. original SPC PDF) linked to the post.

idstringWymagane

Blob token — stable identifier for the attachment (32-char string).

Przykład3e43IKfVwc4Bl2D40y5r0x7Uu3x0h9SS
filenamestringWymagane

Human-readable filename of the attachment.

PrzykładSPC-Ticagrelor.pdf
downloadUrlstringWymagane

Public URL from which the attachment can be downloaded / streamed.

Przykładhttps://storage.xhp.cz/...
sizenumberWymagane

Attachment size in bytes.

Przykład524288
contentTypestringWymagane

MIME type of the attachment.

Przykładapplication/pdf
Wariant 2
state"error"Wymagane
messagestringWymagane
PrzykładPost "about" does not exist.
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

application/json
{
  "id": "6IU2SWgP76FO2UXw",
  "author": {
    "name": "Jan Barášek",
    "profileSlug": "71E58E5SjdZN6ut3",
    "avatarUrl": "https://storage.xhp.cz/avatar/…",
    "bio": "Novinář se specializací na kyberbezpečnost a AI. 15 let v oboru…"
  },
  "authors": [
    {
      "name": "Jan Barášek",
      "profileSlug": "71E58E5SjdZN6ut3",
      "slug": "jan-barasek",
      "avatarUrl": "https://storage.xhp.cz/avatar/…",
      "bio": "Novinář se specializací na kyberbezpečnost a AI. 15 let v oboru…",
      "jobTitle": "Analytik kybernetických hrozeb",
      "isPseudonym": false,
      "main": true
    }
  ],
  "isStar": false,
  "mainImageUrl": "https://storage.xhp.cz/...",
  "title": "KYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.",
  "content": "<p>Žijeme ve světě, kde je normální řídit...</p>",
  "paywalled": false,
  "wordCount": 842,
  "readingTimeMinutes": 5,
  "kind": "post",
  "route": {
    "slug": "kyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos",
    "locale": "cs",
    "canonical": false
  },
  "routes": [
    {
      "slug": "kyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos",
      "locale": "cs"
    }
  ],
  "editions": [
    {
      "locale": "cs",
      "slug": "example_slug"
    }
  ],
  "anchorList": {
    "why-it-and-39s-late": "Why it&#39;s late"
  },
  "perex": "example_perex",
  "metaTitle": "KYBER CENA ROKU 2025 | Czech Cyber TV",
  "metaDescription": "example_metaDescription",
  "mainCategory": {
    "id": 0,
    "name": "example_name",
    "slug": "example_slug"
  },
  "breadcrumb": [
    {
      "name": "example_name",
      "slug": "example_slug",
      "children": []
    }
  ],
  "related": [
    {
      "title": "example_title",
      "slug": "example_slug"
    }
  ],
  "tagList": [
    {
      "slug": "bezpecnost",
      "name": "Bezpečnost",
      "color": "#3B82F6"
    }
  ],
  "attachments": [
    {
      "id": "3e43IKfVwc4Bl2D40y5r0x7Uu3x0h9SS",
      "filename": "SPC-Ticagrelor.pdf",
      "downloadUrl": "https://storage.xhp.cz/...",
      "size": 524288,
      "contentType": "application/pdf"
    }
  ]
}

Przykład żądania

GET /api/v1/post/post

get
curl -X GET "https://api.bizkithub.com/api/v1/post/post?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&slug=about&id=58714l4gSh9jZOLU&locale=cs&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&sortDirection=asc&country=CZ" \
  -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