Skip to main content

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

ParameterTypeRequiredDescription
idIntegerYesUnique ID of the page

Example Requests

1import requests
2response = requests.get('http://www.example.com/api/pages/1', headers={
3  'Authorization': 'Token <your_api_key>'
4})
5
6print(response.json())

Response Fields

FieldTypeDescription
idIntegerId of the page(unique)
titleStringThe title of the page
slugStringThe slug related to the page (unique)
created_atString (ISO 8601)Timestamp when the page was created
updated_atString (ISO 8601)Timestamp when the page was last updated
bodyStringBody of the created page (editable in the update endpoint)
metaList Of ObjectMeta key-value data (editable in the PageMeta endpoint)

Meta Data Structure

FieldTypeDescription
idIntegerUnique ID of the PageMeta (unique)
keyStringThe key name of the meta data
value_textStringThe text value of the meta data
value_fileObjectThe file data of the meta data

Value File Structure

FieldTypeDescription
idIntegerId of the file (unique)
typeStringType of the file (image, text, video, ...)
nameStringFile name (nullable)
sizeStringSize of the file(nullable)
human_readable_sizeStringA human readable size for the file
fStringurl 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