GET/ products/
Get products
You can return a list of all your products.
Returns up to 25 products per page. To get the rest, follow next (see Response pagination).
Attributes
Optional unless marked required
- custom_id
- A unique identifier for the product provided by the client.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/products/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/products/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/products/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/products/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"count": 2,"next": null,"previous": null,"results": [{"id": 134,"name": "Trail running shoes","custom_id": "trail-running-shoes","created_at": "2026-11-17T15:02:17.347920Z","updated_at": "2026-11-17T15:02:17.347931Z","product_url": "https://example.com/products/trail-running-shoes","image_url": "https://example.com/images/trail-running-shoes.jpg","attributes": [],"tags": [],"target_group": null,"brand_name": "Northpeak","city": null,"country": null,"qty": null,"description": null,"special_price": 0,"categories": []},{"id": 133,"name": "Two-person tent","custom_id": "two-person-tent","created_at": "2026-11-17T15:02:05.575305Z","updated_at": "2026-11-17T15:02:05.575316Z","product_url": null,"image_url": null,"attributes": [],"tags": [],"target_group": null,"brand_name": null,"city": null,"country": null,"qty": null,"description": null,"special_price": 0,"categories": 1 item}]}Response fields
Fields returned in the 200 OK response body.
- count
- Number of results across all pages. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Results on this page.
- results[].
id - A unique identifier for the product which is given by User automatically.
- results[].
name - A product name.
- results[].
custom_id - A unique identifier for the product which is provided by the client. Usually related to the product’s SKU.
- results[].
created_at - A creation date of a product.
- results[].
updated_at - A date of last product update.
- results[].
product_url - A URL of a product.
- results[].
image_url - A URL of a product image.
- results[].
attributes - Custom product attributes that have a value, each with
name,name_std,value,descriptionandvalue_type.- results[].
attributes[]. name - A product name.
- results[].
attributes[]. name_std - Standardized name of the attribute, used as its key in the API.
- results[].
attributes[]. value - Value of the attribute for this product.
- results[].
attributes[]. description - Description of the attribute.
- results[].
attributes[]. value_type - Value type of the attribute:
1boolean,2integer,3date,4string,5datetime,6fixed (a list of choices),7float or8JSON.
- results[].
- results[].
tags - A list of tags.
- results[].
target_group - A name of a target
- results[].
brand_name - A brand name.
- results[].
city - An origin city of a product.
- results[].
country - An origin country of a product.
- results[].
qty - Quantity of the product, or
nullif not set. - results[].
description - Description of the product, or
null. - results[].
special_price - Special price of the product, as a whole number;
0if not set. - results[].
categories - A list of categories' ids.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.