Получить комментарии
Request
GET
https://api.wiki.yandex.net/v1/pages/{idx}/comments
Path parameters
|
Name |
Description |
|
idx |
Type: integer |
Query parameters
|
Name |
Description |
|
cursor |
Type: string Example: `` |
|
order_by |
Type: string Если указано, отсортировать выдачу по полю в направлении Const: Example: `` |
|
order_direction |
All of: OrderDirection
Если указано поле Default: Example: `` |
|
page_size |
Type: integer Число результатов на странице выдачи. Default: Min value: Max value: |
|
status_filter |
All of: CommentResolveStatus
Фильтрация по статусу комментария, принимает CommentResolveStatus (resolved, unresolved) Example: `` |
Responses
200 OK
OK
Body
application/json
{
"results": [
{
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": "resolved",
"reactions": [
{
"type": "like",
"author": null,
"created_at": "2025-01-01T00:00:00Z"
}
],
"thread_info": {
"total_posts": 0,
"last_comment": {
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": null,
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": null,
"reactions": [
null
]
}
}
}
],
"next_cursor": "example",
"prev_cursor": "example"
}
|
Name |
Description |
|
results |
Type: CommentSchemaExt[] Example
|
|
next_cursor |
Type: string Example: |
|
prev_cursor |
Type: string Example: |
UserIdentity
|
Name |
Description |
|
cloud_uid |
Type: string Example: |
|
uid |
Type: string Example: |
Example
{
"uid": "example",
"cloud_uid": "example"
}
UserSchema
|
Name |
Description |
|
affiliation |
Type: string Example: |
|
display_name |
Type: string Example: |
|
id |
Type: integer |
|
is_dismissed |
Type: boolean |
|
username |
Type: string Example: |
|
identity |
Type: UserIdentity Example
|
Example
{
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
}
CommentResolveStatus
An enumeration.
Type: string
Enum: resolved, unresolved
ReactionType
An enumeration.
Type: string
Enum: like, hooray, confused, heart, rocket, eyes, fire, ok, facepalm, check, laugh, dislike
CommentReactionSchema
|
Name |
Description |
|
author |
Type: UserSchema Example
|
|
created_at |
Type: string<date-time> Example: |
|
type |
Type: ReactionType An enumeration. Enum: |
Example
{
"type": "like",
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"created_at": "2025-01-01T00:00:00Z"
}
CommentSchema
|
Name |
Description |
|
author |
Type: UserSchema Example
|
|
body |
Type: string Example: |
|
created_at |
Type: string<date-time> Example: |
|
id |
Type: integer |
|
is_deleted |
Type: boolean |
|
reactions |
Type: CommentReactionSchema[] Example
|
|
resolve_status |
Type: CommentResolveStatus An enumeration. Enum: |
|
inline_text |
Type: string Example: |
|
parent_id |
Type: integer |
|
thread_id |
Type: integer |
Example
{
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": "resolved",
"reactions": [
{
"type": "like",
"author": null,
"created_at": "2025-01-01T00:00:00Z"
}
]
}
ThreadSchema
|
Name |
Description |
|
last_comment |
Type: CommentSchema Example
|
|
total_posts |
Type: integer |
Example
{
"total_posts": 0,
"last_comment": {
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": "resolved",
"reactions": [
{
"type": "like",
"author": null,
"created_at": "2025-01-01T00:00:00Z"
}
]
}
}
CommentSchemaExt
|
Name |
Description |
|
author |
Type: UserSchema Example
|
|
body |
Type: string Example: |
|
created_at |
Type: string<date-time> Example: |
|
id |
Type: integer |
|
is_deleted |
Type: boolean |
|
reactions |
Type: CommentReactionSchema[] Example
|
|
resolve_status |
Type: CommentResolveStatus An enumeration. Enum: |
|
inline_text |
Type: string Example: |
|
parent_id |
Type: integer |
|
thread_id |
Type: integer |
|
thread_info |
Type: ThreadSchema Example
|
Example
{
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": "resolved",
"reactions": [
{
"type": "like",
"author": null,
"created_at": "2025-01-01T00:00:00Z"
}
],
"thread_info": {
"total_posts": 0,
"last_comment": {
"id": 0,
"body": "example",
"inline_text": "example",
"parent_id": 0,
"author": null,
"thread_id": 0,
"created_at": "2025-01-01T00:00:00Z",
"is_deleted": true,
"resolve_status": null,
"reactions": [
null
]
}
}
}