Get information about resources
Request
GET
https://api.wiki.yandex.net/v1/pages/{idx}/resources
Path parameters
|
Name |
Description |
|
idx |
Type: integer |
Query parameters
|
Name |
Description |
|
cursor |
Type: string Example: `` |
|
order_by |
Type: string If specified, sort the results by this field in the Enum: |
|
order_direction |
All of: OrderDirection
If Default: Example: `` |
|
page_size |
Type: integer Number of results per page. Default: Min value: Max value: |
|
q |
Type: string Search by title Max length: Example: `` |
|
types |
Type: string The resource types to include, comma-separated. Possible values: attachment, grid Example: `` |
Responses
200 OK
OK
Body
application/json
{
"results": [
{
"type": "attachment",
"item": {
"id": 0,
"name": "example",
"download_url": "example",
"size": "example",
"description": "example",
"user": {},
"created_at": "2025-01-01T00:00:00Z",
"mimetype": "example",
"has_preview": true,
"check_status": "ready"
}
}
],
"next_cursor": "example",
"prev_cursor": "example"
}
|
Name |
Description |
|
results |
Type: Resource[] Example
|
|
next_cursor |
Type: string Example: |
|
prev_cursor |
Type: string Example: |
ResourceType
An enumeration.
Type: string
Enum: attachment, grid
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"
}
FileCheckStatusType
An enumeration.
Type: string
Enum: check, ready, deleted, infected, error
AttachmentSchema
|
Name |
Description |
|
created_at |
Type: string<date-time> Example: |
|
description |
Type: string Example: |
|
download_url |
Type: string Example: |
|
has_preview |
Type: boolean |
|
id |
Type: integer |
|
mimetype |
Type: string Example: |
|
name |
Type: string Example: |
|
size |
Type: string Example: |
|
check_status |
All of 1 type
Default: |
|
user |
Type: UserSchema Example
|
Example
{
"id": 0,
"name": "example",
"download_url": "example",
"size": "example",
"description": "example",
"user": {
"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",
"mimetype": "example",
"has_preview": true,
"check_status": "ready"
}
PageGridsSchema
|
Name |
Description |
|
created_at |
Type: string<date-time> Example: |
|
id |
Type: string<uuid4> Example: |
|
title |
Type: string Example: |
Example
{
"id": "example",
"title": "example",
"created_at": "2025-01-01T00:00:00Z"
}
Resource
|
Name |
Description |
|
item |
Any of 2 types
Example
|
|
type |
Type: ResourceType An enumeration. Enum: |
Example
{
"type": "attachment",
"item": {
"id": 0,
"name": "example",
"download_url": "example",
"size": "example",
"description": "example",
"user": {
"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",
"mimetype": "example",
"has_preview": true,
"check_status": "ready"
}
}