URL Details

This route retrieves a URL's metadata: its title, description, image, and site icon.

Available routes (endpoints are described below):

/wp-block-editor/v1/url-details

Controller classes:

Resource schema

The schema lists fields returned by the resource. Fields depend on the context and user capabilities.

Field Context Description
title view, edit Resource field.
icon view, edit Resource field.
description view, edit Resource field.
image view, edit Resource field.
url view, edit Resource field.

/wp-block-editor/v1/url-details

An OPTIONS request returns methods, parameters, and the complete schema for the selected route.

$ curl -X OPTIONS -i https://example.com/wp-json/wp-block-editor/v1/url-details

Get data

Request type

GET /wp-block-editor/v1/url-details

Request parameters

$context(string)
Response context: view, embed, or edit.
$page(integer)
Collection page number.
$per_page(integer)
Number of items per page.

Request example

$ curl https://example.com/wp-json/wp-block-editor/v1/url-details