Retrieve A Page
Retrieve a specific page details
HTTP Request
GET/api/blog/pages/:id
Authorization
Authorization
- Required: Yes
- Permission: Staff with PagePermission or Admin
- Permission Code: 3002
- Authentication: Token-based (Authorization: Token <your_api_key>)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | Unique ID of the page |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2response = requests.get('http://www.example.com/api/pages/1', headers={
3 'Authorization': 'Token <your_api_key>'
4})
5
6print(response.json())1curl
2curl -X GET "http://www.example.com/api/pages/1" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Id of the page(unique) |
| title | String | The title of the page |
| slug | String | The slug related to the page (unique) |
| created_at | String (ISO 8601) | Timestamp when the page was created |
| updated_at | String (ISO 8601) | Timestamp when the page was last updated |
| body | String | Body of the created page (editable in the update endpoint) |
| meta | List Of Object | Meta key-value data (editable in the PageMeta endpoint) |
Meta Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the PageMeta (unique) |
| key | String | The key name of the meta data |
| value_text | String | The text value of the meta data |
| value_file | Object | The file data of the meta data |
Value File Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Id of the file (unique) |
| type | String | Type of the file (image, text, video, ...) |
| name | String | File name (nullable) |
| size | String | Size of the file(nullable) |
| human_readable_size | String | A human readable size for the file |
| f | String | url to the file |
Response Example
{
"id": 38,
"title": "The Most Powerfull Processor Is Here",
"slug": "the-most-powerfull-processor-is-here",
"created_at": "2025-11-23T10:13:21.776387Z",
"updated_at": "2025-12-03T14:41:19.067785Z",
"body": "<p>test</p>",
"meta": [
{
"id": 1,
"key": "image_top",
"value_text": "",
"value_file": {
"id": 1,
"type": "image",
"name": "logitech-logo",
"size": 2763,
"human_readable_size": "2.70 KB",
"f": "http://127.0.0.1:8000/media/core_media/2025/11/22/logitech.png"
}
},
{
"id": 7,
"key": "image_bottom",
"value_text": "",
"value_file": {
"id": 2,
"type": "image",
"name": "logitech-mx-1",
"size": 4766,
"human_readable_size": "4.65 KB",
"f": "http://127.0.0.1:8000/media/core_media/2025/11/22/logitech-mx-1.jpg"
}
},
{
"id": 8,
"key": "text_about_us",
"value_text": "this is all about us",
"value_file": null
}
]
}
Notes
- Each page meta key-value data can only have one value; either a text value or a file value