Docs home

Get Blog Details for Public Using Slug

Returns one published blog post by its URL slug, for showing it on your public website. Works without an API key.

GET/blog
Get Blog Details for Public Using Slug
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/blog?slug=sample-blog' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "Blog fetched successfully.",
  "blog_details": {
    "blog_id": 192,
    "blog_title": "Sample blog",
    "blog_excerpt": "Test",
    "is_featured": 1,
    "blog_meta_title": "Sample blog",
    "minutes_read": 1,
    "blog_meta_desc": "Test",
    "blog_status": 2,
    "visibility_option": 0,
    "publish_date": 1758855695,
    "author_name": null,
    "stream_ids": [],
    "subcription_plan_ids": [],
    "tag_names": [],
    "redirect_for_subscription_purchase": 0,
    "redirect_for_login": 0,
    "blog_image_url": null,
    "featured_image_url": "https://dme2wmiz2suov.cloudfront.net/Institution(208)/Blogs/4451763-237-536x354.jpg?Expires=1758874728&Signature=Y44Iwbqy2OEoVhM9PR~hHRu7Evi0NCWkAaSMU8ulREkhv6~cwH3kTVnI-d2Qx-UMB1fDYmToXcQ1Qvn7Tau1Glid1qUf9T3MRYsrbTh3pt9npGArDEc6j8Snao-nicmT6jL4irQDWploLkm-f-3LhpegL6OYuCSyXbxXe7a03HWCG0jnyOVRCdfnQ153x2AAUIA9J-LN3AgMrgMM9NonUkgqufi4p3gTqNGKHu7rBJyyGKGeMzS5uN5ANxpbvS-7PpWBP-4W6z9XVLCLFVFvemSTrEyK8RkMqOmFZBlkBRWJYvgAfEDo2KF7RZOhwKAyGT37Q2ejWzAyidiXQxT3Kw__&Key-Pair-Id=APKAIIFZDCEANAVU2VTA",
    "blog_content": "<p>Sample blog testing</p>\n"
  }
}

Access: Public, no API key needed. If you send a learner's API key, posts limited to logged-in learners are returned in full.

Query parameters
slugstringrequired
The post's blog_url_slug.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Blog fetched successfully.
Show child attributesHide child attributes
Example: 192
Example: Sample blog
Example: Test
Example: Sample blog
Example: 1
Example: Test
Example: 2
1 Public, 2 Private, 3 Logged-in learners only
Example: 0
Unix timestamp
Example: 1758855695
Array of tag_id and tag_name
HTML
Example: <p>Sample blog testing</p>

Notes: The institute is worked out from the website host you call, so call your own institute's API host. Only published, unarchived posts are found; otherwise "Invalid slug provided.". For a logged-in-only post requested without an API key, redirect_for_login is 1 and blog_content holds only the opening part of the post. Rate limit: 300 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI