Returns the list of products available to your API access, with their name matching a given input text.
Only basic product information is provided by this endpoint, including product id. Additional info can be reached through the links provided in basic information.
POST
/products/search
curl \
--request POST 'https://api.ppe-analytics.com/api/v1/products/search' \
--header "PPEApiKey: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"input_text":"Awesome 123","max_count":20,"language":"it","filters":["my-prop1~my-value","other-prop2~other-value"]}'
Request examples
{
"input_text": "Awesome 123",
"max_count": 20,
"language": "it",
"filters": [
"my-prop1~my-value",
"other-prop2~other-value"
]
}
Response examples (200)
{
"status": "OK",
"result": {
"products": [
{
"id": "f50938a24830edb8b1c2ecc3f7dd88a3",
"name": "Awesome light 123",
"level": "variant",
"segment_key": "lightening",
"manufacturer": "petzl",
"last_modified": "2022-06-24 17:14:46 +0200",
"api_get_product": "/api/v1/product/lightening/f50938a24830edb8b1c2ecc3f7dd88a3",
"main_picture_url": "https://app.ppe-analytics.com/static/pictures/300/lightening/f50938a24830edb8b1c2ecc3f7dd88a3.jpg",
"product_page_url": "https://my-website.it/lightening/f50938a24830edb8b1c2ecc3f7dd88a3"
},
{
"id": "89e6848c8f1f91404c224393340b1fad",
"name": "Awesome helmet 1234",
"level": "single",
"segment_key": "head-protection",
"manufacturer": "jsp",
"last_modified": "2022-06-22 10:04:02 +0200",
"api_get_product": "/api/v1/product/head-protection/89e6848c8f1f91404c224393340b1fad",
"main_picture_url": "https://app.ppe-analytics.com/static/pictures/300/head-protection/89e6848c8f1f91404c224393340b1fad.jpg",
"product_page_url": "https://my-website.it/head-protection/89e6848c8f1f91404c224393340b1fad"
}
]
}
}