GET /product_categories/:id_or_alias/products
Returns products for product_category id
Path parameters
-
ID of the resource to return
Query parameters
-
search string
Search by resource Name
-
page integer
requested page number
Minimum value is
1
. Default value is1
. -
page_size integer
requested page size
Minimum value is
1
, maximum value is100
. Default value is12
. -
ft_bool_non_comedogenic boolean
Search by Feature Non-Comedogenic
-
ft_bool_allergen_free boolean
Search by Feature Allergen Free
-
ft_bool_alcohol_free boolean
Search by Feature Alcohol Free
-
ft_bool_gluten_free boolean
Search by Feature Gluten Free
-
ft_bool_silicone_free boolean
Search by Feature Silicone Free
-
ft_bool_sulfate_free boolean
Search by Feature Sulfate Free
-
ft_bool_paraben_free boolean
Search by Feature Paraben Free
-
ft_bool_peg_free boolean
Search by Feature PEG Free
-
ft_bool_fungal_acne_feeding_free boolean
Search by Feature Fungal Acne Feeding Free
-
ft_bool_fragrance_free boolean
Search by Feature Fragrance Free
-
ft_bool_moisturising boolean
Search by Feature Moisturising
-
ft_bool_softening boolean
Search by Feature Softening
-
ft_bool_soothing boolean
Search by Feature Soothing
-
ft_bool_acne_fighting boolean
Search by Feature Acne Fighting
-
ft_bool_anti_aging boolean
Search by Feature Anti-Aging
-
ft_bool_healing boolean
Search by Feature Healing
-
ft_bool_antiseptic boolean
Search by Feature Antiseptic
-
ft_bool_whitening boolean
Search by Feature Brightening
-
ft_bool_uv_protecting boolean
Search by Feature UV Protecting
-
ft_bool_antioxidant boolean
Search by Feature Antioxidant
curl \
-X GET https://api.cosmily.com/api/v1/product_categories/{id_or_alias}/products \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"data": [
{
"id": 42,
"title": "string",
"full_title": "string",
"alias": "string",
"raw_label": "string",
"image": "string",
"asin": "string",
"published": true,
"created_at": "string",
"updated_at": "string",
"deprecated_at": "string",
"deprecated_reason": "string",
"ingredient_count": 42,
"brand_id": 42,
"category_id": 42,
"owner_user_id": 42,
"ft_bool_non_comedogenic": true,
"ft_bool_allergen_free": true,
"ft_bool_alcohol_free": true,
"ft_bool_gluten_free": true,
"ft_bool_silicone_free": true,
"ft_bool_sulfate_free": true,
"ft_bool_paraben_free": true,
"ft_bool_peg_free": true,
"ft_bool_fungal_acne_feeding_free": true,
"ft_bool_fragrance_free": true,
"ft_bool_moisturising": true,
"ft_bool_softening": true,
"ft_bool_soothing": true,
"ft_bool_acne_fighting": true,
"ft_bool_anti_aging": true,
"ft_bool_healing": true,
"ft_bool_antiseptic": true,
"ft_bool_whitening": true,
"ft_bool_uv_protecting": true,
"ft_bool_antioxidant": true,
"ft_bool_ceramide": true,
"ft_bool_vitamin": true,
"ft_bool_pha": true,
"ft_bool_bha": true,
"ft_bool_aha": true,
"ft_bool_hyaluronic_acid": true,
"ft_bool_retinoid": true,
"ft_bool_niacinamide": true,
"brand": {
"id": 42,
"alias": "string",
"title": "string",
"created_at": "string",
"updated_at": "string",
"owner_user_id": 42
},
"product_image": {
"id": 42,
"product_id": 42,
"product_draft_id": 42,
"image": "string",
"url": "string"
},
"owner_user": {
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}
{
"data": [
{
"id": 42,
"title": "string",
"full_title": "string",
"alias": "string",
"raw_label": "string",
"image": "string",
"asin": "string",
"published": true,
"created_at": "string",
"updated_at": "string",
"deprecated_at": "string",
"deprecated_reason": "string",
"ingredient_count": 42,
"brand_id": 42,
"category_id": 42,
"owner_user_id": 42,
"ft_bool_non_comedogenic": true,
"ft_bool_allergen_free": true,
"ft_bool_alcohol_free": true,
"ft_bool_gluten_free": true,
"ft_bool_silicone_free": true,
"ft_bool_sulfate_free": true,
"ft_bool_paraben_free": true,
"ft_bool_peg_free": true,
"ft_bool_fungal_acne_feeding_free": true,
"ft_bool_fragrance_free": true,
"ft_bool_moisturising": true,
"ft_bool_softening": true,
"ft_bool_soothing": true,
"ft_bool_acne_fighting": true,
"ft_bool_anti_aging": true,
"ft_bool_healing": true,
"ft_bool_antiseptic": true,
"ft_bool_whitening": true,
"ft_bool_uv_protecting": true,
"ft_bool_antioxidant": true,
"ft_bool_ceramide": true,
"ft_bool_vitamin": true,
"ft_bool_pha": true,
"ft_bool_bha": true,
"ft_bool_aha": true,
"ft_bool_hyaluronic_acid": true,
"ft_bool_retinoid": true,
"ft_bool_niacinamide": true,
"brand": {
"id": 42,
"alias": "string",
"title": "string",
"created_at": "string",
"updated_at": "string",
"owner_user_id": 42
},
"product_image": {
"id": 42,
"product_id": 42,
"product_draft_id": 42,
"image": "string",
"url": "string"
},
"owner_user": {
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}