Overview
Retrieve a specific blog post using its URL-friendly slug. This is the recommended method for public-facing blog pages as it provides clean, SEO-friendly URLs.Preferred for public URLs: Use slugs like
/blog/etabs-python-tutorial instead of UUIDs like /blog/ec94c8ac-44a2-4093-acce-548905684ddfPath Parameters
URL-friendly slug (lowercase with hyphens)
Response
Returns a single blog post object.Unique blog post UUID
Blog post title
Full markdown content
Author name
Short description/excerpt
Array of tag strings
Thumbnail image URL
URL-friendly slug
Publication status
ISO 8601 creation timestamp
ISO 8601 last update timestamp
Example Requests
Example Response
Status Code:
200 OKError Responses
Blog post with the specified slug not found
Server error occurred
Slug Format
Slugs are URL-friendly identifiers with these characteristics:Lowercase - All characters are lowercase
Hyphens - Words separated by hyphens (not underscores)
No special characters - Only letters, numbers, and hyphens
Unique - Each slug is unique across all blog posts
Auto-generation Examples
| Title | Generated Slug |
|---|---|
| ”ETABS Python Tutorial” | etabs-python-tutorial |
| ”Getting Started with SAP2000 API” | getting-started-with-sap2000-api |
| ”Top 10 Tips!” | top-10-tips |
| ”My Blog” (duplicate) | my-blog-2 |
Use Cases
Public Blog Pages
Public Blog Pages
Use slugs for all public-facing blog URLs for better SEO and user experience.
Social Sharing
Social Sharing
SEO Optimization
SEO Optimization
Search engines use slugs in ranking. Descriptive slugs improve SEO.
Stable URLs
Stable URLs
Even if the blog title changes, the slug remains stable for permalinks.
Best Practices
Always use slugs for public URLs - Provide better UX and SEO than UUIDs
Cache blog content - Blog posts don’t change frequently. Cache for 5-10 minutes.
Handle 404 gracefully - Show a “Blog not found” page with suggestions for similar content.
Validate slug format - Ensure slugs match the expected format (lowercase, hyphens) before requests.
Store both the
id and slug in your database. Use slug for public URLs and id for internal operations.Slugs are case-sensitive in the API. Always use lowercase slugs as returned by the API.