BizKitHub
DokumentacjaEksplorator APIPost/api/v1/post/comment/count
getPostPubliczne API v1

/api/v1/post/comment/count

Returns number of non-deleted comments for a post.

postgetApiV1PostCommentCount

Parametry

2 w query

Parametry query

· 2
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
postIdstringWymagane

Post public id (content__post.external_id).

Przykład6IU2SWgP76FO2UXw

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
countnumberWymagane
Przykład12
Wariant 2
state"error"Wymagane
messagestringWymagane
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

application/json
{
  "count": 12
}

Przykład żądania

GET /api/v1/post/comment/count

get
curl -X GET "https://api.bizkithub.com/api/v1/post/comment/count?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&postId=6IU2SWgP76FO2UXw" \
  -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