# 🦊 GitLab Scraper — Projects & Repository Data (`nexgendata/gitlab-scraper`) Actor

Extract GitLab project data — stars, forks, issues, merge requests, contributor stats. GitHub Stats, Sourcegraph & OpenHub alternative for dev analytics, OSS intelligence and engineering dashboards. Pay per project, no token needed.

- **URL**: https://apify.com/nexgendata/gitlab-scraper.md
- **Developed by:** [NexGenData](https://apify.com/nexgendata) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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

## 🦊 GitLab Scraper — Projects, Merge Requests & Issues vs GitLab API

Pay-per-result GitLab scraper — extracts full project metadata, stars, forks, commit cadence, merge-request stats, issue counts, and CI/CD pipeline history from public GitLab.com and self-hosted GitLab instances. Built for OSS scouts, dev-tool competitive intel, and procurement researchers as a no-token-rotation **alternative to** the official GitLab REST API (10 req/sec authenticated), GraphQL API (point-budget), Sourcegraph Cloud ($299-1000+/mo), and SaaS aggregators like LinearB ($25-79/user/mo) and Velocity by Code Climate ($499+/mo).

### Why GitLab Scraper Beats the GitLab API, Sourcegraph & LinearB

| Feature | NexGenData GitLab Scraper | GitLab official API | Sourcegraph Cloud | LinearB |
|---|---|---|---|---|
| Cost | $0.002 / project, pay-per-result | Free + rate-limited | $299-1000+ / month | $25-79 / user / month |
| Rate limit | None for end user | 10 req/sec authenticated | Plan-dependent | Plan-dependent |
| Self-hosted GitLab support | Yes — set instance URL | Yes (with PAT) | Yes (with PAT) | Yes (with PAT) |
| Auth | Apify token + optional GitLab PAT | GitLab PAT required for most ops | Account + PAT | Account + PAT |
| Bulk export | Direct dataset → JSON/CSV/Excel | Per-call REST + pagination | UI + limited API | API |
| Cross-org / cross-instance scan | Yes | No (instance-scoped) | Yes | Yes |
| Free trial | Free Apify credits | Free for low volume | 30-day trial | 30-day trial |

OSS scouts, devtool marketers, and procurement researchers pick this actor **instead of** building their own GitLab PAT-rotation rig because at >2000 projects the official API's per-second cap forces multi-hour scans. It is a **drop-in alternative to** Sourcegraph Cloud for "I just need GitLab project metadata for my BI tool" — the bare data without the UI overhead.

### What You Get Per Project

Each dataset item is a flat JSON record:

- `id`, `namespace`, `path`, `web_url`, `description`
- `stars`, `forks`, `open_issues`, `closed_issues`, `open_mrs`, `merged_mrs`
- `primary_language`, `language_breakdown`
- `topics`, `license`, `default_branch`, `visibility`
- `created_at`, `last_activity_at`, `last_release_at`
- `commits_last_90d`, `unique_committers_last_90d`
- `top_committers` — array of `{username, name, commits}`
- `merge_request_stats` — average lead time, throughput, review latency
- `pipeline_success_rate_90d`, `last_pipeline_status`
- `readme_text`, `archived`, `mirror`, `forked_from`

### Use Cases

- **OSS scouts** — find growing GitLab-hosted projects that don't show up on GitHub trending
- **Devtool marketers** — discover teams running self-hosted GitLab for outbound targeting
- **DevOps procurement** — benchmark a target company's CI velocity before pitching them
- **Migration consultancies** — quantify the scope of a GitLab → GitHub migration RFP
- **Open-source maintainers** — track fork activity and downstream contributions across instances
- **Investor diligence** — verify "X projects on GitLab" claims with raw data
- **Internal-platform teams** — audit your own org's GitLab health across thousands of repos

### Quick Start

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nexgendata/gitlab-scraper").call(run_input={
    "instance": "https://gitlab.com",
    "search": "kubernetes",
    "minStars": 10,
    "maxResults": 1000,
    "includeMergeRequestStats": True
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["path"], item["stars"], item["commits_last_90d"])
````

### Pricing

Pay-per-event — no PAT-rotation rig required, no monthly minimum.

- **Actor Start:** $0.0001
- **Per project:** $0.002

A 1000-project search costs about $2. Equivalent GitLab-API rate-respecting scan takes 2+ hours of PAT juggling.

### Related NexGenData Actors

