Query parameters
-
products_count integer
Number of Featured Products to Return
-
articles_count integer
Number of Featured Articles to Return
-
as_of_date string(DateTime)
Filter Featured Records as of Date
GET /featured
curl \
-X GET https://api.cosmily.com/api/v1/featured \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"products": [
{
"id": 12
}
],
"comparisons": [
{
"left_product_id": 45,
"right_product_id": 56,
"category_id": 21,
"comparison_alias": "clean-cleanser-vs-fancy-cleanser"
}
],
"articles": [
{
"id": 2
}
]
}
}
Response examples (200)
{
"data": {
"articles": [
{
"id": 2
}
],
"products": [
{
"id": 12
}
],
"comparisons": [
{
"category_id": 21,
"left_product_id": 45,
"comparison_alias": "clean-cleanser-vs-fancy-cleanser",
"right_product_id": 56
}
]
}
}