Setup

To use the Blog API, install the @wix/blog package using npm or Yarn:

Copy
1
npm install @wix/blog

or

Copy
1
yarn add @wix/blog

Then import blog from @wix/blog:

Copy
1
import blog from '@wix/blog'
Was this helpful?
Yes
No

About Wix Blog

Wix Blog allows site owners and collaborators to create and manage blogs. Site owners and collaborators can create and manage posts, draft posts, categories and tags on their site or in the dashboard. Site collaborators must be assigned a blog role. There are 3 types of blog roles:

  • Blog Editors can fully manage the blog, but not other areas of a site.
  • Blog Writers can create and publish their own posts on a blog.
  • Guest Writers can only create posts. Posts written by guest writers must be reviewed and published by a blog editor.

The Wix Blog Backend API provides the functionality for getting and querying posts, draft posts, categories, and tags from a blog.

Before you begin

It's important to note the following:

Terminology

  • Post: A published article on a blog site. It is also referred to as a publication. A blog can have up to 100K posts.
  • Draft Post: An article written by a site owner, blog editor, blog writer, or a guest writer that is not yet published.
  • Category: A grouping of similar and related posts. A post can be assigned to a maximum of 10 categories.
  • Tag: A way to further sort and organize blog posts. Tags provide the ability to filter a blog's articles.
Was this helpful?
Yes
No