# wger

> Browse workouts, exercises, body measurements and nutrition data in wger.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/wger

## Actions

### Get a workout routine

Read a routine’s name, dates and settings.

**Inputs**

- Routine (`routine_id`, number, required): Choose a workout routine. At least 1.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "created": "example",
    "description": "example",
    "end": "example",
    "fit_in_week": true,
    "id": 1,
    "is_public": true,
    "is_template": true,
    "name": "example",
    "start": "example"
  }
}
```

### Get a workout session

Read a session’s start, end, notes and workout impression.

**Inputs**

- Session (`session_id`, text, required): Choose a workout session.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "datetime_end": "example",
    "datetime_start": "example",
    "day": 1,
    "id": "example",
    "impression": "example",
    "notes": "example",
    "routine": 1
  }
}
```

### Get an exercise

Read an exercise’s translations, muscles and equipment.

**Inputs**

- Exercise ID (`exercise_id`, number, required): The exercise ID from Search exercises. At least 1.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "author_history": [
      "example"
    ],
    "category": {
      "id": 1,
      "name": "example"
    },
    "created": "example",
    "equipment": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "id": 1,
    "images": [
      {
        "author_history": [
          "example"
        ],
        "exercise": 1,
        "exercise_uuid": "example",
        "id": 1,
        "image": "example",
        "is_ai_generated": true,
        "is_main": true,
        "license": 1,
        "license_author": "example",
        "license_author_url": {},
        "license_derivative_source_url": {},
        "license_object_url": {},
        "license_title": "example",
        "style": "example",
        "thumbnails": {
          "medium": "example",
          "small": "example"
        },
        "uuid": "example"
      }
    ],
    "last_update": "example",
    "last_update_global": "example",
    "license": {
      "full_name": "example",
      "id": 1,
      "short_name": "example",
      "url": {}
    },
    "license_author": "example",
    "muscles": [
      {
        "id": 1,
        "image_url_main": "example",
        "image_url_secondary": "example",
        "is_front": true,
        "name": "example",
        "name_en": "example"
      }
    ],
    "muscles_secondary": [
      {
        "id": 1,
        "image_url_main": "example",
        "image_url_secondary": "example",
        "is_front": true,
        "name": "example",
        "name_en": "example"
      }
    ],
    "total_authors_history": [
      "example"
    ],
    "translations": [
      {
        "aliases": [
          {}
        ],
        "author_history": [
          "example"
        ],
        "created": "example",
        "description": "example",
        "description_source": "example",
        "exercise": 1,
        "id": 1,
        "language": 1,
        "license": 1,
        "license_author": "example",
        "license_author_url": {},
        "license_derivative_source_url": {},
        "license_object_url": {},
        "license_title": "example",
        "name": "example",
        "notes": [
          {}
        ],
        "uuid": "example"
      }
    ],
    "uuid": "example",
    "variation_group": "example",
    "videos": [
      {
        "author_history": [
          "example"
        ],
        "codec": "example",
        "codec_long": "example",
        "duration": "example",
        "exercise": 1,
        "height": 1,
        "id": 1,
        "is_main": true,
        "license": 1,
        "license_author": "example",
        "license_author_url": {},
        "license_derivative_source_url": {},
        "license_object_url": {},
        "license_title": "example",
        "size": 1,
        "uuid": "example",
        "video": "example",
        "width": 1
      }
    ]
  }
}
```

### Get an ingredient

Look up a food and its nutritional information.

**Inputs**

- Ingredient ID (`ingredient_id`, number, required): The ingredient ID from Search ingredients. At least 1.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "brand": "example",
    "carbohydrates": "example",
    "carbohydrates_sugar": "example",
    "code": "example",
    "common_name": "example",
    "created": "example",
    "energy": 1,
    "fat": "example",
    "fat_saturated": "example",
    "fiber": "example",
    "id": 1,
    "is_vegan": true,
    "is_vegetarian": true,
    "language": 1,
    "last_imported": "example",
    "last_update": "example",
    "license": 1,
    "license_author": "example",
    "license_author_url": {},
    "license_derivative_source_url": {},
    "license_object_url": {},
    "license_title": "example",
    "name": "example",
    "nutriscore": {},
    "protein": "example",
    "remote_id": "example",
    "sodium": "example",
    "source_name": "example",
    "source_url": {},
    "uuid": "example",
    "weight_units": [
      {
        "gram": 1,
        "id": 1,
        "ingredient": 1,
        "name": "example",
        "uuid": "example"
      }
    ]
  }
}
```

