BizKitHub
getPostVeřejné API v1

/api/v1/post/feed

Returns a feed of the most recent posts. Posts are filtered by the requested locale and ordered by their last modification date. The limit parameter controls how many items are returned, and the optional fields parameter lets you request additional properties (for example content). When requested, the content field is returned as a sanitized, single-line teaser truncated to a fixed length suitable for listing views. You can filter posts by tag (using tag code) or by main category (using category route slug).

Pagination: use limit together with offset to page through results. The response always carries a top-level total (count of items matching the same WHERE) and hasMore (offset + items.length < total) so paginators do not need a second call to know when to stop.

Ordering: orderBy accepts a whitelisted set of values (updatedDate:desc — default, publishedDate:desc, publishedDate:asc, views:desc, commentCount:desc, title:asc, title:desc). Starred/pinned posts are always kept at the top regardless of the selected ordering.

Extra opt-in fields: fields accepts content, routes, author, views, perex, readingTime, fallbackImage.

Locale fallback: locale is optional. When omitted or resolved to an unsupported value, the organisation's primary locale is used automatically.

postgetApiV1PostFeed

Parametry

12 v query

Parametry v query

· 12
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
localestringVolitelné

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
fieldsstringVolitelné

Comma-separated list of additional fields to include in the response. Supported values: content (adds a sanitized single-line teaser), routes (adds the cross-locale canonical routes for hreflang / sitemap use), editions (adds the language × country editions the post is published in), author (adds { name, profileSlug } for the post main author), views (adds cumulative viewsCount), perex (adds the localized perex; empty string when not authored), readingTime (adds readingTimeMinutes computed from the post HTML at ~200 wpm, always >= 1), fallbackImage (adds fallbackImageUrl: the first <img src> in the body, else the thumbnail of the first embedded YouTube video; only when the post has no main image). Example: content,routes,author.

Příkladcontent
limitnumberVolitelné

Maximum number of items to return. If omitted, a default internal limit is applied.

Příklad64
offsetnumberVolitelné

Zero-based offset for pagination. Skips the first offset items after the WHERE / ORDER BY are applied. Combine with limit to page through results; use the top-level total / hasMore in the response to know when to stop.

Rozsah: 0–∞
Příklad0
identityIdstringVolitelné

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

PříkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
tagstringVolitelné

Optional tag code to filter posts. Only posts that have this tag assigned will be returned. The tag must be active and belong to the same organisation.

Příkladnovinky
mainCategorystringVolitelné

Optional main category route slug to filter posts. Only posts that have this category set as their main category will be returned.

Příkladnovinky
onlyStarredbooleanVolitelné

Filter to only pinned/starred posts (typically the homepage hero slot).

Příkladtrue
authorstringVolitelné

Filter to posts main-authored by this identifier. Accepts either the author route slug (routable public URL — resolved via core__route with type_id=author) OR the shop__contact.external_id (16-char). Same value works for both — the endpoint picks the first matching contact in the caller organisation. Powers the "posts by author X" feed on /autor/<slug> pages.

Příkladjan-barasek
orderBy"updatedDate:desc" | "publishedDate:desc" | "publishedDate:asc" | "views:desc" | "commentCount:desc" | "title:asc" | "title:desc"Volitelné

Ordering of the returned list. Defaults to the organisation setting post_feed_default_order (admin /settings/posts), else updatedDate:desc. The implicit is_star DESC prefix is preserved for every ordering so pinned posts stay at the top.

PříkladpublishedDate:desc
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
itemsobject[]Povinné
Každá položka pole:
idstringPovinné

Post public id (content__post.external_id, 16-char string). Stable across renames.

Příklad6IU2SWgP76FO2UXw
slugstringPovinné

Unique URL-friendly identifier of the article. Used to construct the public route.

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

Human-readable article title. Returned in the language specified in the locale parameter.

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

URL of the main/featured image for the post. Null if no main image is set.

Příkladhttps://storage.xhp.cz/...
last_modification_dateDate | string | string | numberPovinné

Timestamp of the last modification of the article. ISO 8601 format.

Jedna z 4 možností:
Varianta 1
Date

Timestamp of the last modification of the article. ISO 8601 format.

Příklad2025-11-05T15:54:44.280Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
publishedDateDate | string | string | numberPovinné

First-published timestamp of the article. Null for older posts that never had a publish date recorded.

Jedna z 4 možností:
Varianta 1
Date

First-published timestamp of the article. Null for older posts that never had a publish date recorded.

Příklad2025-11-05T15:54:44.280Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
commentCountnumberPovinné

Number of comments associated with the article.

Příklad12
isStarbooleanVolitelné

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

contentstringVolitelné

Full article content in plain text or HTML. Returned only if the field is explicitly requested via the fields query parameter.

