Plant Spotter🌱

Plant Spotter🌱 · GPT アクション

spoonacular API

Provide information about recipes and ingredients, understanding the relationships between ingredients, recipes, nutrition, allergens, and more

  • GET /recipes/findByIngredientsFind recipes that use as many of the given ingredients as possible and require as few additional ingredients as possible
元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "spoonacular API",
    "version": "1.0.0",
    "description": "Provide information about recipes and ingredients, understanding the relationships between ingredients, recipes, nutrition, allergens, and more"
  },
  "servers": [
    {
      "url": "https://api.spoonacular.com",
      "description": "API server for providing information about recipes, ingredients, etc."
    }
  ],
  "paths": {
    "/recipes/findByIngredients": {
      "get": {
        "summary": "Find recipes that use as many of the given ingredients as possible and require as few additional ingredients as possible",
        "operationId": "searchRecipes",
        "x-openai-isConsequential": false,
        "parameters": [
          {
            "name": "apiKey",
            "in": "query",
            "required": true,
            "description": "2fa57ec4a6984281b54a9c2239c2a8b9",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ingredients",
            "in": "query",
            "required": true,
            "description": "A comma-separated list of ingredients that the recipes should contain",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "required": false,
            "description": "The maximum number of recipes to return (between 1 and 100). Defaults to 10",
            "schema": {
              "type": "number",
              "default": 1
            }
          },
          {
            "name": "limitLicense",
            "in": "query",
            "required": false,
            "description": "Whether the recipes should have an open license that allows display with proper attribution (boolean)",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "ranking",
            "in": "query",
            "required": false,
            "description": "Whether to maximize used ingredients (1) or minimize missing ingredients (2) first",
            "schema": {
              "type": "number",
              "default": 1
            }
          },
          {
            "name": "ignorePantry",
            "in": "query",
            "required": false,
            "description": "Whether to ignore typical pantry items, such as water, salt, flour, etc. (boolean)",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ]
      }
    }
  }
}