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
| Parameter | Type | Required | Description |
|---|---|---|---|
| page_id | Integer | Yes | Unique ID of the page |
| page_meta_id | Integer | Yes | Unique ID of the page meta |
Example Requests
- 🐍 Python
- 🌐 Curl
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())1curl
2curl -X GET "http://www.example.com/api/pages/base/38/meta/1" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Id of the meta(unique) |
| key | String | The key name of the meta(unique for each page) |
| value_text | String | The text value related to the key (nullable) |
| value_file_data | object | The file value related to the key (nullable) |
| created_at | String (ISO 8601) | Timestamp when the page was created |
| updated_at | String (ISO 8601) | Timestamp when the page was last updated |
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": 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