Docs home

Get Blogs Listing Admin

Lists the blog posts of the organization in your `ORGID` header for the admin panel, in your chosen display order. Use it to find a blog's ID before reading, editing or archiving it.

GET/admin/blogs
Get Blogs Listing Admin
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/admin/blogs?page=1&per_page=20' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "Blogs list fetched successfully.",
  "blogs": [
    {
      "blog_id": 17,
      "blog_title": "Tets",
      "blog_status": 2,
      "is_archived": 0,
      "views": 0,
      "created_at": 1740065803
    },
    {
      "blog_id": 18,
      "blog_title": "Hdhdgdgdg",
      "blog_status": 2,
      "is_archived": 0,
      "views": 0,
      "created_at": 1740065899
    },
    {
      "blog_id": 19,
      "blog_title": "Testtsts",
      "blog_status": 2,
      "is_archived": 0,
      "views": 0,
      "created_at": 1740066782
    },
    {
      "blog_id": 192,
      "blog_title": "Sample blog",
      "blog_status": 2,
      "is_archived": 0,
      "views": 1,
      "created_at": 1758855695
    }
  ],
  "page_context": {
    "page": 1,
    "per_page": 20,
    "has_more_page": false,
    "total_rows": 4
  }
}

Access: Institute admins, plus custom roles that can view blogs.

Query parameters
pageinteger
Page number, starting at 1.
per_pageinteger
Results per page. Default 50 when page is sent.
statusinteger
1 Draft, 2 Published. Leave it out to get both. Other values fail with "Invalid status.".
1 returns only archived posts. Default: only posts that are not archived.
filtersstring (JSON)
Extra filters as a JSON object: status (same values as above), and start + end (Unix timestamps) to limit by creation date.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Blogs list fetched successfully.
blogsobject[]
Show child attributesHide child attributes
Example: 17
Example: Tets
1 Draft, 2 Published
Example: 2
0/1
Example: 0
Example: 0
Unix timestamp
Example: 1740065803
Show child attributesHide child attributes
Example: 1
Example: 20
Example: false
Example: 4

Notes: If you leave out page and per_page, all matching posts are returned in one response. Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI