# Exercise Db Wger Scraper (`bigibyte/exercise-db-wger-scraper`) Actor

wger Exercise Database Scraper is a Python tool to extract exercise names, category classifications, targeted muscle groups, required equipment, and asset media URLs from the open-source wger REST API. It exports structured fitness datasets into clean CSV or JSON formats

- **URL**: https://apify.com/bigibyte/exercise-db-wger-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Exercise DB (wger) Scraper — Exercise Information, Categories & Muscles

![Exercise DB (wger) Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/exercise-db-wger-scraper-cover.png)

Exercise DB (wger) Scraper collects exercise information, exercise categories, and muscle data from the public wger workout manager dataset. Choose a collection mode, apply language or category filters when needed, set your item limit, and export the results in JSON, CSV, Excel, or other supported Apify dataset formats.

### Features

- **Exercise information:** Collect detailed exercise records, including names, UUIDs, categories, muscles, equipment, licenses, translations, and videos.
- **Exercise categories:** Retrieve exercise category names and identifiers.
- **Muscle data:** Collect muscle names, identifiers, and diagram URLs.
- **Multiple collection modes:** Choose between exercises, categories, and muscles.
- **Language filtering:** Filter exercise information by language.
- **Category filtering:** Retrieve exercises belonging to a selected category.
- **Automatic pagination:** Follow API pagination to collect multiple pages.
- **Duplicate detection:** Skip duplicate wger records within a run.
- **Request pacing:** Control the delay between requests.
- **Multiple export formats:** Work with JSON, CSV, Excel, and other supported dataset formats.

### Use Cases

- **Workout app datasets:** Build exercise databases containing muscle groups, equipment, and exercise details.
- **Category catalogs:** Collect exercise categories for workout filters and classification systems.
- **Muscle maps:** Retrieve muscle names and diagram references for fitness applications.
- **Fitness research:** Analyze exercise information and available training data.
- **Database integration:** Import structured exercise records into applications and databases.
- **Scheduled refresh:** Run the actor periodically to refresh exercise, category, and muscle datasets.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Select the collection mode: exercises, categories, or muscles. |
| `language` | Integer | Optional language filter for exercise information. |
| `category` | Integer | Optional exercise category filter. |
| `maxItems` | Integer | Maximum number of records to collect per run. |
| `requestDelayMs` | Integer | Delay between API requests in milliseconds. |

### Example Input

```json
{
  "mode": "exercises",
  "language": 2,
  "maxItems": 50,
  "requestDelayMs": 500
}
```

### Extracted Data

Depending on the selected mode, the actor returns exercise information, category records, or muscle records.

Exercise records can contain the following fields:

| Field | Description |
|---|---|
| `wgerId` | Original wger exercise identifier. |
| `uuid` | Unique exercise UUID. |
| `created` | Exercise creation date. |
| `lastUpdate` | Last exercise update date. |
| `lastUpdateGlobal` | Global last update date. |
| `category` | Exercise category information. |
| `muscles` | Primary muscles involved in the exercise. |
| `musclesSecondary` | Secondary muscles involved. |
| `equipment` | Equipment associated with the exercise. |
| `license` | Exercise license information. |
| `licenseAuthor` | License author. |
| `images` | Exercise image information. |
| `translations` | Available exercise translations. |
| `variationGroup` | Exercise variation group identifier. |
| `videos` | Associated exercise videos. |
| `authorHistory` | Exercise author history. |
| `totalAuthorsHistory` | Complete author history information. |
| `name` | Exercise name when available in the returned data. |

Category and muscle modes return their respective available identifiers, names, and related information.

### Example Output

```json
{
  "wgerId": 9,
  "uuid": "1b020b3a-3732-4c7e-92fd-a0cec90ed69b",
  "created": "2023-08-06T10:17:17.422900+02:00",
  "lastUpdate": "2026-07-23T12:24:53.482746+02:00",
  "lastUpdateGlobal": "2026-07-23T12:24:53.482746+02:00",
  "category": {
    "id": 10,
    "name": "Abs"
  },
  "muscles": [
    {
      "id": 11,
      "name": "Biceps femoris",
      "name_en": "Hamstrings",
      "is_front": false
    }
  ],
  "musclesSecondary": [],
  "equipment": [
    {
      "id": 10,
      "name": "Kettlebell"
    }
  ],
  "license": {
    "id": 2,
    "full_name": "Creative Commons Attribution Share Alike 4",
    "short_name": "CC-BY-SA 4",
    "url": "https://creativecommons.org/licenses/by-sa/4.0/deed.en"
  },
  "licenseAuthor": "deusinvictus",
  "images": [],
  "translations": [],
  "variationGroup": "a30b1f92-7b73-477e-abb0-e91993c5fb05",
  "videos": [],
  "authorHistory": [
    "deusinvictus"
  ],
  "totalAuthorsHistory": [
    "deusinvictus"
  ]
}
```

### Working with the Dataset

After the actor finishes, open its default dataset to explore the collected records.

You can:

- Preview records in the Apify dataset table.
- Export records as JSON, CSV, Excel, and other supported formats.
- Import exercise information into a fitness application or database.
- Analyze categories, equipment, and muscle groups.
- Use the structured records in your own data processing workflows.

### FAQ

**Who is this actor for?**

Fitness application developers, researchers, data analysts, and developers building workout or exercise databases.

**What collection modes are available?**

The actor supports exercise information, exercise categories, and muscle records.

**Can I filter exercises by language or category?**

Yes. Use the available language and category inputs when collecting exercise information.

**What export formats are supported?**

You can export collected records in JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule automatic collection?**

Yes. Use Apify Schedules to run the actor periodically and refresh your datasets.

### Pricing and usage limits

Actor compute: The scraper itself is free to run. Usage is billed based on standard Apify compute unit (CU) consumption while running.
Custom limits: You can set maxItems to cap the total number of records processed per run, keeping your costs predictable.
Adjustable delays: Control request timing with requestDelaySecs to stay within rate limits and maintain smooth execution.

### Related tools

If you plan to map or join these rows, a geocoding pass or a quick CSV cleanup are the usual next steps. BigiByte also builds scrapers for other open-data portals when you need them as a separate job.

Need another portal, a scheduled monitor, or a custom pipeline? BigiByte builds custom scrapers and APIs: https://bigibyte.com/

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with wger or its owners. It collects information from publicly available data sources. Users are responsible for ensuring that their collection, storage, and use of the resulting data comply with applicable laws and the source's terms.

### Is web scraping legal?

This Actor collects publicly available data without logging in or bypassing access controls. Scraping publicly available information is generally lawful in many jurisdictions, but how you collect and use the data matters:

- **Personal data:** If results include names or other personal information, privacy laws such as the GDPR and CCPA may apply. Ensure you have an appropriate lawful basis and minimise the personal data you retain.
- **Copyright:** Text, images, and other content may be protected by copyright. Reuse or republication may require permission or compliance with the applicable license.
- **Terms of use:** Respect the source's terms of use and any applicable restrictions when collecting or using data.

This information is general guidance, not legal advice.

To learn more, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to collect. Exercise info, exercise categories, or muscles.

## `language` (type: `integer`):

Language ID filter for exercise info (2 = English).

## `category` (type: `integer`):

Optional category ID filter for exercise info.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "exercises",
  "language": 2,
  "maxItems": 100,
  "requestDelayMs": 500,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/exercise-db-wger-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/exercise-db-wger-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call bigibyte/exercise-db-wger-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/exercise-db-wger-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QmLeenBjKkwin05nk/builds/XHpxvrZvZzyQaICpB/openapi.json
