Magic Prices Italia

Read-only price comparison for Italy: products, store offers, price history, deals, coupons (EUR).

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
98%
Vollständigkeit des Schemas
96%
Qualität der Benennung
99%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Befunde (1)

  • LOWTool 'get_store_deals' description lacks action verbin get_store_deals

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~13,125Tokens (Tool-Definitionen)
~9.9 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (10.25% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.magicprices.it/mcp"
    }
  }
}

Remote-Endpunkte

https://mcp.magicprices.it/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (14)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢search_products(q, page, size, brand, categoryId, ...)

Returns a page of Magic Prices Italia products for a free-text query (productId, name, brand, best price in EUR, offerCount, rating, url) with brand and category facets and the price range. Covers the whole catalogue by keyword (e.g. "iPhone 15"); productId in the results is the identifier accepted by the product tools. Inputs: q from the user; brand = names from the brands facet; categoryId from the categories facet or find_category.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 2,
      "maxLength": 200,
      "description": "Free text, e.g. \"iPhone 15\"."
    },
    "page": {
      "description": "Page, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "size": {
      "description": "Page size (default 12).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "brand": {
      "description": "Brand names (not ids), comma separated, from the brands facet.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "categoryId": {
      "description": "Numeric categoryId to restrict the search, taken from the `categories` facet or from find_category.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "minPrice": {
      "description": "Min price (EUR).",
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "maxPrice": {
      "description": "Max price (EUR).",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "q"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "brands": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "priceRange": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                }
              },
              "required": [
                "min",
                "max"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "query",
        "products",
        "brands",
        "categories",
        "priceRange"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_product(productId, ean, includeSpecs)

Returns one Magic Prices Italia product sheet: identity, best price in EUR with discount, plain-text summary, specs by theme (max 40 rows), editorial pros and cons, variants, the 5 cheapest offers, refurbished availability, coupons and url. Inputs: exactly one of productId or ean; includeSpecs false skips the specs.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "productId from search_products or any product list."
    },
    "ean": {
      "type": "string",
      "minLength": 8,
      "maxLength": 14,
      "pattern": "^\\d{8,14}$",
      "description": "EAN/GTIN barcode, 8 to 14 digits."
    },
    "includeSpecs": {
      "description": "Include specification groups (default true).",
      "type": "boolean"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "product": {
          "type": "object",
          "properties": {
            "productId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "brand": {
              "type": [
                "string",
                "null"
              ]
            },
            "category": {
              "type": [
                "string",
                "null"
              ]
            },
            "price": {
              "type": [
                "number",
                "null"
              ]
            },
            "priceFormatted": {
              "type": [
                "string",
                "null"
              ]
            },
            "lowPrice": {
              "type": [
                "number",
                "null"
              ]
            },
            "highPrice": {
              "type": [
                "number",
                "null"
              ]
            },
            "offerCount": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "rating": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "average": {
                      "type": "number"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "average",
                    "count"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "image": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            },
            "ean": {
              "type": [
                "string",
                "null"
              ]
            },
            "sku": {
              "type": [
                "string",
                "null"
              ]
            },
            "summary": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "discount": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "percent": {
                      "type": "number"
                    },
                    "amount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "percent",
                    "amount"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "productId",
            "name",
            "brand",
            "category",
            "price",
            "priceFormatted",
            "lowPrice",
            "highPrice",
            "offerCount",
            "rating",
            "image",
            "url",
            "ean",
            "sku",
            "summary",
            "description",
            "discount"
          ],
          "additionalProperties": false
        },
        "brand": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "brandId": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "brandId",
                "name",
                "slug"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "category": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "categoryId": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "isLeaf": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "categoryId",
                "name",
                "slug",
                "isLeaf"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "specs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "group": {
                "type": "string"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "group",
              "items"
            ],
            "additionalProperties": false
          }
        },
        "aiContent": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "summary": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pros": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "cons": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "verdict": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "summary",
                "pros",
                "cons",
                "verdict"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "variants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "label": {
                "type": "string"
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "label",
              "price",
              "priceFormatted"
            ],
            "additionalProperties": false
          }
        },
        "topOffers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "storeId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "storeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "storeSlug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "deliveryCost": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "totalPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "availability": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deliveryTime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isMarketplace": {
                "type": "boolean"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "storeId",
              "storeName",
              "storeSlug",
              "price",
              "deliveryCost",
              "totalPrice",
              "priceFormatted",
              "availability",
              "deliveryTime",
              "isMarketplace",
              "updatedAt",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "refurbished": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "offerCount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "minPrice": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "offerCount",
                "minPrice"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "coupons": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "storeId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "storeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "storeSlug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "endDate": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code",
              "title",
              "description",
              "type",
              "storeId",
              "storeName",
              "storeSlug",
              "endDate"
            ],
            "additionalProperties": false
          }
        },
        "redirectedFrom": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "product",
        "brand",
        "category",
        "specs",
        "aiContent",
        "variants",
        "topOffers",
        "refurbished",
        "coupons",
        "redirectedFrom",
        "warnings"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_product_offers(productId, condition, page, size)

