JSON product feed
The following steps outline how to get a JSON product feed integrated in Content Studio to be able to browse and select products.
What you'll needLink copied!
To configure your JSON feed integration in Content Studio you'll need the following:
- JSON feed URL
- JSON path to map to the property containing an array of products
- JSON path for individual product properties:
- ID/SKU
- Name
- Description
- Image(s)
JSON feeds integrations are primarily aimed at small categories, testing and demoing product data and as a result, these types of feed integrations have some limitations.
- The JSON feed must be a public URL
- The JSON feed must be less than 2MB in size
Setting up the Content Studio integrationLink copied!
- In Content Studio choose the Commerce Repositories icon and click "Add Commerce Repository"
- Choose "JSON Feed" from the dialog options and add the integration.
- Provide the JSON paths for the list of products in the feed and individual product properties (ID, name, description, images).
Default values are available by clicking on each box and selecting the value.
You can use a JSON Path evaluator such as the JSON Path online evaluator to determine the JSON paths for your feed. See JSON feed example for an example feed and configuration. See Determining JSON paths for more details.
Once the integration is set up, your product data is available to browse and add when using Content Studio templates such as "Rewrite product description".
JSON feed exampleLink copied!
An example JSON feed is hosted at the following URL.
The data structure is as follows (showing one product):
Example mappingsLink copied!
The JSON path mappings for the attributes are shown below:
Attribute | Mapping |
---|---|
Products | $.products[*] |
ID/SKU | $.id |
Name | $.name |
Description | $.longDescription |
Images | $.variants[0].images[*].url |