Skip to main content

Retrieve A PageMeta

Retrieve a specific page meta

HTTP Request

GET/api/blog/pages/base/:page_id/meta/:page_meta_id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with PageMetaPermission or Admin
  • Permission Code: 3022
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
page_idIntegerYesUnique ID of the page
page_meta_idIntegerYesUnique ID of the page meta

Example Requests

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

Response Fields

FieldTypeDescription
idIntegerId of the meta(unique)
keyStringThe key name of the meta(unique for each page)
value_textStringThe text value related to the key (nullable)
value_file_dataobjectThe file value related to the key (nullable)
created_atString (ISO 8601)Timestamp when the page was created
updated_atString (ISO 8601)Timestamp when the page was last updated

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": 1,
"key": "image_top",
"value_text": "",
"value_file_data": {
"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"
},
"created_at": "2025-11-23T10:18:36.325053Z",
"updated_at": "2025-12-03T14:40:53.987756Z"
}

Notes

  • Each page meta key-value data can only have one value; either a text value or a file value