### Get routine statistics

Read workout statistics for a routine.

**Inputs**

- Routine (`routine_id`, number, required): Choose a workout routine. At least 1.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "intensity": {
      "daily": {},
      "iteration": {},
      "mesocycle": {
        "exercises": {},
        "lower_body": "example",
        "muscle": {},
        "total": "example",
        "upper_body": "example"
      },
      "weekly": {}
    },
    "sets": {
      "daily": {},
      "iteration": {},
      "mesocycle": {
        "exercises": {},
        "lower_body": "example",
        "muscle": {},
        "total": "example",
        "upper_body": "example"
      },
      "weekly": {}
    },
    "volume": {
      "daily": {},
      "iteration": {},
      "mesocycle": {
        "exercises": {},
        "lower_body": "example",
        "muscle": {},
        "total": "example",
        "upper_body": "example"
      },
      "weekly": {}
    }
  }
}
```

### Get routine structure

Read a workout routine’s days, slots and exercises.

**Inputs**

- Routine (`routine_id`, number, required): Choose a workout routine. At least 1.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "created": "example",
    "days": [
      {
        "config": {},
        "description": "example",
        "id": 1,
        "is_rest": true,
        "name": "example",
        "need_logs_to_advance": true,
        "order": 1,
        "routine": 1,
        "slots": [
          {}
        ],
        "type": "example"
      }
    ],
    "description": "example",
    "end": "example",
    "fit_in_week": true,
    "id": 1,
    "name": "example",
    "start": "example"
  }
}
```

### List exercise categories

List available exercise categories.

**Inputs**

- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List exercise equipment

List available equipment for exercises.

**Inputs**

- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List measurement categories

List the categories used for your body measurements.

**Inputs**

- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "chart_config": {},
        "chart_type": {},
        "dynamic_params": {},
        "dynamic_type": "example",
        "id": "example",
        "is_official": true,
        "metric_type": "example",
        "name": "example",
        "order": 1,
        "parent": "example",
        "unit": "example"
      }
    ]
  }
}
```

### List measurements

Read measurements by category and date range.

**Inputs**

- Category (`category_id`, text): Choose a measurement category.
- Start time (`start_time`, date and time): Include measurements at or after this time.
- End time (`end_time`, date and time): Include measurements at or before this time.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "category": "example",
        "date": "example",
        "external_id": "example",
        "extra_data": {},
        "id": "example",
        "notes": "example",
        "source": "example",
        "value": 1
      }
    ]
  }
}
```

### List muscles

List the muscles wger uses to classify exercises.

**Inputs**

- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "id": 1,
        "image_url_main": "example",
        "image_url_secondary": "example",
        "is_front": true,
        "name": "example",
        "name_en": "example"
      }
    ]
  }
}
```

### List nutrition diary entries

Read logged foods and amounts with optional plan and date filters.

**Inputs**

- Nutrition plan (`plan_id`, number): Choose a nutrition plan.
- Start time (`start_time`, date and time): Include entries at or after this time.
- End time (`end_time`, date and time): Include entries at or before this time.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "amount": "example",
        "datetime": "example",
        "id": "example",
        "ingredient": 1,
        "meal": "example",
        "plan": "example",
        "weight_unit": 1
      }
    ]
  }
}
```

### List nutrition plans

List meal and nutrition plans in your account.

**Inputs**

- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "creation_date": "example",
        "description": "example",
        "end": "example",
        "goal_carbohydrates": 1,
        "goal_energy": 1,
        "goal_fat": 1,
        "goal_fiber": 1,
        "goal_protein": 1,
        "id": "example",
        "only_logging": true,
        "start": "example"
      }
    ]
  }
}
```

### List routine days

List training and rest days for a routine.

**Inputs**

- Routine (`routine_id`, number): Choose a workout routine to filter by. At least 1.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "config": {},
        "description": "example",
        "id": 1,
        "is_rest": true,
        "name": "example",
        "need_logs_to_advance": true,
        "order": 1,
        "routine": 1,
        "type": "example"
      }
    ]
  }
}
```