PříkladŽijeme ve světě, kde je normální...
perexstringVolitelné

Localized perex (short lead paragraph). Present only when fields includes perex. Empty string when the author did not fill in a perex for this locale.

PříkladKrátký úvodní odstavec článku…
viewsCountnumberVolitelné

Cumulative public read count from /api/v1/post (buffered + flushed by cron). Present only when fields includes views.

Příklad1240
readingTimeMinutesnumberVolitelné

Estimated reading time in whole minutes at ~200 words per minute. Computed on the fly from the post HTML. Always at least 1, even for very short posts (matches the Medium convention). Present only when fields includes readingTime.

Příklady1312
fallbackImageUrlstring | nullVolitelné

URL of the first <img> found in the post body, else the thumbnail of the first embedded YouTube video (https://i.ytimg.com/vi/<id>/hqdefault.jpg). Present only when fields includes fallbackImage. null when the post already has a mainImageUrl (no fallback needed) or when the body contains neither. Relative paths are returned as-is; the caller is responsible for resolving them against a base URL.

Příkladhttps://cdn.example.com/inline-hero.jpg
authorobjectVolitelné

Main author of the post. Present only when fields includes author. Falls back to { name: "", profileSlug: "" } when the author record is missing or filtered out by the organisation scope.

namestringPovinné

Public byline name of the main author (display name / pseudonym aware).

PříkladJan Barášek
profileSlugstringPovinné

Author identity — shop__contact.external_id of the main author.

Příkladabcdef0123456789
slugstringVolitelné

Routable author profile slug (/post/author?slug=). Empty string when the profile page is hidden.

Příkladjan-barasek
avatarUrlstringVolitelné

Author avatar URL (author → contact → linked user). Omitted when none.

mainCategoryobjectVolitelné

Main category of the post. Null if no main category is assigned or if the category has no route/locale data for the requested locale.

slugstringPovinné

URL-friendly slug of the main category route in the requested locale. Use this to construct links to the category page.

Příkladnovinky
titlestringPovinné

Localized display name of the main category.

PříkladNovinky
tagListobject[]Povinné

Array of tags assigned to this post. Empty array if no tags are assigned. Only active tags are included.

Každá položka pole:

Tag associated with the post.

slugstringPovinné

URL-friendly code/slug of the tag. Can be used to filter posts by tag.

Příkladbezpecnost
namestringPovinné

Human-readable display name of the tag.

PříkladBezpečnost
colorstringVolitelné

Hex color code for the tag (e.g., "#FF5733"). Null if no color is set.

Příklad#3B82F6
routesobject[]Volitelné

Canonical routes for every locale this post is translated into. Present only when fields includes routes. Use it to build sitemap alternates / hreflang links without calling /post per item.

Každá položka pole:
slugstringPovinné

Canonical URL-friendly slug of the post in the given locale.

Příkladkyber-cena-roku-2025
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. Present only when fields includes editions.

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.

totalnumberPovinné

Total number of posts matching the same WHERE (locale, tag, mainCategory, onlyStarred, visibility). Independent of limit / offset — use it to render paginators.

Příklad428
hasMorebooleanPovinné

True when there are more items beyond the current page — computed as offset + items.length < total.

Příkladytruefalse

Ukázka odpovědi

application/json
{
  "items": [
    {
      "id": "6IU2SWgP76FO2UXw",
      "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.",
      "mainImageUrl": "https://storage.xhp.cz/...",
      "last_modification_date": "2025-11-05T15:54:44.280Z",
      "commentCount": 12,
      "isStar": false,
      "content": "Žijeme ve světě, kde je normální...",
      "perex": "Krátký úvodní odstavec článku…",
      "viewsCount": 1240,
      "readingTimeMinutes": 1,
      "author": {
        "name": "Jan Barášek",
        "profileSlug": "abcdef0123456789",
        "slug": "jan-barasek",
        "avatarUrl": "example_avatarUrl"
      },
      "mainCategory": {
        "slug": "novinky",
        "title": "Novinky"
      },
      "tagList": [
        {
          "slug": "bezpecnost",
          "name": "Bezpečnost",
          "color": "#3B82F6"
        }
      ],
      "routes": [
        {
          "slug": "kyber-cena-roku-2025",
          "locale": "cs"
        }
      ],
      "editions": [
        {
          "locale": "cs",
          "slug": "example_slug"
        }
      ]
    }
  ],
  "total": 428,
  "hasMore": true
}

Ukázka požadavku

GET /api/v1/post/feed

get
curl -X GET "https://api.bizkithub.com/api/v1/post/feed?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&locale=cs&fields=content&limit=64&offset=0&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&tag=novinky&mainCategory=novinky&onlyStarred=true&author=jan-barasek&orderBy=publishedDate%3Adesc&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íč