BetterMenu · Schema

ComputeConversionsRequest

Batch conversion request.

Food TechRecipeFormulationFDA ComplianceSoftware-as-a-ServiceCloud

Properties

Name Type Description
country_code string Market code (`US`), the same value `market` and a recipe's `country` take. Selects the ingredient data and conversion rules.
items array
allow_estimation boolean When true, use estimation for items without a deterministic portion match.
View JSON Schema on GitHub

JSON Schema

bettermenu-compute-conversions-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bettermenu/json-schema/bettermenu-compute-conversions-request-schema.json",
  "title": "ComputeConversionsRequest",
  "description": "Batch conversion request.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bettermenu-conversions-api-openapi.yml#/components/schemas/ComputeConversionsRequest",
  "properties": {
    "country_code": {
      "type": "string",
      "title": "Country Code",
      "description": "Market code (`US`), the same value `market` and a recipe's `country` take. Selects the ingredient data and conversion rules.",
      "default": "US"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/ConversionRequestItem"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Items"
    },
    "allow_estimation": {
      "type": "boolean",
      "title": "Allow Estimation",
      "description": "When true, use estimation for items without a deterministic portion match.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "items"
  ],
  "$defs": {
    "ConversionRequestItem": {
      "properties": {
        "ingredient_id": {
          "type": "string",
          "title": "Ingredient Id",
          "description": "BetterMenu ingredient ID (bmid)"
        },
        "quantity": {
          "type": "string",
          "title": "Quantity",
          "description": "Quantity as decimal string (must be > 0)"
        },
        "unit": {
          "type": "string",
          "title": "Unit",
          "description": "Unit (empty string for count-based)"
        },
        "portion_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Portion Id",
          "description": "A portion's id, from the ingredient's nutrition facts (`portions[].id`), to convert that portion directly instead of matching the unit. The only way to convert a branded product's default serving, which has no unit name: pass its id here instead of a unit."
        }
      },
      "type": "object",
      "required": [
        "ingredient_id",
        "quantity",
        "unit"
      ],
      "title": "ConversionRequestItem",
      "description": "Single item to compute conversion for."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bettermenu-compute-conversions-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.