### List weight entries

Read body weight entries over a date and time range.

**Inputs**

- Start time (`start_time`, date and time): Include entries at or after this time.
- End time (`end_time`, date and time): Include entries at or before this time.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "date": "example",
        "id": "example",
        "user": 1,
        "weight": "example"
      }
    ]
  }
}
```

### List workout logs

Read logged exercises, sets, repetitions and weights.

**Inputs**

- Routine (`routine_id`, number): Choose a workout routine to filter by. At least 1.
- Start time (`start_time`, date and time): Include logs at or after this time.
- End time (`end_time`, date and time): Include logs at or before this time.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "date": "example",
        "exercise": 1,
        "id": "example",
        "iteration": 1,
        "next_log": "example",
        "notes": "example",
        "repetitions": "example",
        "repetitions_target": "example",
        "repetitions_unit": 1,
        "rest": 1,
        "rest_target": 1,
        "rir": "example",
        "rir_target": "example",
        "routine": 1,
        "session": "example",
        "slot_entry": 1,
        "weight": "example",
        "weight_target": "example",
        "weight_unit": 1
      }
    ]
  }
}
```

### List workout routines

List the workout routines in your wger account.

**Inputs**

- Routine name (`routine_name`, text): Filter by the name of a workout routine.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "created": "example",
        "description": "example",
        "end": "example",
        "fit_in_week": true,
        "id": 1,
        "is_public": true,
        "is_template": true,
        "name": "example",
        "start": "example"
      }
    ]
  }
}
```

### List workout sessions

Read your workout sessions, with optional routine and time filters.

**Inputs**

- Routine (`routine_id`, number): Choose a workout routine to filter by. At least 1.
- Start time (`start_time`, date and time): Include sessions starting at or after this time.
- End time (`end_time`, date and time): Include sessions starting at or before this time.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "datetime_end": "example",
        "datetime_start": "example",
        "day": 1,
        "id": "example",
        "impression": "example",
        "notes": "example",
        "routine": 1
      }
    ]
  }
}
```

### Search exercises

Find exercises by name, category and equipment.

**Inputs**

- Search (`search`, text): Search for exercises by name.
- Category (`category_id`, number): Choose an exercise category.
- Equipment (`equipment_id`, number): Choose exercise equipment.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "author_history": [
          "example"
        ],
        "category": {
          "id": 1,
          "name": "example"
        },
        "created": "example",
        "equipment": [
          {}
        ],
        "id": 1,
        "images": [
          {}
        ],
        "last_update": "example",
        "last_update_global": "example",
        "license": {
          "full_name": "example",
          "id": 1,
          "short_name": "example",
          "url": {}
        },
        "license_author": "example",
        "muscles": [
          {}
        ],
        "muscles_secondary": [
          {}
        ],
        "total_authors_history": [
          "example"
        ],
        "translations": [
          {}
        ],
        "uuid": "example",
        "variation_group": "example",
        "videos": [
          {}
        ]
      }
    ]
  }
}
```

### Search ingredients

Find foods and their nutritional information by name.

**Inputs**

- Search (`search`, text, required): The name or part of the name of the food.
- Limit (`limit`, number): The maximum number of records on this page. From 1 to 100.
- Offset (`offset`, number): The number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from wger.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "brand": "example",
        "carbohydrates": "example",
        "carbohydrates_sugar": "example",
        "code": "example",
        "common_name": "example",
        "created": "example",
        "energy": 1,
        "fat": "example",
        "fat_saturated": "example",
        "fiber": "example",
        "id": 1,
        "is_vegan": true,
        "is_vegetarian": true,
        "language": 1,
        "last_imported": "example",
        "last_update": "example",
        "license": 1,
        "license_author": "example",
        "license_author_url": {},
        "license_derivative_source_url": {},
        "license_object_url": {},
        "license_title": "example",
        "name": "example",
        "nutriscore": {},
        "protein": "example",
        "remote_id": "example",
        "sodium": "example",
        "source_name": "example",
        "source_url": {},
        "uuid": "example",
        "weight_units": [
          {}
        ]
      }
    ]
  }
}
```
