Embedded videos displayed on product listings.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
Gets the videos associated with a product.
GET /stores/{store_hash}/v2/products/{product_id}/videos
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 product_videos are returned by default.
Example JSON returned in the response:
Gets a product video.
GET /stores/{store_hash}/v2/products/{product_id}/videos/{id}
Gets a count of the number of product videos in the store.
GET /stores/{store_hash}/v2/products/videos/count
Example JSON returned in the response:
Adds a link to a YouTube video to a product.
POST /stores/{store_hash}/v2/products/{product_id}/videos
The following properties of the product video are read-only. If one or more of these properties are included in the request, it will be rejected.
The following properties of the product video are required. The request won’t be fulfilled unless these properties are valid.
Note
Only YouTube videos are supported. To create a new video, pass the full url in the request body.
Example request object:
Edit the metadata of a product video.
PUT /stores/{store_hash}/v2/products/{product_id}/videos/{id}
The following properties of the product video are read-only. If one or more of these properties are included in the request, it will be rejected.
There are no required properties when updating a product video.
Note
The name, sort_order and url properties of the product video are editable.
Posting a new url will update the id of the video to reference the new video.
Example request object:
Delete a product video.
DELETE /stores/{store_hash}/v2/products/{product_id}/videos/{id}
Deletes all videos belonging to a product.
DELETE /stores/{store_hash}/v2/products/{product_id}/videos