An extension for the WP REST API that exposes endpoints for sidebars and widgets.
As of April 2026, WP REST API Sidebars is a WordPress api plugin with 100 active installations and a 5/5 rating from 1 reviews. It has been downloaded 72K+ times in total. Requires WordPress 4.4+ and PHP false+. Available on WordPress.org since 2016. Last updated 10 years ago — may have compatibility concerns. Top alternative: WP Consent API.
An extension for the WP REST API that exposes endpoints for sidebars and widgets.
note: this plugin is under heavy development and will receive frequent feature updates (including documentation) so stay tuned and checkout the github repo for the latest updates
/wp-json/wp-rest-api-sidebars/v1/sidebars returns a list of registered sidebars
[
{
"name": "Sidebar Name",
"id": "sidebar-id",
"description": "Sidebar description...",
"class": "sidebar-class",
"before_widget": "<aside id=\"%1$s\" class=\"widget %2$s\">",
"after_widget": "<\/aside>",
"before_title": "<h1 class=\"widget-title\">",
"after_title": "<\/h1>"
}
]
/wp-json/wp-rest-api-sidebars/v1/sidebars/{id} re…
| WordPress | 4.4+ requiredTested up to 4.4.34 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.