Retrieve Blog
Retrieve a specific blog post by its unique slug.
HTTP Request
GET/api/shop/blog/posts/:slug
Authorization
Authorization
- Required: No
- Permission: None (public access) or Authenticated users
- Authentication: None or Token-based authentication
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| slug | String | Yes | URL-friendly slug of the blog post |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2response = requests.get('http://www.example.com/api/shop/blog/posts/my-first-blog-post/')
3print(response.json())1curl -X GET "http://www.example.com/api/shop/blog/posts/my-first-blog-post/" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the blog post |
| title | String | Title of the blog post |
| slug | String | Slug for the blog post |
| human_readable_views | String | Human-readable format of the views (e.g., 1.2K) |
| excerpt | String | Short summary or excerpt of the blog post |
| truncated_excerpt | String | Truncated version of the excerpt (e.g., first 100 characters) |
| author | Object | Author details including `id`, `username`, and `full_name` |
| featured_image | Object or null | Details of the featured image or null if none exists |
| categories | Array[Object] | List of post categories |
| created_at | String (ISO 8601) | Timestamp when the blog post was created |
| updated_at | String (ISO 8601) | Timestamp when the blog post was last updated |
| body | String | The full body of the blog post |
| meta | Array[Object] | List of meta objects related to the blog post page |
Author Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the author |
| username | String | Username of the author |
| full_name | String | Full name of the author (first and last name combined) |
Featured Image Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the image |
| type | String | File type (e.g., image/jpeg) |
| name | String | Original file name |
| size | Integer | File size in bytes |
| human_readable_size | String | Human readable file size (e.g., 2.5 MB) |
| f | String | URL to access the image file |
| width | Integer | Image width in pixels |
| height | Integer | Image height in pixels |
| mode | String | Color mode (e.g., RGB, CMYK) |
| thumbnails | List of thumbnail objects | Imgae thumbnails |
Thumbnail Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the thumbnail (unique) |
| f | String | URL to access the thumbnail file |
| size | Integer | File size in bytes (nullable) |
Category Object Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the post category |
| name | String | Name of the post category |
| slug | String | Slug of the post category |
Meta Object Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the metadata |
| key | String | The key name of the metadata |
| value_text | String | The text value of the metadata |
| value_file | Object | The file value of the metadata |
FIle Value Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the featured image |
| type | String | File type (e.g., image/jpeg) |
| name | String | Original file name |
| size | Integer | File size in bytes |
| human_readable_size | String | Human readable file size (e.g., 2.5 MB) |
| f | String | URL to access the image file |
Example Response
{
"id": 42,
"title": "قیمت رم با افزایشی چشمگیر مواجه شد",
"slug": "pc-ram-prices-have-soared-by-up-to-25",
"human_readable_views": "2",
"excerpt": "<p>با توجه به پیشرفت بسیار سریع تکنولوژی، داشتن رم اضافی برای اجرای بهتر برنامه‌ها و بازی‌های مختلف، ایده‌ای عالی برای دارندگان رایانه‌های شخصی به حساب می‌آید. با این حال، در هفته‌های اخیر به دلیل کمبود قطعات اولیه، قیمت رم افزایشی شدید داشته و رفع این نیاز را به چالشی بزرگ تبدیل کرده است.</p>",
"truncated_excerpt": "<p>با توجه به پیشرف…",
"author": {
"id": 2,
"username": "staffer",
"full_name": "عماد رخشانی"
},
"featured_image": {
"id": 4,
"type": "image",
"name": "rams",
"size": 118805,
"human_readable_size": "116.02 KB",
"f": "http://127.0.0.1:8000/media/core_media/2025/11/29/RAMFeatured.jpg",
"width": 1280,
"height": 720,
"mode": "RGB",
"thumbnails": [
{
"id": 213,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_64x64.jpg",
"size": 64
},
{
"id": 214,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_128x128.jpg",
"size": 128
},
{
"id": 215,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_512x512.jpg",
"size": 512
},
{
"id": 216,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_1080x1080.jpg",
"size": 1080
}
]
},
"categories": [],
"created_at": "2025-12-01T09:41:10.097414Z",
"updated_at": "2025-12-30T16:23:20.233706Z",
"body": "<p>با توجه به پیشرفت بسیار سریع تکنولوژی، داشتن رم اضافی برای اجرای بهتر برنامه‌ها و بازی‌های مختلف، ایده‌ای عالی برای دارندگان رایانه‌های شخصی به حساب می‌آید. با این حال، در هفته‌های اخیر به دلیل کمبود قطعات اولیه، قیمت رم افزایشی شدید داشته و رفع این نیاز را به چالشی بزرگ تبدیل کرده است.</p>\r\n<div class=\"content-ads py-3 text-center\"><a href=\"https://mehreganit.com/product-category/janebi/monitor/\" target=\"_blank\" rel=\"nofollow sponsored noopener\"> <picture class=\"img-fluid content-ads-img\"> <source class=\"img-fluid\" srcset=\"https://gamefa.com/wp-content/uploads/2025/09/ezgif-55566bd328f79b.gif\" media=\"(min-width:768px)\"> <img class=\"img-fluid content-ads-img\" src=\"https://gamefa.com/wp-content/uploads/2025/09/ezgif-5d3006448a9e6b.gif\" alt=\"تبلیغات\"> </picture> </a></div>\r\n<p><span id=\"more-1261077\"></span></p>\r\n<p>افزایش هزینه رم در این مدت به قدری زیاد بوده که قیمت شاید تنها دو قطعه از آن، از یک کارت گرافیک کاملاً جدید یا حتی یکی از کنسول‌های نسل نهمی، پیشی بگیرد. برای مثال، قیمت‌های فروشگاهی چون Newegg نشان می‌دهد که چه قصد خرید یک رم ۱۶ گیگابایتی یا ۶۴ گیگابایتی را داشته باشید، در هر حال با هزینه‌ای بسیار گزاف روبه‌رو خواهید شد. از ابتدای ماه نوامبر تا به امروز، هزینه خرید رم بالغ بر ۲۵۰ درصد افزایش داشته است!</p>\r\n<p>در ادامه می‌توانید مقایسه‌ای از رم‌های مختلف و قیمت آن‌ها در اول ماه نوامبر و امروز داشته باشید تا به طور دقیق متوجه شوید که این افزایش، چقدر سرسام‌آور بوده است:</p>\r\n<figure class=\"wp-block-table\">\r\n<table class=\"has-fixed-layout\">\r\n<thead>\r\n<tr>\r\n<th>رم کامپیوتر</th>\r\n<th>قیمت در یک نوامبر (۱۰ آبان)</th>\r\n<th>قیمت در ۲۶ نوامبر (۵ آذر)</th>\r\n<th>درصد افزایش</th>\r\n</tr>\r\n</thead>\r\n<tbody>\r\n<tr>\r\n<td>رم ۱۶ گیگابایتی T-Force</td>\r\n<td>$۷۷.۹۹</td>\r\n<td>$۱۷۷.۹۹</td>\r\n<td>۱۲۸.۲%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۱۶ گیگابایتی Kingston Fury</td>\r\n<td>$۶۲.۹۹</td>\r\n<td>$۱۴۹.۹۹</td>\r\n<td>۱۳۸.۱%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۳۲ گیگابایتی T-Force</td>\r\n<td>$۹۶.۹۹</td>\r\n<td>$۳۳۹.۹۹</td>\r\n<td>۲۵۰.۵%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۳۲ گیگابایتی G.Skill Flare X5</td>\r\n<td>$۹۷.۹۹</td>\r\n<td>$۲۶۹.۹۹</td>\r\n<td>۱۷۵.۵%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۳۲ گیگابایتی Corsair Vengeance</td>\r\n<td>$۱۴۲.۹۹</td>\r\n<td>$۴۰۶.۹۹</td>\r\n<td>۱۸۴.۶%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۳۲ گیگابایتی G.Skill Trident Z5 NEO</td>\r\n<td>$۱۰۴.۹۹</td>\r\n<td>$۲۷۹.۹۹</td>\r\n<td>۱۶۶.۷%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۶۴ گیگابایتی Corsair Vengeance</td>\r\n<td>$۲۳۹.۹۹</td>\r\n<td>$۸۳۹.۹۹</td>\r\n<td>۲۵۰%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۶۴ گیگابایتی G.Skill Trident Z5 NEO</td>\r\n<td>$۲۰۴.۹۹</td>\r\n<td>$۶۲۹.۹۹</td>\r\n<td>۲۰۷.۳%</td>\r\n</tr>\r\n<tr>\r\n<td>رم ۶۴ گیگابایتی G.Skill Flare X5</td>\r\n<td>$۲۰۴.۹۹</td>\r\n<td>$۵۶۹.۹۹</td>\r\n<td>۱۷۸%</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</figure>\r\n<p>کمبود قطعات اولیه برای تولید رم، باعث شده بازار این قطعه به شدت ناپایدار شود. وبسایت Insider Gaming در راستای این مشکل، با برخی از تولیدکنندگان رم مصاحبه و در مورد زمان کاهش قیمت‌ها سوالاتی را مطرح کرده است. همگی تولیدکنندگان جوابی مشابه داشته‌اند و هیچ‌کدام به طور قطع نمی‌دانند اوضاع بازار چه زمانی قرار است پایدار شود.</p>\r\n<p>دلیل کمبود قطعات اولیه و افزایش شدید قیمت رم، برای کسانی که اخیراً پیگیر اخبار و حواشی دنیای تکنولوژی بودند، واضح است. دلیل این موضوع، به هوش مصنوعی‌های مختلف بازمی‌گردد که امروزه تبدیل به یکی از مهم‌ترین بحث‌های رسانه‌ها و شبکه‌های اجتماعی شده‌اند.</p>\r\n<p>هوش مصنوعی‌هایی که در حال حاضر با سرعتی سرسام‌آور در سرتاسر دنیا گسترش می‌یابند، نیاز به رم دارند و شرکت‌های سازنده نیز اقدام به خرید مقادیر قابل توجهی از این دو قطعه سخت‌افزاری کرده‌اند. این کمپانی‌ها به راحتی حاضرند هزینه بیشتری صرف کنند تا به قطعه موردنظر خود در زمانی مناسب دست یابند. بدین ترتیب، موجودی رم در بازار به شدت کاهش یافته و شرکت‌های تولیدکننده قادر به رفع نیاز مصرف‌کنندگان معمولی نیستند. با توجه به شرایط فعلی، انتظار می‌رود قیمت‌ها حتی بیشتر از این نیز افزایش داشته باشند تا سرانجام بازار کمی آرام شود.</p>\r\n<p>معاون شرکت TriOrient در مصاحبه‌ای با CNBC در این زمینه عنوان کرد:</p>\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p>مشکل افزایش هزینه رم‌ها می‌تواند برای رایانه‌های شخصی، لپ‌تاپ‌ها، قطعات الکترونیکی، ماشین‌ها و هر سیستمی که از آن‌ها استفاده می‌کند، شرایطی بسیار بد رقم بزند.</p>\r\n</blockquote>\r\n<p>اگر به گذشته نگاه کنیم، چنین شرایطی معمولاً ماه‌ها یا گاهی سال‌ها ادامه خواهد یافت تا نواقص رفع و تولید و تقاضا به مقداری برابر برسد. بدین ترتیب، باید منتظر ماند و دید مشکلات خط تولید کی برطرف خواهند شد.</p>",
"meta": [
{
"id": 2,
"key": "phone_number_one",
"value_text": "09150207215",
"value_file": null
},
{
"id": 3,
"key": "phone_number_two",
"value_text": "09150207216",
"value_file": null
},
{
"id": 4,
"key": "phone_number_three",
"value_text": "09150207217",
"value_file": null
},
{
"id": 5,
"key": "image_main_one",
"value_text": "",
"value_file": {
"id": 5,
"type": "image",
"name": "keyboard",
"size": 2131742,
"human_readable_size": "2.03 MB",
"f": "http://127.0.0.1:8000/media/core_media/2025/11/29/Fantasticheskie_kartinki_dlja_monitora_68_96.jpg"
}
}
]
}
Notes
- Only one field from value_text or value_file will be provided for any metadata object
- If is_published is False, the blog post will not appear in this list for unauthenticated users or users without proper permissions. To view unpublished posts, authentication is required.
- The
excerptfield provides a short summary of the blog post. - The
truncated_excerptfield provides a shortened version of the excerpt, useful for previews. - The
human_readable_viewsfield provides a more understandable view count, making it easier for users to grasp the post's popularity. - The
featured_imagefield contains the URL of the featured image for the blog post, if available. - The
created_atandupdated_atfields are automatically set to the current timestamp when the blog post is created or updated. - To prevent excessive data transfer, the
bodyfield is not included in the list response. It can be retrieved separately using theRetrieve a Blog Postendpoint.