Path parameters
-
ID of the resource to return
GET /ingredients/{id_or_alias}
curl \
-X GET https://api.cosmily.com/api/v1/ingredients/{id_or_alias} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"id": 1,
"title": "Water",
"alias": "water",
"status": "analyzed",
"description": null,
"introtext": "<p>#1 <strong>solvent</strong> in many skincare and haircare products. Usually, creams contain 40 - 70% of water, while toners and micellar water may have up to 90%. Manufacturers <strong>purify</strong> and <strong>deionize</strong> it before putting it into the product to make the formula last longer.</p> <p>As for the benefits, it is neither good nor bad. It's a neutral component itself, but it's a very important part of a product.</p>",
"content": "",
"categories": "Solvent",
"ewg": {
"min": 1,
"max": 1,
"data": "Robust",
"url": "/skindeep/ingredient/706945/WATER/",
"background": "bg-safe",
"decision": "Safe - Moderate hazard"
},
"created_at": "2021-10-04T11:56:27.000Z",
"updated_at": "2021-11-13T20:23:18.000Z",
"cir_rating": "",
"integer_properties": {
"comedogenic_rating": 0,
"natural": 1
},
"boolean_properties": {
"ceramide": false,
"vitamin": false,
"pha": false,
"bha": false,
"aha": false,
"hyaluronic_acid": false,
"retinoid": false,
"niacinamide": false,
"antioxidant": false,
"moisturising": false,
"softening": false,
"soothing": false,
"acne_fighting": false,
"anti_aging": false,
"healing": false,
"antiseptic": false,
"whitening": false,
"uv_protecting": false,
"allergen": false,
"alcohol": false,
"gluten": false,
"silicone": false,
"sulfate": false,
"paraben": false,
"peg": false,
"fungal_acne_feeding": false,
"good_for_dry_skin": false,
"bad_for_dry_skin": false,
"good_for_oily_skin": false,
"bad_for_oily_skin": false,
"good_for_sensitive_skin": false,
"bad_for_sensitive_skin": false
}
}
}
Response examples (200)
{
"data": {
"id": 1,
"ewg": {
"max": 1,
"min": 1,
"url": "/skindeep/ingredient/706945/WATER/",
"data": "Robust",
"decision": "Safe - Moderate hazard",
"background": "bg-safe"
},
"alias": "water",
"title": "Water",
"status": "analyzed",
"content": "",
"introtext": "<p>#1 <strong>solvent</strong> in many skincare and haircare products. Usually, creams contain 40 - 70% of water, while toners and micellar water may have up to 90%. Manufacturers <strong>purify</strong> and <strong>deionize</strong> it before putting it into the product to make the formula last longer.</p> <p>As for the benefits, it is neither good nor bad. It's a neutral component itself, but it's a very important part of a product.</p>",
"categories": "Solvent",
"cir_rating": "",
"created_at": "2021-10-04T11:56:27.000Z",
"updated_at": "2021-11-13T20:23:18.000Z",
"description": null,
"boolean_properties": {
"aha": false,
"bha": false,
"peg": false,
"pha": false,
"gluten": false,
"alcohol": false,
"healing": false,
"paraben": false,
"sulfate": false,
"vitamin": false,
"allergen": false,
"ceramide": false,
"retinoid": false,
"silicone": false,
"soothing": false,
"softening": false,
"whitening": false,
"anti_aging": false,
"antiseptic": false,
"antioxidant": false,
"niacinamide": false,
"moisturising": false,
"acne_fighting": false,
"uv_protecting": false,
"hyaluronic_acid": false,
"bad_for_dry_skin": false,
"bad_for_oily_skin": false,
"good_for_dry_skin": false,
"good_for_oily_skin": false,
"fungal_acne_feeding": false,
"bad_for_sensitive_skin": false,
"good_for_sensitive_skin": false
},
"integer_properties": {
"natural": 1,
"comedogenic_rating": 0
}
}
}