pages

pages.get

Returns information about a wiki page.

To call this method, you can use:
• user access token (access right required: pages — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

owner_id

string

Page owner ID.

page_id

integer

Wiki page ID.

global

checkbox

1 — to return information about a global wiki page

site_preview

checkbox

1 — resulting wiki page is a preview for the attached link

title

string

Wiki page title.

need_source

checkbox

need_html

checkbox

1 — to return the page as HTML

Result

Returns a page object containing the following fields:

  • pid — Page ID.
  • group_id — Community ID.
  • creator_id — ID of the page creator.
  • title — Page title.
  • source — Text of the wiki page.
  • current_user_can_edit — Whether a user can edit page text (0 — cannot, 1 — can).
  • current_user_can_edit_access — Whether a user can edit page access permissions (0 — cannot, 1 — can).
  • who_can_view — Who can view the wiki page (0 — only community managers, 1 — only community members, 2 — all users).
  • who_can_edit — Who can edit the wiki page (0 — only community managers, 1 — only community members, 2 — all users).
  • editor_id — ID of the last user who edited the page.
  • edited — Date of the last change.
  • created — Page creation date.
  • parent — Title of the parent page for navigation, if any.
  • parent2 — Title of the second parent page for navigation, if any.

Error codes

Common errors may occur during execution

Linked versions

Go to API versions page

Community object contains new cover field. account.getCounters method takes a new value friends_suggestions in the filter parameter. pages.get checks whether the user has administrator rights for using the need_source parameter.

Wiki page in post is returned as page object. A new need_source parameter was added for method pages.get, source field isn't returned by default now.

In the return object that describes вики-страницу the field pid renamed to id The Fields edited and created They have a new format.