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/blogsGet 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.searchstring
Matches part of the blog title.
statusinteger
1 Draft, 2 Published. Leave it out to get both. Other values fail with "Invalid status.".show_archivedinteger
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.Response
codeinteger
Example:
200messagestring
Example:
Blogs list fetched successfully.blogsobject[]
Show child attributesHide child attributes
blogs.blog_idinteger
Example:
17blogs.blog_titlestring
Example:
Tetsblogs.viewsinteger
Example:
0page_contextobject
Show child attributesHide child attributes
page_context.pageinteger
Example:
1page_context.per_pageinteger
Example:
20page_context.has_more_pageboolean
Example:
falsepage_context.total_rowsinteger
Example:
4Notes: 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.