# Get products

You can return a list of all your products.

GET /products-by-id/

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X GET -H
"Authorization: Token <your_64_char_api_key>"
"https://<your_app_subdomain>.user.com/api/public/products-by-id/"

# Response

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 49,
            "name": "my product 1",
            "custom_id": "my_product_1_id",
            "created_at": "2018-03-01T17:07:28.290479Z",
            "updated_at": "2018-03-02T11:22:47.017768Z",
            "product_url": "https://myshop.com/products/my_product1/",
            "image_url": "https://myshop.com/media/products/myproduct1.jpg",
            "attributes": [
                {
                    "value": "attr value",
                    "name_std": "product_attr",
                    "name": "product attr",
                    "description": "attribute description",
                    "id": 22
                },
                {
                    "value": "attr value",
                    "name_std": "product_attr_2",
                    "name": "product attr 2",
                    "description": " attribute description",
                    "id": 23
                }
            ],
            "tags": [
              {
                "id": 31,
                "name": "My tag",
              }
            ],
            "categories": []
        },
        {
            "id": 50,
            "name": "my produc 2",
            "custom_id": "my_product_2_id",
            "created_at": "2018-03-02T14:14:05.608704Z",
            "updated_at": "2018-03-02T14:14:05.608742Z",
            "product_url": "https://myshop.com/products/my_product2/",
            "image_url": "https://myshop.com/media/products/myproduct2.jpg",
            "attributes": [],
            "tags": [
              {
                "id": 31,
                "name": "My tag",
              }
            ],
            "categories": []
        }
    ]
}