BizKitHub
getPostVeřejné 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 v query

Parametry v query

· 7
apiKeystringPovinné

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringVolitelné

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

Příkladabout
idstringVolitelné

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.

Příklad58714l4gSh9jZOLU
localestringPovinné

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élka: 2–35
Příkladcs
identityIdstringVolitelné

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

PříkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
sortDirectionstringVolitelné
Příkladasc
countrystringVolitelné

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élka: 2–3
PříkladCZ

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
object | object
Jedna z 2 možností:
Varianta 1
idstringPovinné
Příklad6IU2SWgP76FO2UXw
authorobjectPovinné

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.

namestringPovinné
PříkladJan Barášek
profileSlugstringPovinné
Příklad71E58E5SjdZN6ut3
avatarUrlstringVolitelné

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

Příkladhttps://storage.xhp.cz/avatar/…
biostringVolitelné

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

PříkladNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
authorsobject[]Povinné

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ždá položka pole:
namestringPovinné

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

PříkladJan Barášek
profileSlugstringPovinné

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).

Příklad71E58E5SjdZN6ut3
slugstringPovinné

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).

Příkladjan-barasek
avatarUrlstringVolitelné

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

Příkladhttps://storage.xhp.cz/avatar/…
biostringVolitelné

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

PříkladNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
jobTitlestringVolitelné

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

PříkladAnalytik kybernetických hrozeb
status"active" | "former"Volitelné

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

isPseudonymbooleanVolitelné

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

Příkladfalse
mainbooleanVolitelné

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.

Příkladtrue
isStarbooleanVolitelné

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

mainImageUrlstringVolitelné
Příkladhttps://storage.xhp.cz/...
titlestringVolitelné

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.

PříkladKYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.
contentstringPovinné

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

Příklad<p>Žijeme ve světě, kde je normální řídit...</p>
paywalledbooleanVolitelné

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"Volitelné

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.

wordCountnumberPovinné

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

Příklad842
readingTimeMinutesnumberPovinné

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

Příklad5
kindstringVolitelné

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.

Příkladypostbranch
routeobjectPovinné
slugstringPovinné

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".

Příkladkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
localestringPovinné

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élka: 2–35
Příkladycsenen-GBpt-BRzh-Hans
canonicalbooleanPovinné
routesobject[]Povinné

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

Každá položka pole:
slugstringPovinné
Příkladkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
localestringPovinné

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élka: 2–35
Příkladycsenen-GBpt-BRzh-Hans
editionsobject[]Volitelné

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ždá položka pole:
localestringPovinné

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élka: 2–35
Příkladycsenen-GBpt-BRzh-Hans
countryCodestring | nullPovinné

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

PříkladCH
slugstringPovinné

Canonical slug of the post in locale.

anchorListobjectPovinné

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.

Příklad{"why-it-and-39s-late":"Why it&#39;s late"}
perexstringPovinné

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.

metaTitlestringVolitelné

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.

PříkladKYBER CENA ROKU 2025 | Czech Cyber TV
metaDescriptionstringPovinné
publishedDateDate | string | string | numberVolitelné
Jedna z 4 možností:
Varianta 1
Date
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
updatedDateDate | string | string | numberVolitelné

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 možností:
Varianta 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.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
mainCategoryobjectVolitelné

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

idnumberPovinné
namestringPovinné
slugstringPovinné
breadcrumbobject[]Povinné
Každá položka pole:
namestringVolitelné
slugstringPovinné
childrenany[]Povinné
relatedobject[]Povinné
Každá položka pole:
titlestringPovinné
slugstringVolitelné
tagListobject[]Povinné

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

Každá položka pole:

Tag associated with the post.

slugstringPovinné

URL-friendly code/slug of the tag.

Příkladbezpecnost
namestringPovinné

Human-readable display name of the tag.

PříkladBezpečnost
colorstringVolitelné

Hex color code for the tag.

Příklad#3B82F6
attachmentsobject[]Povinné

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

Každá položka pole:

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

idstringPovinné

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

Příklad3e43IKfVwc4Bl2D40y5r0x7Uu3x0h9SS
filenamestringPovinné

Human-readable filename of the attachment.

PříkladSPC-Ticagrelor.pdf
downloadUrlstringPovinné

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

Příkladhttps://storage.xhp.cz/...
sizenumberPovinné

Attachment size in bytes.

Příklad524288
contentTypestringPovinné

MIME type of the attachment.

Příkladapplication/pdf
Varianta 2
state"error"Povinné
messagestringPovinné
PříkladPost "about" does not exist.
code"200"Povinné
hintstring | nullPovinné

Ukázka odpovědi

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"
    }
  ]
}

Ukázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč