DocsAPI ReferencePost/bff/post/category-opportunities
getPostAdmin BFF

/bff/post/category-opportunities

Returns all active categories with totalPublished, daysSinceLastPost, opportunityScore and a recommended flag. Pure DB heuristic (no AI call). Used by the admin AI topic modal to pre-select categories with the biggest content gaps when the user clicks "Recommend".

PostgetBffPostCategory-opportunities

Parameters

1 query

1 total
Query · 1
localestringRequired

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-oxendicten-GBen (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.

Length: 235

Request

GET /bff/post/category-opportunities

get
curl -X GET "https://api.bizkithub.com/bff/post/category-opportunities?locale=cs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

JSON payload

{
  "success": false,
  "categories": [
    {
      "externalId": "example_externalId",
      "name": "example_name",
      "totalPublished": 0,
      "opportunityScore": 0,
      "recommended": false
    }
  ]
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key