List products 📚
Returns the list of products available to your corporation for a given segment, or for all segments at once (leave segment_key empty in that case)
Only basic product information is provided by this endpoint, including product id. Full information is available through the Fetch product information endpoint
Path parameters
-
segment_key string
The segment key of the product, as returned by list products endpoint. Leave empty for all segments
Values are
hand-protection
,foot-protection
,head-protection
,eye-protection
,body-protection
,ear-protection
,fall-protection
,respiratory-protection
,ergonomy
,safety-first-aid
,hygiene
,lockout-tagout
,electrical
,lightening
,safety-signs
, orsurface-cleaning
.
Query parameters
-
updated_after string
Product last update cutoff date, in format YYYY-MM-DD or YYYY-MM-DD HH:MM:SS
GET /products/{segment_key}
curl \
-X GET https://api.ppe-analytics.com/api/v1/products/surface-cleaning \
-H "PPEApiKey: $API_KEY"
Response examples (200)
{
"status": "OK",
"result": {
"products": [
{
"id": "f50938a24830edb8b1c2ecc3f7dd88a3",
"name": "Apollo 1027",
"level": "single",
"segment_key": "surface-cleaning",
"manufacturer": "spontex",
"last_modified": "2022-06-24 17:14:46 +0200",
"api_get_product": "/api/v1/product/surface-cleaning/f50938a24830edb8b1c2ecc3f7dd88a3",
"main_picture_url": "https://app.ppe-analytics.com/static/pictures/300/surface-cleaning/f50938a24830edb8b1c2ecc3f7dd88a3.jpg"
},
{
"id": "89e6848c8f1f91404c224393340b1fad",
"name": "Ariane Ultra 1212",
"level": "parent",
"segment_key": "surface-cleaning",
"manufacturer": "spontex",
"last_modified": "2022-06-22 10:04:02 +0200",
"api_get_product": "/api/v1/product/surface-cleaning/89e6848c8f1f91404c224393340b1fad",
"main_picture_url": "https://app.ppe-analytics.com/static/pictures/300/surface-cleaning/89e6848c8f1f91404c224393340b1fad.jpg"
},
{
"id": "79e6848c8f1f91404c224393340b1fad",
"name": "Ariane Ultra 1212 RED",
"level": "variant",
"parent_id": "89e6848c8f1f91404c224393340b1fad",
"segment_key": "surface-cleaning",
"manufacturer": "spontex",
"last_modified": "2024-01-09 07:34:02 +0200",
"api_get_product": "/api/v1/product/surface-cleaning/79e6848c8f1f91404c224393340b1fad",
"main_picture_url": "https://app.ppe-analytics.com/static/pictures/300/surface-cleaning/79e6848c8f1f91404c224393340b1fad.jpg"
}
]
}
}
Response examples (404)
{
"status": "ERROR",
"message": "Unknown segment key 'book-protection'"
}
Response examples (403)
{
"status": "ERROR",
"message": "Unauthorized access to segment 'secret-agent'"
}