# Taiga Project Extractor (`datamule/taiga-project-extractor`) Actor

Point at any Taiga instance (open-source agile PM) for one structured row per public project: name, slug, fans, watchers, activity, tags, owner, timestamps. Also fetch a project by slug, per-project agile stats, and fleet counts via the documented REST API.

- **URL**: https://apify.com/datamule/taiga-project-extractor.md
- **Developed by:** [Datamule](https://apify.com/datamule) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Taiga Project Extractor

A GENERIC **"point at any Taiga instance"** Apify actor — the agile-PM sibling of
the Redmine / Bugzilla issue-tracker generic extractors. [Taiga](https://taiga.io)
(kaleidos/taiga) is the open-source agile project-management platform, and every
install ships the same native **JSON REST API**. Its public SaaS host
(`api.taiga.io`) serves ~180k **public** projects readable anonymously via
discover mode — so ONE actor spans every Taiga install that leaves public/discover
read open, no per-project scraper.

### Input

| Field | Mode | Meaning |
|-------|------|---------|
| `baseUrl` | all | A Taiga instance API root. Defaults to `https://api.taiga.io` (the public host — works with no setup). The `/api/v1/...` path is appended for you. |
| `baseUrls` | all | Optional array of instance roots for a multi-instance run. A source that is unreachable / auth-gated / not a Taiga host is skipped with a warning. |
| `mode` | — | `discover` (default), `bySlug`, `stats`, or `discovery`. |
| `slug` | bySlug / stats | The project slug (e.g. `taiga`). Required in `bySlug`; in `stats` it resolves the project id via `by_slug`. |
| `projectId` | stats | A numeric project id to fetch stats for directly (instead of a slug). |
| `orderBy` | discover | Taiga's supported ordering, passed through — e.g. `total_fans`, `total_activity`. |
| `maxRecords` | all | Global cap across every source (one row = one billable event). |
| `token` | all | Optional Taiga auth token for a private instance (`Authorization: Bearer`). Never logged. |
| `extraHeaders` | all | Optional extra request headers (JSON). |

### Modes

* **discover** (default) — paginated `?discover_mode=true` → one flat row per
  public project: `id`, `name`, `slug`, `description`, `createdDate` /
  `modifiedDate`, `isPrivate`, `isFeatured`, `totalFans`, `totalWatchers`,
  `totalActivity` (+ last-week/month), `totalStoryPoints`, `tags`,
  `ownerUsername` / `ownerFullName`, the `is*Activated` module flags, plus a
  lossless `_raw`. Taiga paginates via `page` and the `x-pagination-count`
  response header.
* **bySlug** — `/projects/by_slug?slug=<slug>` → one full project row (same key
  set as discover).
* **stats** — resolve the project id (via `by_slug` from a slug, or a numeric
  `projectId`), then `/projects/{id}/stats` → one agile-metrics row:
  `totalMilestones`, `totalPoints`, `closedPoints`, `definedPoints`,
  `assignedPoints`, `speed`.
* **discovery** — `/api/v1/stats/discover` → one fleet-count summary row
  (`projectsTotal`), plus a single sample project.

### Behaviour

* Every field is read by **key presence** (`dict.get`) — Taiga projects differ in
  which optional fields they populate, so an absent field (`total_fans`,
  `tags_colors`, a `null` `owner`) yields `null` / `[]` for that column, never a
  crash. Unknown fields survive in `_raw`. Tags are unioned from both the `tags`
  array and the `tags_colors` map keys.
* Timestamps (`createdDate` / `modifiedDate`) are normalized to ISO-8601 `Z`
  (millisecond precision dropped to seconds); a bare date is kept as `YYYY-MM-DD`.
  Point / speed metrics are preserved as numbers (a whole-valued float like
  `150.0` is narrowed to `150`).
* A source behind an **anti-bot interstitial** (a non-JSON 200), a `401`
  (Taiga's reply for a missing/private project), a `403`/`404`, or a JSON body
  without a recognizable Taiga project shape is a clean **skip-with-warning** —
  the runner continues with the other sources. The run only **fails fast
  (exit 91)** when *every* source was skipped, so nothing broken ships and the
  cloud smoke gate stays honest.
* A valid instance with 0 public projects → 0 records and a clean exit 0.
  Unpopular is fine; the actor never fabricates rows.

### Pricing

Pay-per-event: one `record` charge per emitted dataset row.

### Development

```bash
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python tests_logic.py          # pure-logic tests (no network)
apify validate-schema
apify run                       # local run (set .actor storage INPUT.json)
````

# Actor input Schema

## `baseUrl` (type: `string`):

The Taiga instance API root. Taiga ships a native JSON REST API and its public SaaS host serves ~180k public projects readable anonymously, so the default works with no setup. Point this at any self-hosted Taiga that leaves public/discover read open (the /api/v1/... path is appended for you). To query several instances at once, use Base URLs (array) instead.

## `baseUrls` (type: `array`):

Optional list of Taiga instance roots to query in turn (overrides / augments the single Taiga instance URL). A source that is unreachable, auth-gated, or not a Taiga host is skipped with a warning and the run continues with the others.

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

What to extract. discover (default): paginate the public-project inventory (?discover\_mode=true) — one row per public project. bySlug: fetch a single project by its slug. stats: per-project agile metrics (milestones, points, speed) for a resolved project. discovery: a fleet-wide public-project count (/stats/discover) plus one sample project.

## `slug` (type: `string`):

The Taiga project slug, e.g. taiga (the project's URL segment). Required in bySlug mode. In stats mode it is resolved to the project id via by\_slug (or provide a numeric Project ID instead). Ignored in discover / discovery modes.

## `projectId` (type: `integer`):

STATS MODE. A numeric Taiga project id to fetch stats for directly, skipping the by\_slug resolution. Provide this OR a Project slug in stats mode.

## `orderBy` (type: `string`):

DISCOVER MODE. Taiga's supported project ordering, passed through to the API — e.g. total\_fans, total\_activity, total\_fans\_last\_week, total\_activity\_last\_week. Leave empty for Taiga's default discover ordering.

## `maxRecords` (type: `integer`):

A GLOBAL cap on the number of rows to emit across ALL sources (each row is one project/stats record and one billable event). Pagination stops as soon as the cap is reached, so a small value is a cheap, deterministic sample of the discover inventory. Leave empty to fetch every matching record — the public host has ~180k projects, so a full discover crawl is very large.

## `token` (type: `string`):

Optional Taiga application/auth token for reading a private instance or private projects (sent as an Authorization: Bearer header). NOT required for the public SaaS host or public projects. Never logged.

## `extraHeaders` (type: `object`):

Optional extra HTTP headers as a JSON object, e.g. {"x-api-key": "..."} for a gated / gateway-fronted instance. Not required for the public host. Header values are never logged.

## Actor input object example

```json
{
  "baseUrl": "https://api.taiga.io",
  "mode": "discover",
  "maxRecords": 100
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "baseUrl": "https://api.taiga.io",
    "maxRecords": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("datamule/taiga-project-extractor").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 = {
    "baseUrl": "https://api.taiga.io",
    "maxRecords": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("datamule/taiga-project-extractor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "baseUrl": "https://api.taiga.io",
  "maxRecords": 100
}' |
apify call datamule/taiga-project-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=datamule/taiga-project-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Taiga Project Extractor",
        "description": "Point at any Taiga instance (open-source agile PM) for one structured row per public project: name, slug, fans, watchers, activity, tags, owner, timestamps. Also fetch a project by slug, per-project agile stats, and fleet counts via the documented REST API.",
        "version": "0.1",
        "x-build-id": "St1Sd1TsUow97J1iQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datamule~taiga-project-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datamule-taiga-project-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/datamule~taiga-project-extractor/runs": {
            "post": {
                "operationId": "runs-sync-datamule-taiga-project-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/datamule~taiga-project-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-datamule-taiga-project-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "baseUrl": {
                        "title": "Taiga instance URL",
                        "type": "string",
                        "description": "The Taiga instance API root. Taiga ships a native JSON REST API and its public SaaS host serves ~180k public projects readable anonymously, so the default works with no setup. Point this at any self-hosted Taiga that leaves public/discover read open (the /api/v1/... path is appended for you). To query several instances at once, use Base URLs (array) instead.",
                        "default": "https://api.taiga.io"
                    },
                    "baseUrls": {
                        "title": "Base URLs (multi-instance, optional)",
                        "type": "array",
                        "description": "Optional list of Taiga instance roots to query in turn (overrides / augments the single Taiga instance URL). A source that is unreachable, auth-gated, or not a Taiga host is skipped with a warning and the run continues with the others.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "discover",
                            "bySlug",
                            "stats",
                            "discovery"
                        ],
                        "type": "string",
                        "description": "What to extract. discover (default): paginate the public-project inventory (?discover_mode=true) — one row per public project. bySlug: fetch a single project by its slug. stats: per-project agile metrics (milestones, points, speed) for a resolved project. discovery: a fleet-wide public-project count (/stats/discover) plus one sample project.",
                        "default": "discover"
                    },
                    "slug": {
                        "title": "Project slug (bySlug / stats modes)",
                        "type": "string",
                        "description": "The Taiga project slug, e.g. taiga (the project's URL segment). Required in bySlug mode. In stats mode it is resolved to the project id via by_slug (or provide a numeric Project ID instead). Ignored in discover / discovery modes."
                    },
                    "projectId": {
                        "title": "Project ID (stats mode)",
                        "minimum": 1,
                        "type": "integer",
                        "description": "STATS MODE. A numeric Taiga project id to fetch stats for directly, skipping the by_slug resolution. Provide this OR a Project slug in stats mode."
                    },
                    "orderBy": {
                        "title": "Order by (discover mode)",
                        "type": "string",
                        "description": "DISCOVER MODE. Taiga's supported project ordering, passed through to the API — e.g. total_fans, total_activity, total_fans_last_week, total_activity_last_week. Leave empty for Taiga's default discover ordering."
                    },
                    "maxRecords": {
                        "title": "Max records (global cap)",
                        "minimum": 1,
                        "type": "integer",
                        "description": "A GLOBAL cap on the number of rows to emit across ALL sources (each row is one project/stats record and one billable event). Pagination stops as soon as the cap is reached, so a small value is a cheap, deterministic sample of the discover inventory. Leave empty to fetch every matching record — the public host has ~180k projects, so a full discover crawl is very large."
                    },
                    "token": {
                        "title": "Taiga auth token",
                        "type": "string",
                        "description": "Optional Taiga application/auth token for reading a private instance or private projects (sent as an Authorization: Bearer header). NOT required for the public SaaS host or public projects. Never logged."
                    },
                    "extraHeaders": {
                        "title": "Extra request headers",
                        "type": "object",
                        "description": "Optional extra HTTP headers as a JSON object, e.g. {\"x-api-key\": \"...\"} for a gated / gateway-fronted instance. Not required for the public host. Header values are never logged."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
