Category Feed

The fields of the category feed, which lets Athena XAI index the categories on your website.

Last updated

On this page

Overview

The category feed lets Athena XAI index the categories on your website. Format your data using the fields and the example below.

Fields

Field nameData typeDescriptionRequirement
idintYour category’s unique identifier. Use a unique value for each category. Use the category’s ID where possible.required
parent_idintThe ID of the parent category your category belongs to. If your category doesn’t have a parent, set this field to “2”.required
parent_namestringThe name of the parent category your category belongs to. If your category doesn’t have a parent, set this field to “Default Category”.required
levelintThe level of your category in the category tree. In the Athena XAI category system, the main category level is “2”, because each platform reserves category level “1” for the Default Category. If the category does not have a level category, you can submit 2.required
namestringThe name of your category.required
imagestringThe URL of your category’s image. If the category does not have an image, you can submit null.required
urlstringThe URL of your category’s landing page.required
pathstringThe full path of your category with all of its parents. Separate the categories in the path with a “>”, as in the example.required
category_sizeintThe number of products in your category. All categories should have products. Categories with no products will not be indexed.optional

Categories with no products will not be indexed.

Example

JSON
[
   {
      "id": "17",
      "parent_id": "12",
      "parent_name": "Tops",
      "level": "4",
      "name": "Tanks",
      "image": null,
      "url": "http://example.local.com/men/tops-men/tanks-men.html",
      "path": "Men > Tops > Tanks",
      "category_size": 12
   },
   {
      "id": "18",
      "parent_id": "13",
      "parent_name": "Bottoms",
      "level": "4",
      "name": "Pants",
      "image": "http://example.local.com/bottoms-category-image.html",
      "url": "http://example.local.com/men/bottoms-men/pants-men.html",
      "path": "Men > Bottoms > Pants",
      "category_size": 12
   },
   {
      "id": "19",
      "parent_id": "0",
      "parent_name": "",
      "level": "0",
      "name": "Shorts",
      "image": null,
      "url": "http://example.local.com/men/bottoms-men/shorts-men.html",
      "path": "Men > Bottoms > Shorts",
      "category_size": 12
   }
]