Widgets API
What is the Widgets API?
The Widgets API allows developers to create units of content and programmatically place them on specific pages of a BigCommerce storefront. The content can consist of HTML, CSS, and JavaScript, and is configurable using Handlebars variables. The Widgets API supports various content types, such as YouTube videos, image sliders, and chat apps.
What Can You Do with Widgets API?
What can you do with the Widgets API?
The Widgets API allows developers to programmatically inject custom content via HTML, JS, and CSS into Stencil templates, enabling them to build apps that enhance ecommerce experiences on BigCommerce storefronts.
- Inject modular, reusable blocks of content inside new and existing store pages
- Build tools that allow non-technical users to control content without editing theme files
- Target specific products, categories, or brands with the widgets
- Create sophisticated page builder applications and merchandising functionality
The Widgets API lays the groundwork for future tools that will give merchants more control over their storefronts than ever before, without editing code, even opening the door to creating new workflows to manage and publish content in BigCommerce stores.
As a developer, the Widgets API opens the door to building all kinds of creative and exciting solutions for BigCommerce merchants.
Use Case
In the Developer Blog article linked below, learn how the Widgets API is a foundational step towards providing native visual content merchandising capabilities in BigCommerce.
Advancing API-first with BigCommerce Widgets
When bringing a product to market, you have a decision to make. You can build and launch the product, get it into the hands of your users, and then later surface an API to allow the ecosystem to extend it. Or, you can take the API-first approach.