Returns all store offers for one Magic Prices Italia product sorted by totalPrice (price plus delivery) in EUR, with store (e.g. Unieuro), availability, delivery, marketplace flag and url, plus offerCount, minPrice and maxPrice. Inputs: productId from a previous result; condition, page and size are optional.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "productId from search_products or any product list."
    },
    "condition": {
      "description": "NEW (default) or USED (second-hand, refurbished).",
      "type": "string",
      "enum": [
        "NEW",
        "USED"
      ]
    },
    "page": {
      "description": "Page, from 1 (default 1).",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "size": {
      "description": "Per page (default 10, max 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    }
  },
  "required": [
    "productId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "productId": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "condition": {
          "type": "string",
          "enum": [
            "NEW",
            "USED"
          ]
        },
        "offerCount": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "minPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "offers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "storeId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "storeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "storeSlug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "deliveryCost": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "totalPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "availability": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deliveryTime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isMarketplace": {
                "type": "boolean"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "storeId",
              "storeName",
              "storeSlug",
              "price",
              "deliveryCost",
              "totalPrice",
              "priceFormatted",
              "availability",
              "deliveryTime",
              "isMarketplace",
              "updatedAt",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "productId",
        "condition",
        "offerCount",
        "minPrice",
        "maxPrice",
        "offers"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_price_history(productId, days)

Returns the best-price history of one Magic Prices Italia product in EUR: stats (min, max, avg, first, last, dataPoints, minDate, maxDate) and a {date, price} series (daily up to 90 days, weekly beyond). Inputs: productId; days 7 to 730 (default 180).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "productId from search_products or any product list."
    },
    "days": {
      "description": "Window in days, 7 to 730 (default 180).",
      "type": "integer",
      "minimum": 7,
      "maximum": 730
    }
  },
  "required": [
    "productId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "productId": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "periodDays": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "stats": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "avg": {
                  "type": "number"
                },
                "first": {
                  "type": "number"
                },
                "last": {
                  "type": "number"
                },
                "dataPoints": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "minDate": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "maxDate": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "min",
                "max",
                "avg",
                "first",
                "last",
                "dataPoints",
                "minDate",
                "maxDate"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "series": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "price": {
                "type": "number"
              }
            },
            "required": [
              "date",
              "price"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "productId",
        "periodDays",
        "stats",
        "series"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢compare_products(productIds)

Returns a side-by-side comparison of 2 to 4 Magic Prices Italia products of the same category: product summaries with best price in EUR and spec rows by theme (the rows that differ plus the first ten shared ones). Inputs: productIds from search_products, get_similar_products or get_category_products.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productIds": {
      "minItems": 2,
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 2147483647,
        "description": "productId from search_products or any product list."
      },
      "description": "2 to 4 distinct productIds of one leaf category."
    }
  },
  "required": [
    "productIds"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "category": {
          "type": "object",
          "properties": {
            "categoryId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "isLeaf": {
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "required": [
            "categoryId",
            "name",
            "slug",
            "isLeaf"
          ],
          "additionalProperties": false
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "specs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "group": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "name",
                    "values"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "group",
              "rows"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "category",
        "products",
        "specs"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_similar_products(productId)

Returns products similar to one Magic Prices Italia product (same category) as summaries with best price in EUR, offerCount, rating and url. Inputs: productId from search_products or get_product.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "productId from search_products or any product list."
    }
  },
  "required": [
    "productId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "productId": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "productId",
        "products"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢analyze_price(productId, days, externalPrice, externalStore)

Returns a buying recommendation for one Magic Prices Italia product: current best price in EUR, position in the price history (near the historical low, mid range, near the high), recent trend, a verdict (buy_now, wait, neutral, unknown) with its reasons and a confidence level, plus an optional comparison with a price you saw elsewhere (externalPrice, optional externalStore). productId comes from search_products.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "productId from search_products or any product list."
    },
    "days": {
      "description": "History window in days (7..730, default 180).",
      "type": "integer",
      "minimum": 7,
      "maximum": 730
    },
    "externalPrice": {
      "description": "Price in EUR seen outside Magic Prices Italia, to compare with the market.",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    },
    "externalStore": {
      "description": "Name of the store where externalPrice was seen (for example Unieuro).",
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "productId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "product": {
          "type": "object",
          "properties": {
            "productId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "currentPrice": {
              "type": [
                "number",
                "null"
              ]
            },
            "priceFormatted": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "productId",
            "name",
            "currentPrice",
            "priceFormatted",
            "url"
          ],
          "additionalProperties": false
        },
        "offers": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "count": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "minPrice": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "maxPrice": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "count",
                "minPrice",
                "maxPrice"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "history": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "periodDays": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "dataPoints": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "avg": {
                  "type": "number"
                },
                "trend": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "dropping",
                        "stable",
                        "rising"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "trendPercent": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "percentAboveMin": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "percentBelowMax": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "position": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "near_historical_low",
                        "mid_range",
                        "near_historical_high"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "periodDays",
                "dataPoints",
                "min",
                "max",
                "avg",
                "trend",
                "trendPercent",
                "percentAboveMin",
                "percentBelowMax",
                "position"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "verdict": {
          "type": "string",
          "enum": [
            "buy_now",
            "wait",
            "neutral",
            "unknown"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "external": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "price": {
                  "type": "number"
                },
                "store": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bestPrice": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "bestStore": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "difference": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "differencePercent": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "verdict": {
                  "type": "string",
                  "enum": [
                    "cheaper_elsewhere",
                    "fair",
                    "better_than_market"
                  ]
                },
                "vsHistoricalMin": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "vsHistoricalAvg": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cheaperOffers": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "storeId": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "storeName": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "storeSlug": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "price": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "deliveryCost": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "totalPrice": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "priceFormatted": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "availability": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "deliveryTime": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "isMarketplace": {
                        "type": "boolean"
                      },
                      "updatedAt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "storeId",
                      "storeName",
                      "storeSlug",
                      "price",
                      "deliveryCost",
                      "totalPrice",
                      "priceFormatted",
                      "availability",
                      "deliveryTime",
                      "isMarketplace",
                      "updatedAt",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "price",
                "store",
                "bestPrice",
                "bestStore",
                "difference",
                "differencePercent",
                "verdict",
                "vsHistoricalMin",
                "vsHistoricalAvg",
                "cheaperOffers"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "product",
        "offers",
        "history",
        "verdict",
        "confidence",
        "reasons",
        "external",
        "warnings"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢find_category(query)

