> ## Documentation Index
> Fetch the complete documentation index at: https://brewgravity.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get recipe stats

> OG, FG, ABV, IBU, SRM, attenuation, calories, and BU:GU, recalculated from the recipe's current ingredients. Nothing is cached.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/recipes/{id}/stats
openapi: 3.1.0
info:
  title: Brewgravity API
  version: 1.0.0
  description: >-
    Read and write your recipes, brew sessions, fermentation logs, and
    ingredient inventory.


    Every request is scoped to the account its credential belongs to — there is
    no `user_id` parameter anywhere, and an id belonging to someone else returns
    `404`.


    All units are metric: kilograms, grams, litres, degrees Celsius, minutes.
  contact:
    name: Brewgravity support
    email: support@brewgravity.com
servers:
  - url: https://brewgravity.com
    description: Production
  - url: http://localhost:8787
    description: Local development
security:
  - apiKey: []
tags:
  - name: Identity
    description: Who the credential belongs to.
  - name: Recipes
    description: Recipes and their computed stats.
  - name: Fermentables
    description: Grain, sugar, and extract on a recipe.
  - name: Hops
    description: Hop additions on a recipe.
  - name: Yeasts
    description: Yeast on a recipe.
  - name: Other ingredients
    description: Finings, salts, spices, and flavourings.
  - name: Mash steps
    description: A recipe's mash schedule.
  - name: Brew sessions
    description: Individual brew days made from a recipe.
  - name: Brew day steps
    description: The checklist attached to a brew session.
  - name: Fermentation logs
    description: Timestamped readings against a brew session.
  - name: Inventory
    description: Ingredients you physically have on hand.
  - name: AI
    description: Recipe analysis and usage metering.
  - name: Chats
    description: >-
      AI chat threads. The streaming turn endpoint is not part of the REST
      surface.
paths:
  /v1/recipes/{id}/stats:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Recipe id
    get:
      tags:
        - Recipes
      summary: Get recipe stats
      description: >-
        OG, FG, ABV, IBU, SRM, attenuation, calories, and BU:GU, recalculated
        from the recipe's current ingredients. Nothing is cached.
      operationId: getRecipeStats
      responses:
        '200':
          description: Computed stats
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipeStats'
        '401':
          description: Missing, invalid, or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such resource, or it does not belong to you
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RecipeStats:
      type: object
      properties:
        og:
          type: number
          description: Original gravity
        fg:
          type: number
          description: Estimated final gravity
        abv:
          type: number
          description: Alcohol by volume, percent
        ibu:
          type: number
          description: Bitterness in IBU
        srm:
          type: number
          description: Colour in SRM
        abw:
          type: number
          description: Alcohol by weight, percent
        apparent_attenuation:
          type: number
          description: Apparent attenuation, percent
        real_attenuation:
          type: number
          description: Real attenuation, percent
        calories_per_12oz:
          type: number
          description: Calories per 12 oz serving
        calories_per_330ml:
          type: number
          description: Calories per 330 ml serving
        bugu_ratio:
          type: number
          description: Bitterness-to-gravity ratio
        pre_boil_og:
          type: number
          description: Estimated pre-boil gravity
        pre_boil_volume:
          type: number
          description: Estimated pre-boil volume in litres
        total_water:
          type: number
          description: Estimated total water needed, in litres
      description: Recalculated from the recipe's current ingredients on every request.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable description of what went wrong
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: An API key created from a signed-in session. See Authentication.

````