Spoonacular · JSON Structure

Spoonacular Comparable Product Structure

ComparableProduct schema from spoonacular API

Type: object Properties: 4 Required: 4
RestaurantFood And DrinkRecipesNutritionMeal PlanningPublic APIs

ComparableProduct is a JSON Structure definition published by Spoonacular, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

difference id image title

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spoonacular/refs/heads/main/json-structure/spoonacular-comparable-product-structure.json",
  "name": "ComparableProduct",
  "description": "ComparableProduct schema from spoonacular API",
  "type": "object",
  "properties": {
    "difference": {
      "type": "double",
      "example": 1.0
    },
    "id": {
      "type": "int32",
      "example": 716429
    },
    "image": {
      "type": "string",
      "minLength": 1,
      "example": "example"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "example": "example"
    }
  },
  "required": [
    "difference",
    "id",
    "image",
    "title"
  ]
}