Retrieve Page
Retrieve a specific page by unique slug
HTTP Request
GET/api/shop/pages/: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 page |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2response = requests.get('http://www.example.com/api/shop/pages/some-slug/')
3print(response.json())1curl -X GET "http://www.example.com/api/shop/pages/some-slug/" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| title | String | Title of the page |
| slug | String | Slug of the page |
| 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 | The body of the page |
| meta | Array[Object] | List of page meta |
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 |
Example Response
{
"title": "black technology",
"slug": "black-tech2",
"created_at": "2025-12-20T11:23:17.065601Z",
"updated_at": "2025-12-20T11:25:58.496784Z",
"body": "somebogy",
"meta": [
{
"id": 10,
"key": "contact_us_img",
"value_text": null,
"value_file": {
"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"
}
},
{
"id": 9,
"key": "contact_us_url_edited",
"value_text": null,
"value_file": {
"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"
}
}
]
}