Skip to main content
GET/product-segments/:id/products/

View product segment

You can return all products assigned to a specific product segment.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the products' segment which is given by User automatically.

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/product-segments/:id/products/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 83,
"name": "Example name",
"description": "Example description",
"custom_id": "1818",
"product_url": "https://example.com/",
"image_url": "https://example.com/",
"qty": 1,
"created_at": "2024-11-22T09:35:49.762128Z",
"updated_at": "2026-11-17T01:08:08.496546Z",
"categories": ,1 item
"attributes": ,2 items
"thumbnail": null,
"special_price": 0,
"brand_name": null,
"city": null,
"target_group": null,
"country": null
},
{
"id": 46,
"name": "Example name",
"description": "Example description",
"custom_id": "674",
"product_url": "https://example.com/",
"image_url": "https://example.com/",
"qty": 1,
"created_at": "2024-11-22T09:35:49.346459Z",
"updated_at": "2026-11-17T01:08:08.150023Z",
"categories": ,1 item
"attributes": ,2 items
"thumbnail": null,
"special_price": 0,
"brand_name": null,
"city": null,
"target_group": null,
"country": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the products' segment which is given by User automatically.
results[].namestring
A product name.
results[].descriptionstring
Description of the product, or null.
results[].custom_idstring
A unique identifier for the product which is provided by the client. Usually related to the product’s SKU.
results[].product_urlstring (URL)
A URL of a product.
results[].image_urlstring (URL)
A URL of a product image.
results[].qtyintegernullable
Quantity of the product, or null if not set.
results[].created_atstring (date-time)
A creation date of a product.
results[].updated_atstring (date-time)
A date of last product update.
results[].categoriesarray of integer
A list of categories' ids.
results[].attributesarray of objects
Custom product attributes that have a value, each with name, name_std, value, description and value_type.
results[].attributes[].namestring
A product name.
results[].attributes[].name_stdstring
Standardized name of the attribute, used as its key in the API.
results[].attributes[].valuearray of string | integer | string | string (date)
Value of the attribute for this product.
results[].attributes[].descriptionstring
Description of the attribute.
results[].attributes[].value_typeinteger
Value type of the attribute: 1 boolean, 2 integer, 3 date, 4 string, 5 datetime, 6 fixed (a list of choices), 7 float or 8 JSON.
results[].thumbnailstring (URL)nullable
URL of the product's thumbnail image, or null if there is none. Returned only by the product detail endpoint.
results[].special_priceinteger
Special price of the product, as a whole number; 0 if not set.
results[].brand_namestringnullable
A brand name.
results[].citystringnullable
An origin city of a product.
results[].target_groupstringnullable
A name of a target
results[].countrystringnullable
An origin country of a product.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.