`/wp/v2/themes`

Namespace: wp/v2
Route: /wp/v2/themes

Routes

  • Collection: /wp/v2/themes
  • Single: /wp/v2/themes/{stylesheet}

HTTP Methods

Collection methods: GET

Single methods: GET

Request Parameters

Collection GET

ParameterTypeRequiredDefaultDescription
statusarrayfalseLimit result set to themes assigned one or more statuses.

Single GET

ParameterTypeRequiredDefaultDescription
stylesheetstringfalseThe theme’s stylesheet. This uniquely identifies the theme.

Response Schema (Item)

FieldTypeDescription
stylesheetstringThe theme’s stylesheet. This uniquely identifies the theme. (read-only)
stylesheet_uristringThe uri for the theme’s stylesheet directory. (read-only)
templatestringThe theme’s template. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme’s stylesheet. (read-only)
template_uristringThe uri for the theme’s template directory. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme’s stylesheet directory. (read-only)
authorobjectThe theme author. (read-only)
author_uriobjectThe website of the theme author. (read-only)
descriptionobjectA description of the theme. (read-only)
is_block_themebooleanWhether the theme is a block-based theme. (read-only)
nameobjectThe name of the theme. (read-only)
requires_phpstringThe minimum PHP version required for the theme to work. (read-only)
requires_wpstringThe minimum WordPress version required for the theme to work. (read-only)
screenshotstringThe theme’s screenshot URL. (read-only)
tagsobjectTags indicating styles and features of the theme. (read-only)
textdomainstringThe theme’s text domain. (read-only)
theme_supportsobjectFeatures supported by this theme. (read-only)
theme_uriobjectThe URI of the theme’s webpage. (read-only)
versionstringThe theme’s current version. (read-only)
statusstringA named status for the theme.
default_template_typesarrayA list of default template types. (read-only)
default_template_part_areasarrayA list of allowed area values for template parts. (read-only)

Authentication

  • Read: switch_themes.
  • Write: edit_theme_options for updates; switch_themes for activation.

Example Requests

bash
curl -X GET "https://wordpress.org/news/wp-json/wp/v2/themes"
bash
curl -X GET "https://wordpress.org/news/wp-json/wp/v2/themes/twentytwentyfour"

Example Response (trimmed)

json
{
  "id": 1,
  "_links": {
    "self": [{ "href": "/wp/v2/themes/1" }]
  }
}