Returns up to 10 Magic Prices Italia categories matching a name (leaves first), with slug, parent path and isLeaf. The slug of a leaf is the identifier accepted by get_category_products. Input: a category name in the site language.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "maxLength": 100,
      "description": "Category name in the site language (e.g. \"Smartphone\"); case and accent insensitive."
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "categoryId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "parentPath": {
                "type": "string"
              },
              "isLeaf": {
                "type": "boolean"
              }
            },
            "required": [
              "categoryId",
              "name",
              "slug",
              "parentPath",
              "isLeaf"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "query",
        "matches"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_category_products(slug, brandId, minPrice, maxPrice, sort, ...)

Returns one page of products of a Magic Prices Italia category (price in EUR, price range, offers, rating, image, url), with the top brands, the price range and the total. minPrice and maxPrice restrict the page to a budget; sort accepts rating, price_asc, price_desc, created_desc. slug from find_category; brandId from a brands facet.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[a-z0-9-]+$",
      "description": "Category slug from find_category."
    },
    "brandId": {
      "description": "brandId from a brands facet, to keep one brand.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "minPrice": {
      "description": "Minimum price in EUR (budget floor).",
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "maxPrice": {
      "description": "Maximum price in EUR (budget ceiling).",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    },
    "sort": {
      "description": "Sort (default popularity).",
      "type": "string",
      "enum": [
        "popularity",
        "rating",
        "price_asc",
        "price_desc",
        "created_desc"
      ]
    },
    "page": {
      "description": "Page, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "size": {
      "description": "Page size (default 12).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "category": {
          "type": "object",
          "properties": {
            "categoryId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "isLeaf": {
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "required": [
            "categoryId",
            "name",
            "slug",
            "isLeaf"
          ],
          "additionalProperties": false
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "brands": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "priceRange": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                }
              },
              "required": [
                "min",
                "max"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "category",
        "products",
        "brands",
        "priceRange"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_brand_products(brandId, categoryId, minPrice, maxPrice, sort, ...)

Returns one page of products of a brand on Magic Prices Italia (price in EUR, price range, offers, rating, image, url), with the brand, its main categories and the price range. brandId from a brands facet; categoryId from find_category.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "brandId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "brandId from a brands facet (search_products, get_category_products, get_deals)."
    },
    "categoryId": {
      "description": "categoryId from find_category or this tool's categories, to keep one category.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "minPrice": {
      "description": "Min price (EUR).",
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "maxPrice": {
      "description": "Max price (EUR).",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    },
    "sort": {
      "description": "Sort (default popularity).",
      "type": "string",
      "enum": [
        "popularity",
        "rating",
        "price_asc",
        "price_desc",
        "created_desc"
      ]
    },
    "page": {
      "description": "Page, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "size": {
      "description": "Page size (default 12).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "brandId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "object",
          "properties": {
            "brandId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "productCount": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "brandId",
            "name",
            "slug",
            "productCount"
          ],
          "additionalProperties": false
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "categoryId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "categoryId",
              "name",
              "slug",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "priceRange": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                }
              },
              "required": [
                "min",
                "max"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "brand",
        "products",
        "categories",
        "priceRange"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_deals(discount, categoryId, brandId, minPrice, maxPrice, ...)

Returns one page of products discounted on Magic Prices Italia by at least the given percent versus their highest current price (price in EUR, highPrice, discountPercent, image, url), with the categories and brands of the deals. categoryId from find_category; brandId from a brands facet.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "discount": {
      "description": "Minimum discount percent versus the highest current price: 5, 10, 15, 30 (default 15).",
      "type": "number",
      "enum": [
        5,
        10,
        15,
        30
      ]
    },
    "categoryId": {
      "description": "categoryId from find_category, to restrict to one category.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "brandId": {
      "description": "brandId from a brands facet, to restrict to one brand.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "minPrice": {
      "description": "Min price (EUR).",
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "maxPrice": {
      "description": "Max price (EUR).",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    },
    "page": {
      "description": "Page, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "size": {
      "description": "Page size (default 12).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "minDiscount": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "brand": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lowPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "offerCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rating": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average": {
                        "type": "number"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "average",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "discountPercent": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "brand",
              "category",
              "price",
              "priceFormatted",
              "lowPrice",
              "highPrice",
              "offerCount",
              "rating",
              "image",
              "url",
              "discountPercent"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "count"
            ],
            "additionalProperties": false
          }
        },
        "brands": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "name",
              "count"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "minDiscount",
        "products",
        "categories",
        "brands"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_promo_codes(store, storeId, page, size)

Returns one page of coupon codes and store promotions listed on Magic Prices Italia (code, title, description, type, store, endDate), site-wide or for one store. storeId from an offer or get_store; store is a name or slug.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "store": {
      "description": "Store name or slug (e.g. \"Unieuro\"), case and accent insensitive; ignored when storeId is given.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "storeId": {
      "description": "storeId from an offer or get_store; preferred when known.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "page": {
      "description": "Page, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "size": {
      "description": "Coupons per page (default 20, max 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "store": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "storeId": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "storeId",
                "name",
                "slug"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "coupons": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "storeId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "storeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "storeSlug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "endDate": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code",
              "title",
              "description",
              "type",
              "storeId",
              "storeName",
              "storeSlug",
              "endDate"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "store",
        "coupons"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_store(storeId, slug)

Returns the profile of a store listed on Magic Prices Italia: website, type, city, payments, deliveries, shipping cost and threshold, return policy, logo and rating. storeId from an offer; slug or name from an offer or the user.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "storeId": {
      "description": "storeId from an offer or get_promo_codes. Give storeId or slug, not both.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "slug": {
      "description": "Store slug or name (e.g. \"Unieuro\"); a name is normalised to its slug.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "store": {
          "type": "object",
          "properties": {
            "storeId": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": [
                "string",
                "null"
              ]
            },
            "website": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "type": [
                "string",
                "null"
              ]
            },
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "payments": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "deliveries": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "shipping": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "number"
                    },
                    "threshold": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "amount",
                    "threshold"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "returnPolicy": {
              "type": [
                "string",
                "null"
              ]
            },
            "logo": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "storeId",
            "name",
            "slug",
            "website",
            "type",
            "city",
            "payments",
            "deliveries",
            "shipping",
            "returnPolicy",
            "logo"
          ],
          "additionalProperties": false
        },
        "rating": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "average": {
                  "type": "number"
                },
                "count": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "average",
                "count"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "store",
        "rating"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_store_deals(storeId, slug, size)

Returns the products a store highlights on Magic Prices Italia (productId, name, price in EUR, oldPrice when known, url, image). storeId from an offer; slug or name from an offer or the user.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "storeId": {
      "description": "storeId from an offer or get_promo_codes. Give storeId or slug, not both.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "slug": {
      "description": "Store slug or name (e.g. \"Unieuro\"); a name is normalised to its slug.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "size": {
      "description": "Number of offers (default 12, max 30).",
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "site": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "site",
        "country",
        "currency",
        "locale",
        "tool"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "store": {
          "type": "object",
          "properties": {
            "storeId": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "storeId",
            "name",
            "slug"
          ],
          "additionalProperties": false
        },
        "offers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "productId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceFormatted": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oldPrice": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "productId",
              "name",
              "price",
              "priceFormatted",
              "oldPrice",
              "url",
              "image"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "store",
        "offers"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "page",
        "size",
        "total",
        "hasMore"
      ],
      "additionalProperties": false
    },
    "hint": {
      "type": "string"
    }
  },
  "required": [
    "meta"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet14 Tools