GET /ingredients/:id_or_alias/products

GET /ingredients/{id_or_alias}/products

Returns products for ingredient id

Path parameters

Query parameters

Responses

GET /ingredients/{id_or_alias}/products
curl \
 -X GET https://api.cosmily.com/api/v1/ingredients/{id_or_alias}/products \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 398,
      "brand": {
        "id": 4,
        "alias": "susanne-kaufmann",
        "title": "Susanne Kaufmann",
        "owner_user_id": 1,
        "created_at": "2021-10-04T13:32:53.000Z",
        "updated_at": "2021-11-13T20:23:18.000Z"
      },
      "category": {
        "id": 18,
        "title": "Sunscreens",
        "alias": "sunscreens",
        "parent": 1,
        "menuindex": 100,
        "created_at": "2021-10-04T13:32:53.000Z",
        "updated_at": "2021-11-13T20:23:18.000Z"
      },
      "title": "Sun Cream Cell Protection SPF 25",
      "full_title": "Susanne Kaufmann Sun Cream Cell Protection SPF 25",
      "alias": "susanne-kaufmann-sun-cream-cell-protection-spf-25",
      "raw_label": "Salicylic Acid, Water, Cetyl Alcohol, PPG-15 Stearyl Ether, Polyethylene, Microcrystalline Wax, Steareth-21, Polysorbate 60, Potassium Cetyl Phosphate, Xanthan Gum, Fragrance, Menthyl Lactate, Ferric Ferrocyanide, Jojoba Esters",
      "image": "products/398/398",
      "asin": null,
      "owner_user": {
        "id": 1,
        "username": "myusername",
        "user_type": "expert",
        "last_active": "2021-10-04T13:32:53.000Z"
      },
      "created_at": "2021-10-05T14:21:25.000Z",
      "updated_at": "2021-11-13T20:23:18.000Z",
      "deprecated_at": null,
      "deprecated_reason": null,
      "ingredient_count": 16,
      "ft_bool_non_comedogenic": false,
      "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": false,
      "ft_bool_fragrance_free": false,
      "ft_bool_moisturising": true,
      "ft_bool_softening": true,
      "ft_bool_soothing": true,
      "ft_bool_acne_fighting": true,
      "ft_bool_anti_aging": false,
      "ft_bool_healing": false,
      "ft_bool_antiseptic": true,
      "ft_bool_whitening": false,
      "ft_bool_uv_protecting": false,
      "ft_bool_antioxidant": false,
      "ft_bool_ceramide": false,
      "ft_bool_vitamin": false,
      "ft_bool_pha": false,
      "ft_bool_bha": false,
      "ft_bool_aha": false,
      "ft_bool_hyaluronic_acid": false,
      "ft_bool_retinoid": false,
      "ft_bool_niacinamide": false
    }
  ],
  "links": {
    "first": "/api/v1/ingredients/1/products?page=1",
    "last": "/api/v1/ingredients/1/products?page=50"
  }
}