BizKitHub
DocsAPI ReferenceGlossary/api/v1/glossary/random
getGlossaryPublic API v1

/api/v1/glossary/random

Picks a single published+public term at random for the given locale. Useful for a "term of the day" block on the homepage. Passing exclude=id1,id2 in a series-of-calls flow prevents immediate repeats.

glossarygetApiV1GlossaryRandom

Parameters

3 query

Query parameters

· 3
apiKeystringRequired

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

ExamplePRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
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
Examplecs
excludestringOptional

Comma-separated list of term ids to skip (avoids repeats in a series).

Exampleexample_exclude

Response schema

1 status code documented

200Success
object | object
One of 2:
Variant 1
idstringRequired
slugstring | nullRequired
One of 2:
Variant 1
string
Variant 2
null
termstringRequired
abbreviationstring | nullRequired
One of 2:
Variant 1
string
Variant 2
null
definitionPreviewstring | nullRequired
One of 2:
Variant 1
string
Variant 2
null
Variant 2
state"error"Required
messagestringRequired
code"200"Required
hintstring | nullRequired
One of 2:
Variant 1
string
Variant 2
null

Response example

application/json
{
  "id": "example_id",
  "term": "example_term"
}

Request example

GET /api/v1/glossary/random

get
curl -X GET "https://api.bizkithub.com/api/v1/glossary/random?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&locale=cs&exclude=example_exclude" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key