The translation was generated automatically and may contain mistakes
Media attachments in the notes on the wall
Information about media attachments in the notes and comments on the wall is returned as an array attachments . Each element of an array is an object with two fields. The first field — type ( string contains the type of investment ( photo , note , audio Etc.). The name of the second field is the same as the value given in type . The second field contains the object representing the media embedding. The structure of an object in this field depends on its type.
Example object attachments For two attachments (photo and audio):
[
{
"type": "photo",
"photo": <объект photo>
},
{
"type": "audio",
"audio": <объект audio>
}
]Each object can contain an additional field. access_key The key to access content. Description of field access_key You can find on this page .
Photo ( type = photo )
Description of the object fields is on a separate page .
For photos that have not been uploaded to the requested entry, the field is additionally returned post_id which contains the ID of the record in which the photo was uploaded.
Photo uploaded directly ( type = posted_photo )
This is an outdated type of investment. It can only be returned for records created before 2013.
id
integer
Photo ID.
owner_id
integer
Identification of the owner of the photo.
photo_130
string
URL of the image for preview.
photo_604
string
URL of the full-size image.
Video recording ( type = video )
Description of the object fields is on a separate page .
Audio recording ( type = audio )
Description of the object fields is on a separate page .
Document ( type = doc )
Description of the object fields is on a separate page .
Graffiti ( type = graffiti )
This is an outdated type of investment. It can only be returned for records created before 2013. For newer entries, graffiti is returned as an attachment with type photo .
id
integer
Graffiti ID.
owner_id
integer
The graffiti writer's ID.
photo_130
string
URL of the image for preview.
photo_604
string
URL of the full-size image.
Reference ( type = link )
Description of the object fields is on a separate page .
Content of the application ( type = app )
This is an outdated type of investment. It can only be returned for records created before 2013.
id
integer
Application ID.
name
string
Name of the annex.
photo_130
string
URL of the image for preview.
photo_604
string
URL of the full-size image.
The survey ( type = poll )
Description of the object fields is on a separate page .
Wiki page ( type = page )
API version 5.20 and above
Description of the object fields is on a separate page .
For the API version below 5.20:
id
integer
The wiki page ID.
group_id
integer
The identity of the group that owns the wiki page.
title
string
The name of the wiki page.
Album with photos ( type=album )
id
integer
Album ID.
thumb
object
Album cover, object photo .
owner_id
integer
ID of the owner of the album.
title
string
Name of the album.
description
string
Description of the album.
created
integer
Date of the album creation in Unixtime format.
updated
integer
Date of last update of the album in Unixtime format.
size
integer
Number of photos in the album.
List of photographs ( type=photos_list )
An array of rows containing photo IDs. The photos themselves are duplicated in the form of attached photo objects, but this list is necessary if the photos are used more than the maximum number of returned attachments (10).
Goods ( type = market )
Returned for version 5.52 and higher.
Description of the object fields is on a separate page .
Collection of goods ( type = market_album )
Returned for version 5.52 and higher.
Description of the object fields is on a separate page .
Sticker ( type = sticker )
Description of the object fields is on a separate page . This type of attachment can only be returned for comments.
Cards ( type = pretty_cards )
cards
array
Array of card elements. Each element of the array contains fields:
- •
card_id(string(b) the card identifier; - •
link_url(stringThe URL of the card; - •
title(string(a) signature of the card; - •
images(array) — images. Array of objects with fieldsurl(string),width(integer),height(integer); - •
button(objectThe object of the button; - •
price(string(a) the price; - •
price_old(string) is the old price.
The meeting ( type = event )
id
integer
Meet ID.
time
integer
Time to start meeting at Unixtime
member_status
integer
Whether the current user is going to the meeting. Possible values:
- •
1- It's definitely coming; - •
2Maybe it will go; - •
3- It's not coming.
is_favorite
bool
Whether the meeting has been bookmarked.
address
string
Место проведения встречи.
text
string
Text to display the snippet.
button_text
string
Text on the snippet button.
friends
array[integer]
A list of friend IDs that also go to the event.