BizKitHub
getPostPubliczne 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 w query

Parametry query

· 12
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
localestringOpcjonalne

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
fieldsstringOpcjonalne

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.

Przykładcontent
limitnumberOpcjonalne

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

Przykład64
offsetnumberOpcjonalne

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.

Zakres: 0–∞
Przykład0
identityIdstringOpcjonalne

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

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
tagstringOpcjonalne

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.

Przykładnovinky
mainCategorystringOpcjonalne

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

Przykładnovinky
onlyStarredbooleanOpcjonalne

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

Przykładtrue
authorstringOpcjonalne

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.

Przykładjan-barasek
orderBy"updatedDate:desc" | "publishedDate:desc" | "publishedDate:asc" | "views:desc" | "commentCount:desc" | "title:asc" | "title:desc"Opcjonalne

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.

PrzykładpublishedDate:desc
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
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane

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

Przykład6IU2SWgP76FO2UXw
slugstringWymagane

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

Przykładkyber-cena-roku-2025-nejvetsi-vecer-ceske-kyberbezpecnosti-letos
titlestringWymagane

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

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

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

Przykładhttps://storage.xhp.cz/...
last_modification_dateDate | string | string | numberWymagane

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

Jedna z 4 opcji:
Wariant 1
Date

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

Przykład2025-11-05T15:54:44.280Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
publishedDateDate | string | string | numberWymagane

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

Jedna z 4 opcji:
Wariant 1
Date

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

Przykład2025-11-05T15:54:44.280Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
commentCountnumberWymagane

Number of comments associated with the article.

Przykład12
isStarbooleanOpcjonalne

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

contentstringOpcjonalne

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

PrzykładŽijeme ve světě, kde je normální...
perexstringOpcjonalne

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.

PrzykładKrátký úvodní odstavec článku…
viewsCountnumberOpcjonalne

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

Przykład1240
readingTimeMinutesnumberOpcjonalne

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.

Przykłady1312
fallbackImageUrlstring | nullOpcjonalne

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.

Przykładhttps://cdn.example.com/inline-hero.jpg
authorobjectOpcjonalne

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.

namestringWymagane

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

PrzykładJan Barášek
profileSlugstringWymagane

Author identity — shop__contact.external_id of the main author.

Przykładabcdef0123456789
slugstringOpcjonalne

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

Przykładjan-barasek
avatarUrlstringOpcjonalne

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

mainCategoryobjectOpcjonalne

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.

slugstringWymagane

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

Przykładnovinky
titlestringWymagane

Localized display name of the main category.

PrzykładNovinky
tagListobject[]Wymagane

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

Każdy element tablicy:

Tag associated with the post.

slugstringWymagane

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

Przykładbezpecnost
namestringWymagane

Human-readable display name of the tag.

PrzykładBezpečnost
colorstringOpcjonalne

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

Przykład#3B82F6
routesobject[]Opcjonalne

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żdy element tablicy:
slugstringWymagane

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

Przykładkyber-cena-roku-2025
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. Present only when fields includes editions.

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.

totalnumberWymagane

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

Przykład428
hasMorebooleanWymagane

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

Przykładytruefalse

Przykład odpowiedzi

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
}

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API