List posts

Get the posts on your blog with GET /posts, filtered by language and status, page by page.

Gets the list of posts on your blog. Drafts, scheduled posts, and published posts are all included.

 

Request

Item Value
Method · path GET /posts
Permission Read only (read) or higher

 

Query

Query Required Description
lang Optional Language. Omit for all languages
status Optional all (default) · draft · scheduled · published
limit Optional How many to get at once. 1 to 100, default 20
cursor Optional nextCursor from the previous response. Omit to start from the beginning

 

Example

curl "https://api-open.weekerp.com/blog/v1/posts?lang=en&status=published&limit=20" \
  -H "Authorization: Bearer wk_live_xxxxxxxx"

 

Response

{
  "data": [
    {
      "id": "0193a1f2-7c4e-7b8a-9d10-3f2c1b0a9e87",
      "externalId": "prod-123",
      "lang": "en",
      "slug": "spring-tips",
      "status": "published",
      "title": "5 Spring tips",
      "summary": "Spring tips we use every day",
      "thumbnail": null,
      "publishedAt": "2026-11-14T03:10:00Z",
      "createdAt": "2026-11-14T03:04:05.123456Z",
      "updatedAt": "2026-11-14T03:10:00Z"
    }
  ],
  "hasMore": true,
  "nextCursor": "eyJjIjoi..."
}
  • Newest posts come first.
  • If hasMore is true, get the next page with cursor=<nextCursor>. Send nextCursor exactly as you received it.
  • The list doesn't include content, tags, or categories. To get them, use Get a post.

 

Common errors

HTTP code Fix
400 invalid_value Check the status or limit value
401 api_key_invalid The key is missing, wrong, or revoked. Check your key
429 rate_limited Wait for the Retry-After seconds, then send the same request again

For the full list of errors, see Error format in Publish posts with the blog API.

 

Next steps