BizKitHub
getPostVerejné 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

Parametre

12 v query

Parametre 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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
localestringVoliteľné

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ĺžka: 2–35
Príkladcs
fieldsstringVoliteľné

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.

Príkladcontent
limitnumberVoliteľné

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

Príklad64
offsetnumberVoliteľné

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–∞
Príklad0
identityIdstringVoliteľné

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

PríkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
tagstringVoliteľné

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.

Príkladnovinky
mainCategorystringVoliteľné

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

Príkladnovinky
onlyStarredbooleanVoliteľné

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

Príkladtrue
authorstringVoliteľné

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.

Príkladjan-barasek
orderBy"updatedDate:desc" | "publishedDate:desc" | "publishedDate:asc" | "views:desc" | "commentCount:desc" | "title:asc" | "title:desc"Voliteľné

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.

PríkladpublishedDate:desc
countrystringVoliteľné

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ĺžka: 2–3
PríkladCZ

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné

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

Príklad6IU2SWgP76FO2UXw
slugstringPovinné

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

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

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

PríkladKYBER CENA ROKU 2025: největší večer české kyberbezpečnosti letošního roku.
mainImageUrlstringVoliteľné

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

Prí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í:
Variant 1
Date

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

Príklad2025-11-05T15:54:44.280Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 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í:
Variant 1
Date

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

Príklad2025-11-05T15:54:44.280Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
commentCountnumberPovinné

Number of comments associated with the article.

Príklad12
isStarbooleanVoliteľné

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

contentstringVoliteľné

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

PríkladŽijeme ve světě, kde je normální...
perexstringVoliteľné

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.

PríkladKrátký úvodní odstavec článku…
viewsCountnumberVoliteľné

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

Príklad1240
readingTimeMinutesnumberVoliteľné

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.

Príklady1312
fallbackImageUrlstring | nullVoliteľné

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.

Príkladhttps://cdn.example.com/inline-hero.jpg
authorobjectVoliteľné

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

PríkladJan Barášek
profileSlugstringPovinné

Author identity — shop__contact.external_id of the main author.

Príkladabcdef0123456789
slugstringVoliteľné

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

Príkladjan-barasek
avatarUrlstringVoliteľné

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

mainCategoryobjectVoliteľné

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.

Príkladnovinky
titlestringPovinné

Localized display name of the main category.

Prí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 poľa:

Tag associated with the post.

slugstringPovinné

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

Príkladbezpecnost
namestringPovinné

Human-readable display name of the tag.

PríkladBezpečnost
colorstringVoliteľné

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

Príklad#3B82F6
routesobject[]Voliteľné

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 poľa:
slugstringPovinné

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

Prí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ĺžka: 2–35
Príkladycsenen-GBpt-BRzh-Hans
editionsobject[]Voliteľné

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 poľa:
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ĺžka: 2–35
Príkladycsenen-GBpt-BRzh-Hans
countryCodestring | nullPovinné

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

Prí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.

Príklad428
hasMorebooleanPovinné

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

Príkladytruefalse

Ukážka odpovede

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ážka požiadavky

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"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč