Main Home Endpoint
This guide explains how to interact with the main home endpoint in the Sumaya369 mobile application. The endpoint provides data for the home page, including various sections and content.
Get Main Home Data
Retrieve all necessary data for the home page.
Endpoint
- Method: GET
- URL:
/v1/mobile/home
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
| Authorization | Bearer token | No |
Query Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| platform | string | Platform type (web or mobile) | No |
| category_id | integer | Filter courses by category ID | No |
| search_text | string | Search term for filtering content | No |
Success Response
{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": {
"categories": {
"مواد الشهر": {
"id": "eb8fec80-b43f-11ec-8195-abf33b22a6c8",
"coursesCount": 14,
"courses": [
{
"id": "67ef3e00-c76d-11ef-8a94-4b8c5d75d517",
"slug": "اختبارات-الثراء",
"poster": "http://127.0.0.1:8000/storage/28547/اختبارات-الثراء.jpg",
"name": "اختبارات الثراء",
"old_price": 432,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 13,
"price": 432,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 496.8,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "3"
},
{
"id": "135ebb10-c76b-11ef-94c7-610b2c08a5d6",
"slug": "ابتلع-أموالك",
"poster": "http://127.0.0.1:8000/storage/28545/ابتلع-اموالك.jpg",
"name": "ابتلع أموالك",
"old_price": 869.6,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 13,
"price": 869.6,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 1000.04,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "12"
},
{
"id": "7530da80-c7ba-11ef-b949-0155f1835368",
"slug": "تمرين-reframing-جذب-المال",
"poster": "http://127.0.0.1:8000/storage/28570/تمرين-المال.jpg",
"name": "تمرين Reframing جذب المال",
"old_price": 260.87,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 1,
"price": 260.87,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 300,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "9"
},
{
"id": "77f1a0c0-c7ad-11ef-be18-ef75837c4bf6",
"slug": "تمرين-reframing-الاحتمال-الأفضل",
"poster": "http://127.0.0.1:8000/storage/28564/تمرين-الاحتمال-الافضل.jpg",
"name": "تمرين Reframing الاحتمال الأفضل",
"old_price": 173.91,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 1,
"price": 173.91,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 200,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "5"
},
{
"id": "ee07cc50-868d-11ed-ac0d-db5a8dee23cb",
"slug": "بداية-القصة",
"poster": "http://127.0.0.1:8000/storage/20785/بداية-القصه.png",
"name": "بداية القصة",
"old_price": 240,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 6,
"price": 240,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 276,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.7",
"ratings_count": "86"
},
{
"id": "0c6504a0-b67b-11ec-9b8d-736cf58ca95a",
"slug": "قراصنة-المال",
"poster": "http://127.0.0.1:8000/storage/20780/قراصنة-المال.png",
"name": "قراصنة المال",
"old_price": 249,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 8,
"price": 249,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 286.35,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.8",
"ratings_count": "126"
},
{
"id": "087637b0-b67b-11ec-baf4-55957a481ba7",
"slug": "كارما-الثراء",
"poster": "http://127.0.0.1:8000/storage/20790/كارما.png",
"name": "كارما الثراء",
"old_price": 980,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 34,
"price": 980,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 1127,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "95318a30-fb23-11ee-86d1-a5ccc3e103dd",
"name": "تطبيقات عميقة",
"color": "#DE98DEFF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.8",
"ratings_count": "189"
},
{
"id": "07ad5c60-b67b-11ec-b20e-e5ae945e2dc5",
"slug": "رسائل-البدايات",
"poster": "http://127.0.0.1:8000/storage/20784/رسائل-البدايات.png",
"name": "رسائل البدايات",
"old_price": 390,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 5,
"price": 390,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 448.5,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.7",
"ratings_count": "48"
}
],
"description": null,
"childrenCategories": []
},
"المواد المتاحة للاشتراك": {
"id": "e4e0bb10-db44-11ec-91f3-dff7c0899e8e",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الثراء": {
"id": "265f31ad-1b4e-355f-844a-af92d88de7b0",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية النجاح": {
"id": "a0c9414c-c43b-3916-91e5-4a95bd9e4908",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الروحانية": {
"id": "b55070c4-144c-3ceb-a8e6-2edf7dd9e740",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الحظ": {
"id": "47cd4b03-e2fb-38db-8d4b-9d3cfa2f565f",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية تشافي العلاقات": {
"id": "5e4597a3-1f56-332b-9933-7c60c9f049dc",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية تطوير الجسد المشاعري": {
"id": "df4a0ec0-f847-11ec-856a-9139cbe3cce3",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية توازن الأنوثة والذكورة": {
"id": "e538ac1f-cda1-33f2-a496-c58a15ad549c",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية المتعة": {
"id": "a0e4d679-df3e-3269-8e4f-5d0792c50028",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية العظمة": {
"id": "c025e060-4840-11ee-861c-e517e86b9b43",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية التنظيف": {
"id": "5d4ccf60-6232-11ee-b35d-4daaea0f5fd6",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية التحرر من الصدمات": {
"id": "fe1802d7-576b-36b5-a768-9d5cdf185ba3",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الاستعداد للعام الجديد": {
"id": "3dec10fa-82b4-39b4-8e76-3c55003053db",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
}
},
"courses": {
"مواد الشهر": {
"id": "eb8fec80-b43f-11ec-8195-abf33b22a6c8",
"coursesCount": 14,
"courses": [
{
"id": "67ef3e00-c76d-11ef-8a94-4b8c5d75d517",
"slug": "اختبارات-الثراء",
"poster": "http://127.0.0.1:8000/storage/28547/اختبارات-الثراء.jpg",
"name": "اختبارات الثراء",
"old_price": 432,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 13,
"price": 432,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 496.8,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "3"
},
{
"id": "135ebb10-c76b-11ef-94c7-610b2c08a5d6",
"slug": "ابتلع-أموالك",
"poster": "http://127.0.0.1:8000/storage/28545/ابتلع-اموالك.jpg",
"name": "ابتلع أموالك",
"old_price": 869.6,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 13,
"price": 869.6,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 1000.04,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "12"
},
{
"id": "7530da80-c7ba-11ef-b949-0155f1835368",
"slug": "تمرين-reframing-جذب-المال",
"poster": "http://127.0.0.1:8000/storage/28570/تمرين-المال.jpg",
"name": "تمرين Reframing جذب المال",
"old_price": 260.87,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 1,
"price": 260.87,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 300,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "9"
},
{
"id": "77f1a0c0-c7ad-11ef-be18-ef75837c4bf6",
"slug": "تمرين-reframing-الاحتمال-الأفضل",
"poster": "http://127.0.0.1:8000/storage/28564/تمرين-الاحتمال-الافضل.jpg",
"name": "تمرين Reframing الاحتمال الأفضل",
"old_price": 173.91,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 1,
"price": 173.91,
"does_has_vat": true,
"has_available_special_link": false,
"price_with_vat_show": 200,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [],
"rating": "5.0",
"ratings_count": "5"
},
{
"id": "ee07cc50-868d-11ed-ac0d-db5a8dee23cb",
"slug": "بداية-القصة",
"poster": "http://127.0.0.1:8000/storage/20785/بداية-القصه.png",
"name": "بداية القصة",
"old_price": 240,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 6,
"price": 240,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 276,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.7",
"ratings_count": "86"
},
{
"id": "0c6504a0-b67b-11ec-9b8d-736cf58ca95a",
"slug": "قراصنة-المال",
"poster": "http://127.0.0.1:8000/storage/20780/قراصنة-المال.png",
"name": "قراصنة المال",
"old_price": 249,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 8,
"price": 249,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 286.35,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.8",
"ratings_count": "126"
},
{
"id": "087637b0-b67b-11ec-baf4-55957a481ba7",
"slug": "كارما-الثراء",
"poster": "http://127.0.0.1:8000/storage/20790/كارما.png",
"name": "كارما الثراء",
"old_price": 980,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 34,
"price": 980,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 1127,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "95318a30-fb23-11ee-86d1-a5ccc3e103dd",
"name": "تطبيقات عميقة",
"color": "#DE98DEFF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.8",
"ratings_count": "189"
},
{
"id": "07ad5c60-b67b-11ec-b20e-e5ae945e2dc5",
"slug": "رسائل-البدايات",
"poster": "http://127.0.0.1:8000/storage/20784/رسائل-البدايات.png",
"name": "رسائل البدايات",
"old_price": 390,
"is_purchasable": true,
"has_active_subscribed": false,
"hide_price": false,
"videos_count": 5,
"price": 390,
"does_has_vat": true,
"has_available_special_link": true,
"price_with_vat_show": 448.5,
"model_type": "courses",
"pay_button_title": "أضف للسلة",
"pay_button_status": true,
"has_reduced_price": false,
"favorite": null,
"tags": [
{
"id": "c60fa260-fb24-11ee-af71-350be8551fdb",
"name": "تطبيقات بسيطة",
"color": "#E697E6FF"
},
{
"id": "cb141570-fb23-11ee-b87e-c52f28f5e2a5",
"name": "للجسد الفكري",
"color": "#98DEDEFF"
},
{
"id": "e1c29880-fb45-11ee-bc1f-411ddde840e6",
"name": "مادة للتطوير",
"color": "#F7F7F7FF"
}
],
"rating": "4.7",
"ratings_count": "48"
}
],
"description": null,
"childrenCategories": []
},
"المواد المتاحة للاشتراك": {
"id": "e4e0bb10-db44-11ec-91f3-dff7c0899e8e",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الثراء": {
"id": "265f31ad-1b4e-355f-844a-af92d88de7b0",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية النجاح": {
"id": "a0c9414c-c43b-3916-91e5-4a95bd9e4908",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الروحانية": {
"id": "b55070c4-144c-3ceb-a8e6-2edf7dd9e740",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الحظ": {
"id": "47cd4b03-e2fb-38db-8d4b-9d3cfa2f565f",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية تشافي العلاقات": {
"id": "5e4597a3-1f56-332b-9933-7c60c9f049dc",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية تطوير الجسد المشاعري": {
"id": "df4a0ec0-f847-11ec-856a-9139cbe3cce3",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية توازن الأنوثة والذكورة": {
"id": "e538ac1f-cda1-33f2-a496-c58a15ad549c",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية المتعة": {
"id": "a0e4d679-df3e-3269-8e4f-5d0792c50028",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية العظمة": {
"id": "c025e060-4840-11ee-861c-e517e86b9b43",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية التنظيف": {
"id": "5d4ccf60-6232-11ee-b35d-4daaea0f5fd6",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية التحرر من الصدمات": {
"id": "fe1802d7-576b-36b5-a768-9d5cdf185ba3",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
},
"نية الاستعداد للعام الجديد": {
"id": "3dec10fa-82b4-39b4-8e76-3c55003053db",
"coursesCount": [],
"courses": [],
"description": null,
"childrenCategories": []
}
},
"articles": [
{
"id": "377d34a0-3f25-11ee-8738-c909ac5b1bc4",
"title": "اللعبة 🎮",
"brief_description": "يختار بعض الناس عدم اللعب ولأن أجسادهم الفكرية متضخمة ...",
"poster": "http://127.0.0.1:8000/storage/16355/صورة2.png",
"can_comment": true,
"comments_count": null,
"views": null,
"model_type": "articles",
"favorite": null
},
{
"id": "2a86bfe0-3f24-11ee-8cc9-eb1b27f95d9c",
"title": "ماهو توقيت متعتك؟",
"brief_description": " لدى غالبية الناس توقيت معين للمتعة وذلك ضمن برامجهم ا?...",
"poster": "http://127.0.0.1:8000/storage/16354/pleasure-time.png",
"can_comment": true,
"comments_count": null,
"views": null,
"model_type": "articles",
"favorite": null
},
{
"id": "f083c6c0-3c08-11ee-a0f5-3325cca2539b",
"title": "مستمتع؟",
"brief_description": " لدى غالبية الناس تصور محدود لمعنى المتعة وشكل المتعة ?...",
"poster": "http://127.0.0.1:8000/storage/16263/joyfull.png",
"can_comment": true,
"comments_count": null,
"views": null,
"model_type": "articles",
"favorite": null
}
],
"banner": "/storage/28990/360_F_421755953_LitQ8sAhxJ88bFPVjYTjKI3FBhGqrEP2.jpg",
"banner_alt_text": null
},
"status_code": 200
}
Implementation Notes
- The endpoint uses response caching for unauthorized users to improve performance
- Cache duration is set to 10 minutes for unauthorized users
- Authenticated users always receive fresh data
- The response includes various sections of the home page content
- Search functionality is available for courses, articles, and bundles
- Course listings are filtered by category and respect user authorization status
- Customer reviews are limited to approved ratings
- Articles include media and tag information
- Bundles include associated courses and ebooks information
- Favorites are included for authenticated users
- Banner information includes image URL and alt text