Post list

Get posts for a blog

url

https://zenblog.com/api/public/blogs/:blogId/posts

method

GET

Query

  • offset

    Optional

    The offset for the posts

  • limit

    Optional

    The limit for the posts

  • category

    Optional

    The category slug to filter posts by. Example: &category=news

  • tags

    Optional

    The tags to filter posts by. Ex: &tags=random,test. Multiple tags are possible.

  • author

    Optional

    The author slug to filter posts by. Ex: &author=carpincho


Response

200

The posts

{
  data: [{ 
    title: "string",
    html_content: "string",
    slug: "string",
    category_name?: "string",
    category_slug?: "string",
    tags?: "object",
    excerpt?: "string",
    published_at: "string",
    authors?: "object",
  }],
  total?: number,
  offset?: number,
  limit?: number,
}