---
updatedAt: 2026-06-25T11:37:28.000Z
agentTools:
  projectIndex: https://personalization.developer.dotdigital.com/llms.txt
---

# Get products.

Retrieves the products from Dotdigital Personalization.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Products API",
    "description": "Manages product catalogue data and analytics within Dotdigital Personalization. The products API supports importing and querying product records as well as retrieving behavioural analytics — including daily performance metrics and aggregated product analytics — that feed into recommendation and personalisation rules. Operations include searching, importing, retrieving product history, and accessing aggregated analytics.",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://{region}-api-freshrelevance.dotdigital.com",
      "variables": {
        "region": {
          "description": "The region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    }
  ],
  "security": [
    {
      "apiTokenAuth": []
    }
  ],
  "paths": {
    "/api/{website_id}/products/": {
      "get": {
        "tags": [
          "Manage products"
        ],
        "summary": "Get products.",
        "description": "Retrieves the products from Dotdigital Personalization.",
        "operationId": "getProducts",
        "parameters": [
          {
            "name": "website_id",
            "in": "path",
            "description": "Website ID for the account you are posting data to.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "abc123"
          },
          {
            "name": "format",
            "in": "query",
            "description": "Get data in JSON format.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "example": "json"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Get this number of records to return in results array (pagination).",
            "schema": {
              "minimum": 1,
              "type": "integer",
              "default": 25
            },
            "example": 50
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page of results you wish to return; First page is indexed as 1.",
            "schema": {
              "type": "integer",
              "default": 1
            },
            "example": 1
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search for this pid value in the product data.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search_string",
            "in": "query",
            "description": "Text search for this value in the product data.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "only_variants",
            "in": "query",
            "description": "Restrict the search to only variants.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page of product data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_200"
                },
                "examples": {
                  "success": {
                    "value": {
                      "links": {
                        "next": "https://api.freshrelevance.com/api/abc12345/products/?format=json&limit=3&page=2"
                      },
                      "count": 609,
                      "total": 609,
                      "page": 1,
                      "results": [
                        {
                          "_id": "1x8kgjapCEQs8_UiwABdeQ==",
                          "n": "Cupcake",
                          "prid": "5354107306151",
                          "u": "https://experiencedemo.myshopify.com/products/neff-women-s-cupcake-beanie-2014",
                          "img": "https://experiencedemo.myshopify.com/cdn/shop/products/cupstraw.jpg?v=1592558322&width=533",
                          "sbr": "experiencedemo",
                          "curr": "GBP",
                          "lang": "en",
                          "cat": [],
                          "location_ids": [],
                          "dt": "2024-12-04 16:58:16.929000",
                          "dtadded": "2024-12-04 16:39:09.550000",
                          "variant_count": 0,
                          "variant_keys": [],
                          "variants": {}
                        },
                        {
                          "_id": "r8402XsEczzLK1Ndi-qJsw==",
                          "n": "Amy",
                          "prid": "5354107502759",
                          "u": "https://experiencedemo.myshopify.com/products/neff-women-s-amy-beanie-2014",
                          "img": "https://experiencedemo.myshopify.com/cdn/shop/products/wht_5.jpg?v=1592558323&width=533",
                          "sbr": "experiencedemo",
                          "curr": "GBP",
                          "lang": "en",
                          "cat": [],
                          "location_ids": [],
                          "dt": "2024-12-04 16:58:16.927000",
                          "dtadded": "2024-12-04 16:39:09.309000",
                          "variant_count": 0,
                          "variant_keys": [],
                          "variants": {}
                        },
                        {
                          "_id": "qAHnT8jSPOJMISSd3hnAhg==",
                          "n": "Daily Heather",
                          "prid": "5354106781863",
                          "u": "https://experiencedemo.myshopify.com/products/neff-cassic-beanie-2015",
                          "img": "https://experiencedemo.myshopify.com/cdn/shop/products/dailyheath_purpblk.jpg?v=1592558318&width=533",
                          "sbr": "experiencedemo",
                          "curr": "GBP",
                          "lang": "en",
                          "cat": [],
                          "location_ids": [],
                          "dt": "2024-12-04 16:58:16.925000",
                          "dtadded": "2024-12-04 16:39:09.306000",
                          "variant_count": 0,
                          "variant_keys": [],
                          "variants": {}
                        }
                      ],
                      "headers": {
                        "n": "Name",
                        "prid": "ID",
                        "u": "URL",
                        "img": "IMG",
                        "img_tn": "Thumbnail",
                        "up": "Unit Price",
                        "uv": "Unit Value",
                        "rup": "Regular Unit Price",
                        "stock": "Stock",
                        "sku": "SKU",
                        "sbr": "Site Brand",
                        "curr": "Currency",
                        "lang": "Language",
                        "location_ids": "Location IDs",
                        "dt": "Last Updated",
                        "dtadded": "Date Added",
                        "reviews": "Reviews",
                        "variant_count": "Variant Count",
                        "variant_keys": "Variant Keys",
                        "variants": "Variants"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ErrorResponse"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/403Response"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Headers": {
        "required": [
          "curr",
          "dt",
          "dtadded",
          "img",
          "img_tn",
          "lang",
          "location_ids",
          "n",
          "prid",
          "reviews",
          "rup",
          "sbr",
          "sku",
          "stock",
          "u",
          "up",
          "uv",
          "variant_count",
          "variant_keys",
          "variants"
        ],
        "type": "object",
        "properties": {
          "n": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "prid": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "u": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "img": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "img_tn": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "up": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "uv": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "rup": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "stock": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "sku": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "sbr": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "curr": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "lang": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "location_ids": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "dt": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "dtadded": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "reviews": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "variant_count": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "variant_keys": {
            "type": "string",
            "description": "The terminolgy to use for this."
          },
          "variants": {
            "type": "string",
            "description": "The terminolgy to use for this."
          }
        },
        "description": "Key terminolgy mappings."
      },
      "PaginatedData": {
        "required": [
          "count",
          "links",
          "page",
          "total"
        ],
        "type": "object",
        "properties": {
          "page": {
            "minimum": 1,
            "type": "integer",
            "description": "The index for the page of data returned.",
            "example": 1
          },
          "count": {
            "minimum": 0,
            "type": "integer",
            "description": "Number of records in the page.",
            "example": 12
          },
          "total": {
            "minimum": 0,
            "type": "integer",
            "description": "Total number of records in the set.",
            "example": 12
          },
          "links": {
            "$ref": "#/components/schemas/PaginatedData_links"
          }
        },
        "description": "Data page and pagination links"
      },
      "Product": {
        "required": [
          "_id"
        ],
        "type": "object",
        "properties": {
          "_id": {
            "type": "string",
            "description": "The Dotdigital Personalization unique identifier for a product.",
            "example": "hK8cs10zbudEoqpkl2IvFQ=="
          },
          "related": {
            "type": "array",
            "description": "The product ids related to this product.",
            "example": [
              "32323211",
              "21324343"
            ],
            "items": {
              "type": "string"
            }
          },
          "cat": {
            "type": "array",
            "description": "The categories the product belongs to.",
            "example": [
              "Skis"
            ],
            "items": {
              "type": "string"
            }
          },
          "curr": {
            "type": "string",
            "description": "Price currency - ISO 4217 currency code.",
            "example": "USD"
          },
          "n": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Ti Xelium Skis DH6"
          },
          "u": {
            "type": "string",
            "description": "Product URL.",
            "format": "url",
            "example": "https://example.com/prd/5354127294631"
          },
          "prid": {
            "type": "string",
            "description": "Your unique product id.",
            "example": "5354127294631"
          },
          "sku": {
            "type": "string",
            "description": "The SKU for the product.",
            "example": "SKI-TI-XELIUM-DH6"
          },
          "rid": {
            "type": "string",
            "description": "Product review ID.",
            "example": "df234a"
          },
          "sbr": {
            "type": "string",
            "description": "Site brand.",
            "example": "AbsoluteSki"
          },
          "desc": {
            "type": "string",
            "description": "Product description.",
            "example": "Power turn skis"
          },
          "img": {
            "type": "string",
            "description": "Product image URL.",
            "format": "url"
          },
          "img_tn": {
            "type": "string",
            "description": "Product thumbnail URL.",
            "format": "url"
          },
          "uv": {
            "type": "number",
            "description": "Unit value, price in numeric format.",
            "example": 180
          },
          "up": {
            "type": "string",
            "description": "Unit price, price with currency symbol.",
            "example": "$180.00"
          },
          "ruv": {
            "type": "number",
            "description": "Regular unit value (e.g. price before any sale or offer) numeric value.",
            "example": 220
          },
          "rup": {
            "type": "string",
            "description": "Regular unit price (e.g. price before any sale or offer) value with currency symbol.",
            "example": "$220.00"
          },
          "qty": {
            "type": "integer",
            "description": "Quantity sold in e.g. multi packs.",
            "example": 1
          },
          "stock": {
            "type": "integer",
            "description": "Quantity in stock.",
            "example": 12
          },
          "ex": {
            "type": "object",
            "description": "Extension properties.",
            "example": {
              "color": "red",
              "width": 330,
              "height": 1500,
              "depth": 260
            }
          },
          "opt": {
            "$ref": "#/components/schemas/Product_opt"
          },
          "lang": {
            "type": "string",
            "description": "Language of the product description using ISO 639 language codes.",
            "example": "en"
          },
          "promo": {
            "type": "array",
            "description": "Promotional flags.",
            "items": {
              "type": "string"
            }
          },
          "reviews": {
            "$ref": "#/components/schemas/Product_reviews"
          },
          "review_locale": {
            "type": "string",
            "description": "Language Location using a combination of ISO 639 language codes and ISO 3166-1 alpha-2 format country code.",
            "example": "en-GB"
          },
          "vid": {
            "type": "string",
            "description": "Variant identifier.",
            "example": "5354127294631-1"
          },
          "pth": {
            "type": "string",
            "description": "Path of the product e.g. clothes/jumpers. Should only be used of the path is fixed for one product. Product ID / SKU preferred.",
            "example": "snow/skis/5354127294631"
          },
          "variants": {
            "type": "array",
            "description": "Variants",
            "items": {
              "type": "object"
            }
          },
          "location_ids": {
            "type": "array",
            "description": "Location ids for this product.",
            "items": {
              "type": "string"
            }
          },
          "variant_count": {
            "type": "integer",
            "description": "How many variants exist.",
            "example": 3
          },
          "variant_keys": {
            "type": "array",
            "description": "List of variant ids",
            "items": {
              "type": "string"
            }
          },
          "dt": {
            "type": "string",
            "description": "Date last modified in ISO-8601 format.",
            "example": "2024-10-31T05:38:33.878Z"
          },
          "edt": {
            "type": "string",
            "description": "Date last used in an email in ISO-8601 format.",
            "example": "2024-10-31T05:38:33.878Z"
          },
          "dtadded": {
            "type": "string",
            "description": "Date first added in ISO-8601 format.",
            "example": "2024-10-31T05:38:33.878Z"
          },
          "ai": {
            "type": "object",
            "description": "AI details."
          },
          "meta": {
            "type": "object",
            "description": "Meta data."
          }
        },
        "description": "Product details"
      },
      "inline_response_200": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaginatedData"
          },
          {
            "required": [
              "headers",
              "results"
            ],
            "type": "object",
            "properties": {
              "results": {
                "type": "array",
                "description": "The product records.",
                "items": {
                  "$ref": "#/components/schemas/Product"
                }
              },
              "headers": {
                "$ref": "#/components/schemas/Headers"
              }
            },
            "description": "The product details."
          }
        ]
      },
      "PaginatedData_links": {
        "type": "object",
        "properties": {
          "next": {
            "type": "string",
            "description": "URL of the next page.",
            "format": "url",
            "nullable": true
          },
          "previous": {
            "type": "string",
            "description": "URL of the previous page.",
            "format": "url",
            "nullable": true
          }
        },
        "description": "Page navigation links"
      },
      "Product_opt": {
        "type": "object",
        "properties": {
          "img": {
            "type": "string",
            "description": "Product image URL.",
            "format": "url"
          },
          "img_tn": {
            "type": "string",
            "description": "Product thumbnail URL.",
            "format": "url"
          },
          "n": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Ti Xelium Skis DH6"
          },
          "u": {
            "type": "string",
            "description": "Product URL.",
            "format": "url",
            "example": "https://example.com/prd/5354127294631"
          },
          "uv": {
            "type": "number",
            "description": "Unit value, price in numeric format.",
            "example": 180
          },
          "up": {
            "type": "string",
            "description": "Unit price, price with currency symbol.",
            "example": "$180.00"
          },
          "ruv": {
            "type": "number",
            "description": "Regular unit value (e.g. price before any sale or offer) numeric value.",
            "example": 220
          },
          "rup": {
            "type": "string",
            "description": "Regular unit price (e.g. price before any sale or offer) value with currency symbol.",
            "example": "$220.00"
          }
        },
        "description": "Options"
      },
      "Product_reviews": {
        "type": "object",
        "properties": {
          "dt": {
            "type": "string",
            "description": "Date of last review in ISO-8601 format.",
            "example": "2024-10-31T05:38:33.878Z"
          }
        },
        "description": "Product review details."
      }
    },
    "responses": {
      "ErrorResponse": {
        "description": "An error occurred",
        "content": {
          "application/json": {
            "schema": {
              "required": [
                "error",
                "ok"
              ],
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean",
                  "description": "Indicates the call failed",
                  "enum": [
                    false
                  ]
                },
                "error": {
                  "oneOf": [
                    {
                      "type": "string",
                      "description": "The reason the call errored",
                      "example": "Validation error. No folder bd8eciompb7y, unable to delete"
                    },
                    {
                      "type": "object",
                      "additionalProperties": {
                        "minItems": 1,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "example": "This field may not be null."
                        }
                      },
                      "description": "Fields with issues and their errors"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "403Response": {
        "description": "Forbidden - Usually you are requesting data for a website you don't have access to."
      }
    },
    "securitySchemes": {
      "apiTokenAuth": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ]
}
```

# Sibling pages

* [Search products.](https://personalization.developer.dotdigital.com/reference/getsearchproducts.md)