Videos
Get All Product Videos
GET https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/videosRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id in path - integerrequired
The ID of the
Product
to which the resource belongs. - include_fields in query - arrayFields to include, in a comma-separated list. The ID and the specified fields will be returned.Type: array[string]
Allowed: name | type | sku | description | weight | width | depth | height | price | cost_price | retail_price | sale_price | map_price | tax_class_id | product_tax_code | calculated_price | categories | brand_id | option_set_id | option_set_display | inventory_level | inventory_warning_level | inventory_tracking | reviews_rating_sum | reviews_count | total_sold | fixed_cost_shipping_price | is_free_shipping | is_visible | is_featured | related_products | warranty | bin_picking_number | layout_file | upc | mpn | gtin | date_last_imported | search_keywords | availability | availability_description | condition | is_condition_shown | order_quantity_minimum | order_quantity_maximum | page_title | meta_keywords | meta_description | date_created | date_modified | view_count | preorder_release_date | preorder_message | is_preorder_only | is_price_hidden | price_hidden_label | custom_url | base_variant_id | open_graph_type | open_graph_title | open_graph_description | open_graph_use_meta_description | open_graph_use_product_name | open_graph_use_image
- exclude_fields in query - arrayFields to exclude, in a comma-separated list. The specified fields will be excluded from a response. The ID cannot be excluded.Type: array[string]
- page in query - integer
Specifies the page number in a limited (paginated) list of products.
- limit in query with default of 50 - integer
Controls the number of items per page in a limited (paginated) list of products.
example
Response
Body
dataarray[object]
example
Create a Product Video
POST https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/videosRequest
Creates a Product Video.
Required Fields
- video_id
Read-Only Fields
- id
Publicly accessible URLs are valid parameters.
The Catalog API integrates with third-party YouTube, and you must load videos through YouTube. The YouTube Terms of Service and Google Privacy Policy apply, as indicated in our Privacy Policy and Terms of Service.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id in path - integerrequired
The ID of the
Product
to which the resource belongs. - Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
The model for a POST to create a video on a product.
titlestring
>= 0 characters<= 255 charactersThe title for the video. If left blank, this will be filled in according to data on a host site.
Example: Writing Great Documentationdescriptionstring
The description for the video. If left blank, this will be filled in according to data on a host site.
Example: A video about documenationsort_orderinteger
The order in which the video will be displayed on the product page. Higher integers give the video a lower priority. When updating, if the video is given a lower priority, all videos with a
sort_order
the same as or greater than the videoʼs newsort_order
value will have theirsort_order
s reordered.Min: -2147483648Max: 2147483647Example: 1typestring
The video type (a short name of a host site).
Allowed: youtube
video_idstring
>= 0 characters<= 25 charactersThe ID of the video on a host site.
Example: z3fRu9pkuXE
example
Response
Body
Response payload for the BigCommerce API.
dataobject
A product video model.
example
Get a Product Video
GET https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/videos/{id}Request
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id in path - integerrequired
The ID of the
Product
to which the resource belongs. - id in path - integerrequiredThe BigCommerce ID of the
Video
- include_fields in query - arrayFields to include, in a comma-separated list. The ID and the specified fields will be returned.Type: array[string]
Allowed: name | type | sku | description | weight | width | depth | height | price | cost_price | retail_price | sale_price | map_price | tax_class_id | product_tax_code | calculated_price | categories | brand_id | option_set_id | option_set_display | inventory_level | inventory_warning_level | inventory_tracking | reviews_rating_sum | reviews_count | total_sold | fixed_cost_shipping_price | is_free_shipping | is_visible | is_featured | related_products | warranty | bin_picking_number | layout_file | upc | mpn | gtin | date_last_imported | search_keywords | availability | availability_description | condition | is_condition_shown | order_quantity_minimum | order_quantity_maximum | page_title | meta_keywords | meta_description | date_created | date_modified | view_count | preorder_release_date | preorder_message | is_preorder_only | is_price_hidden | price_hidden_label | custom_url | base_variant_id | open_graph_type | open_graph_title | open_graph_description | open_graph_use_meta_description | open_graph_use_product_name | open_graph_use_image
- exclude_fields in query - arrayFields to exclude, in a comma-separated list. The specified fields will be excluded from a response. The ID cannot be excluded.Type: array[string]
example
Response
Body
Response payload for the BigCommerce API.
dataobject
A product video model.
example
Update a Product Video
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/videos/{id}Request
Updates a *Product Video.
Required Fields
- none
Read-Only Fields
- id
The Catalog API integrates with third-party YouTube, and you must load videos through YouTube. The YouTube Terms of Service and Google Privacy Policy apply, as indicated in our Privacy Policy and Terms of Service.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id in path - integerrequired
The ID of the
Product
to which the resource belongs. - id in path - integerrequiredThe BigCommerce ID of the
Video
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
The model for a PUT to update a video on a product.
titlestring
>= 0 characters<= 255 charactersThe title for the video. If left blank, this will be filled in according to data on a host site.
descriptionstring
The description for the video. If left blank, this will be filled in according to data on a host site.
sort_orderinteger
The order in which the video will be displayed on the product page. Higher integers give the video a lower priority. When updating, if the video is given a lower priority, all videos with a
sort_order
the same as or greater than the videoʼs newsort_order
value will have theirsort_order
s reordered.Min: -2147483648Max: 2147483647typestring
The video type (a short name of a host site).
Allowed: youtube
idinteger
The unique numeric ID of the product video; increments sequentially.
example
Response
Body
Response payload for the BigCommerce API.
dataobject
A product video model.
example
Delete a Product Video
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/videos/{id}Request
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id in path - integerrequired
The ID of the
Product
to which the resource belongs. - id in path - integerrequiredThe BigCommerce ID of the
Video