BizKitHub
getPostÖffentliche 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

Parameter

7 in der Query

Query-Parameter

· 7
apiKeystringPflicht

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

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringOptional

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

Beispielabout
idstringOptional

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.

Beispiel58714l4gSh9jZOLU
localestringPflicht

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.

Länge: 2–35
Beispielcs
identityIdstringOptional

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

BeispielZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
sortDirectionstringOptional
Beispielasc
countrystringOptional

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.

Länge: 2–3
BeispielCZ

Antwortschema

1 dokumentierter Statuscode

200Erfolg
object | object
Eine von 2 Varianten:
Variante 1
idstringPflicht
Beispiel6IU2SWgP76FO2UXw
authorobjectPflicht

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.

namestringPflicht
BeispielJan Barášek
profileSlugstringPflicht
Beispiel71E58E5SjdZN6ut3
avatarUrlstringOptional

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

Beispielhttps://storage.xhp.cz/avatar/…
biostringOptional

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

BeispielNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
authorsobject[]Pflicht

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

Jedes Array-Element:
namestringPflicht

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

BeispielJan Barášek
profileSlugstringPflicht

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

Beispiel71E58E5SjdZN6ut3
slugstringPflicht

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

Beispieljan-barasek
avatarUrlstringOptional

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

Beispielhttps://storage.xhp.cz/avatar/…
biostringOptional

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

BeispielNovinář se specializací na kyberbezpečnost a AI. 15 let v oboru…
jobTitlestringOptional

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

BeispielAnalytik kybernetických hrozeb
status"active" | "former"Optional

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

isPseudonymbooleanOptional

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

Beispielfalse
mainbooleanOptional

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.

Beispieltrue
isStarbooleanOptional

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

mainImageUrlstringOptional
Beispielhttps://storage.xhp.cz/...
titlestringOptional

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.

BeispielKYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.
contentstringPflicht

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

Beispiel<p>Žijeme ve světě, kde je normální řídit...</p>
paywalledbooleanOptional

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

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.

wordCountnumberPflicht

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

Beispiel842
readingTimeMinutesnumberPflicht

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

Beispiel5
kindstringOptional

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.

Beispielepostbranch
routeobjectPflicht
slugstringPflicht

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

Beispielkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
localestringPflicht

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.

Länge: 2–35
Beispielecsenen-GBpt-BRzh-Hans
canonicalbooleanPflicht
routesobject[]Pflicht

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

Jedes Array-Element:
slugstringPflicht
Beispielkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
localestringPflicht

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.

Länge: 2–35
Beispielecsenen-GBpt-BRzh-Hans
editionsobject[]Optional

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

Jedes Array-Element:
localestringPflicht

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.

Länge: 2–35
Beispielecsenen-GBpt-BRzh-Hans
countryCodestring | nullPflicht

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

BeispielCH
slugstringPflicht

Canonical slug of the post in locale.

anchorListobjectPflicht

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.

Beispiel{"why-it-and-39s-late":"Why it&#39;s late"}
perexstringPflicht

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.

metaTitlestringOptional

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.

BeispielKYBER CENA ROKU 2025 | Czech Cyber TV
metaDescriptionstringPflicht
publishedDateDate | string | string | numberOptional
Eine von 4 Varianten:
Variante 1
Date
Variante 2
stringdate-time
Variante 3
stringdate
Variante 4
number
updatedDateDate | string | string | numberOptional

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.

Eine von 4 Varianten:
Variante 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.

Variante 2
stringdate-time
Variante 3
stringdate
Variante 4
number
mainCategoryobjectOptional

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

idnumberPflicht
namestringPflicht
slugstringPflicht
breadcrumbobject[]Pflicht
Jedes Array-Element:
namestringOptional
slugstringPflicht
childrenany[]Pflicht
relatedobject[]Pflicht
Jedes Array-Element:
titlestringPflicht
slugstringOptional
tagListobject[]Pflicht

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

Jedes Array-Element:

Tag associated with the post.

slugstringPflicht

URL-friendly code/slug of the tag.

Beispielbezpecnost
namestringPflicht

Human-readable display name of the tag.

BeispielBezpečnost
colorstringOptional

Hex color code for the tag.

Beispiel#3B82F6
attachmentsobject[]Pflicht

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

Jedes Array-Element:

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

idstringPflicht

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

Beispiel3e43IKfVwc4Bl2D40y5r0x7Uu3x0h9SS
filenamestringPflicht

Human-readable filename of the attachment.

BeispielSPC-Ticagrelor.pdf
downloadUrlstringPflicht

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

Beispielhttps://storage.xhp.cz/...
sizenumberPflicht

Attachment size in bytes.

Beispiel524288
contentTypestringPflicht

MIME type of the attachment.

Beispielapplication/pdf
Variante 2
state"error"Pflicht
messagestringPflicht
BeispielPost "about" does not exist.
code"200"Pflicht
hintstring | nullPflicht

Antwortbeispiel

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

Anfragebeispiel

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"

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten