# Complete products snapshot

URL: https://shoptet.dev/news/api/complete-products-snapshot

August 25, 2021 · One min read
Pavel Husa

Many addons need to retrieve all products to perform their tasks. Until now, the only possible way was to iteratively call [product detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) endpoint for each product one by one. To make this task easier, we have introduced a new endpoint [List of all products](https://api.docs.shoptet.com/shoptet-api/openapi/products/getlistofallproducts) .

Retrieval of all the product details might take a longer time and produce rather large output. That is why we have introduced [asynchronous endpoints](/addons/documentation/asynchronous-requests/) . When an asynchronous endpoint is called, a background job is submitted and only its id returned. Once the job is completed, a webhook is called and the response can be downloaded.

In case of [List of all products](https://api.docs.shoptet.com/shoptet-api/openapi/products/getlistofallproducts) endpoint, the data is stored using [JSON Lines](https://jsonlines.org/) . Each line contains one product in JSON format. The same data and schema as the [product detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) is used. Event the optional sections requestable by parameter `?include=` are identical.

**Tags:**
- [API](/news/tags/api/)
