Skip to main content

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

ParameterTypeRequiredDescription
slugStringYesURL-friendly slug of the page

Example Requests

1import requests
2response = requests.get('http://www.example.com/api/shop/pages/some-slug/')
3print(response.json())

Response Fields

FieldTypeDescription
titleStringTitle of the page
slugStringSlug of the page
created_atString (ISO 8601)Timestamp when the page was created
updated_atString (ISO 8601)Timestamp when the page was last updated
bodyStringThe body of the page
metaArray[Object]List of page meta

Meta Object Data Structure

FieldTypeDescription
idIntegerUnique ID of the metadata
keyStringThe key name of the metadata
value_textStringThe text value of the metadata
value_fileObjectThe 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"
}
}
]
}