| Use case | Actor |
|----------|-------|
| GitHub repos + stars + contributors | [GitHub Scraper](https://apify.com/nexgendata/github-scraper?fpr=2ayu9b) |
| Daily / weekly trending repos | [GitHub Trending Scraper](https://apify.com/nexgendata/github-trending-scraper?fpr=2ayu9b) |
| Deep stargazer-history analytics | [GitHub Repo Stats](https://apify.com/nexgendata/github-repo-stats?fpr=2ayu9b) |
| Docker Hub image pull counts | [Docker Hub Scraper](https://apify.com/nexgendata/dockerhub-scraper?fpr=2ayu9b) |
| Dev.to articles & dev audience | [Dev.to Scraper](https://apify.com/nexgendata/devto-scraper?fpr=2ayu9b) |
| Developer tools MCP server | [Developer Tools MCP Server](https://apify.com/nexgendata/developer-tools-mcp-server?fpr=2ayu9b) |
| Company tech-stack detector | [Company Tech Stack Detector](https://apify.com/nexgendata/company-tech-stack-detector?fpr=2ayu9b) |
| StackOverflow Q\&A trends | [StackOverflow Questions](https://apify.com/nexgendata/stackoverflow-questions?fpr=2ayu9b) |

### FAQ

**Q: Does this work with self-hosted GitLab?**
Yes — set `instance: "https://gitlab.yourcompany.com"` and supply a PAT in `gitlabToken`. The actor uses the same API surface across self-hosted and gitlab.com.

**Q: Does this need a GitLab PAT?**
Only for self-hosted, private projects, or higher request volumes. Public gitlab.com searches work without one.

**Q: How does this compare to the GitLab GraphQL API?**
GraphQL gives you per-call efficiency but ties you to a point budget. This actor flattens the data, runs the multi-call dance for you, and returns one row per project.

**Q: Can I get pipeline history?**
Yes — `includePipelineHistory: true` adds the last 90 days of pipeline runs per project.

**Q: Schema stability?**
Field names are versioned per actor release. We track GitLab major API versions.

**Q: What about merge-request review-latency metrics?**
`merge_request_stats` includes `avg_lead_time_hours`, `avg_review_latency_hours`, and `throughput_per_week`. These are computed from the public MR events stream.

### About NexGenData

NexGenData publishes 260+ buyer-intent actors covering SEC filings, YC alumni, lead generation, competitive intelligence, stock fundamentals across 30+ exchanges, and more. All pay-per-result. Browse the full catalog at https://apify.com/nexgendata?fpr=2ayu9b

***

### How NexGenData Pricing Works

Every NexGenData actor uses **pay-per-event** pricing — you only pay for results that actually land in your dataset. No monthly minimum, no seat fees, no surprise overage bills.

- **Actor Start:** a single-event charge each time you spin the actor up (scaled to memory size)
- **Result / item:** charged per item written to the default dataset
- **No charge** for retries, internal proxy rotation, or failed sub-requests — those are absorbed by the platform

### Apify Platform Bonus

New to Apify? Sign up with the NexGenData [referral link](https://www.apify.com/?fpr=2ayu9b) — you get free platform credits on signup (enough for several thousand free results) and you help fund the maintenance of this actor fleet.

### Integration Surface

Every actor in the NexGenData catalog can be triggered from:

- **Apify console** — point-and-click run
- **Apify API** — REST + webhooks
- **Apify Python / JS SDKs** — programmatic batch
- **Zapier, Make.com, n8n** — official integrations
- **MCP** — many actors are exposed as MCP tools for Claude / ChatGPT / Cursor agents
- **Schedules** — built-in cron for daily / weekly / monthly runs
- **Webhooks** — POST results to any HTTPS endpoint on dataset write

### Support

NexGenData maintains 260+ Apify actors and ships updates regularly. Bug reports via the Apify console issues tab get a response within 24 hours. Roadmap requests are welcome — high-demand features ship in the next version.

Home: [thenextgennexus.com](https://thenextgennexus.com)
Full catalog: [apify.com/nexgendata](https://apify.com/nexgendata?fpr=2ayu9b)

# Actor input Schema

## `searchQuery` (type: `string`):

Repository name or keyword to search for

## `projectPath` (type: `string`):

Exact project path (e.g., gitlab-org/gitlab)

## `maxResults` (type: `integer`):

Maximum number of projects to extract

## `includeReadme` (type: `boolean`):

Include README content

## Actor input object example

```json
{
  "maxResults": 10,
  "includeReadme": false
}
```

# Actor output Schema

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgendata/gitlab-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("nexgendata/gitlab-scraper").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 '{}' |
apify call nexgendata/gitlab-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🦊 GitLab Scraper — Projects & Repository Data",
        "description": "Extract GitLab project data — stars, forks, issues, merge requests, contributor stats. GitHub Stats, Sourcegraph & OpenHub alternative for dev analytics, OSS intelligence and engineering dashboards. Pay per project, no token needed.",
        "version": "0.0",
        "x-build-id": "aFTin7jiTj7mbv0LF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/nexgendata~gitlab-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-nexgendata-gitlab-scraper",
                "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/nexgendata~gitlab-scraper/runs": {
            "post": {
                "operationId": "runs-sync-nexgendata-gitlab-scraper",
                "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/nexgendata~gitlab-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-nexgendata-gitlab-scraper",
                "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": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Repository name or keyword to search for"
                    },
                    "projectPath": {
                        "title": "Project Path",
                        "type": "string",
                        "description": "Exact project path (e.g., gitlab-org/gitlab)"
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of projects to extract",
                        "default": 10
                    },
                    "includeReadme": {
                        "title": "Include README",
                        "type": "boolean",
                        "description": "Include README content",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
