---
updatedAt: 2026-05-28T09:43:07.000Z
agentTools:
  projectIndex: https://developers.piwik.pro/llms.txt
---

# List product custom dimensions

Returns a list all custom dimensions available for a website.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Web API",
    "version": "master"
  },
  "servers": [
    {
      "url": "https://{account}.piwik.pro",
      "variables": {
        "account": {
          "default": "example"
        }
      }
    }
  ],
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ],
  "paths": {
    "/api/analytics/v1/manage/product-custom-dimensions/": {
      "get": {
        "tags": [
          "Analytics"
        ],
        "summary": "List product custom dimensions",
        "description": "Returns a list all custom dimensions available for a website.\n",
        "parameters": [
          {
            "name": "website_id",
            "in": "query",
            "required": true,
            "description": "ID of the website.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "677fe0d3-b4f7-43ed-852d-1a9e7b8e59fb"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "meta": {
                      "type": "object",
                      "allOf": [
                        {
                          "type": "object",
                          "required": [
                            "total"
                          ],
                          "properties": {
                            "total": {
                              "type": "integer",
                              "description": "Total number of results.",
                              "example": 1
                            }
                          }
                        }
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "allOf": [
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "attributes",
                              "id"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "Type of the object.",
                                "enum": [
                                  "ProductCustomDimension"
                                ]
                              },
                              "id": {
                                "type": "string",
                                "description": "ID of a Product Custom Dimension.",
                                "readOnly": true,
                                "format": "uuid",
                                "example": "677fe0d3-b4f7-43ed-852d-1a9e7b8e59fb"
                              },
                              "attributes": {
                                "required": [
                                  "name",
                                  "website_id"
                                ],
                                "properties": {
                                  "website_id": {
                                    "type": "string",
                                    "format": "uuid",
                                    "description": "ID of the website.",
                                    "example": "dde2dc68-b6bb-45ee-9ac2-868b6181e33f"
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "Name of the product custom dimension.",
                                    "example": "Product package height in mm"
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 300
                                  },
                                  "data_type": {
                                    "type": "string",
                                    "description": "Data type of the product custom dimension. This field is immutable after creation — update requests that change it return a 400.",
                                    "enum": [
                                      "string",
                                      "integer",
                                      "float"
                                    ],
                                    "default": "string"
                                  },
                                  "formatting": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Formatting hint for the product custom dimension. Only applicable when `data_type` is `integer` or `float`; setting `formatting` while `data_type` is `string` returns a 400. This field is immutable after creation.",
                                    "enum": [
                                      "number",
                                      "time",
                                      "percentage"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "attributes": {
                                "type": "object",
                                "required": [
                                  "slot"
                                ],
                                "properties": {
                                  "slot": {
                                    "type": "integer",
                                    "description": "Slot number for product custom dimension.",
                                    "minimum": 1
                                  },
                                  "updated_at": {
                                    "type": "string",
                                    "readOnly": true,
                                    "format": "datetime",
                                    "description": "Last update datetime.",
                                    "example": "2017-07-14T08:33:53.215948Z"
                                  },
                                  "created_at": {
                                    "type": "string",
                                    "readOnly": true,
                                    "format": "datetime",
                                    "description": "Created datetime.",
                                    "example": "2017-07-14T08:33:53.215948Z"
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/auth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-api-checksum": "f30b118d8e5a9d203105c80d9cf4000e1fd797fefe12353beea7e379e41e6e6c"
}
```