{
  "name": "ExactCup Ingredient Density API",
  "version": "v1",
  "description": "Free read-only JSON API giving the weight in grams of one US cup (and per tablespoon, teaspoon and mL) for 80 cooking and baking ingredients. No API key, no sign-up, CORS enabled.",
  "documentation": "https://exactcup.github.io/api/",
  "auth": null,
  "https": true,
  "cors": true,
  "rate_limit": null,
  "updated": "2026-08-22",
  "ingredient_count": 80,
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "attribution": {
    "required": true,
    "text": "Ingredient density data by ExactCup",
    "url": "https://exactcup.github.io/",
    "html": "<a href=\"https://exactcup.github.io/\">Ingredient density data by ExactCup</a>"
  },
  "dataset": "https://exactcup.github.io/ingredient-density-data/",
  "source_repository": "https://github.com/exactcup/ingredient-density-dataset",
  "endpoints": [
    {
      "path": "/api/v1/index.json",
      "url": "https://exactcup.github.io/api/v1/index.json",
      "description": "This document: API metadata, license and the endpoint list."
    },
    {
      "path": "/api/v1/ingredients.json",
      "url": "https://exactcup.github.io/api/v1/ingredients.json",
      "description": "Every ingredient with its density (grams per US cup, tablespoon, teaspoon and mL)."
    },
    {
      "path": "/api/v1/ingredients/{slug}.json",
      "url": "https://exactcup.github.io/api/v1/ingredients/{slug}.json",
      "description": "One ingredient, plus precomputed cups→grams, tablespoons→grams and grams→cups tables."
    },
    {
      "path": "/api/v1/categories.json",
      "url": "https://exactcup.github.io/api/v1/categories.json",
      "description": "Ingredient categories with the slugs in each."
    },
    {
      "path": "/api/v1/units.json",
      "url": "https://exactcup.github.io/api/v1/units.json",
      "description": "Volume units in mL and weight units in grams, so you can convert any unit yourself."
    }
  ]
}
