# Gitlab Scraper | Fast & Reliable | $2 / 1k (`fatihtahta/gitlab-scraper`) Actor

Turn GitLab into a clean dataset. Scrape public projects and user profiles with rich metadata: names, namespaces, descriptions, topics, stars, forks, visibility and activity timestamps. Great for tech research, competitor tracking, lead lists and spotting fast-moving projects.

- **URL**: https://apify.com/fatihtahta/gitlab-scraper.md
- **Developed by:** [Fatih Tahta](https://apify.com/fatihtahta) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Stats:** 5 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.99 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 | Fast & Reliable | $2 / 1k

### Overview

**Gitlab Scraper | Fast & Reliable | $2 / 1k** captures structured, public data from [gitlab.com](https://gitlab.com) including projects and user profiles. GitLab hosts millions of repositories, contributors, and discussions, making it a rich source for tracking technologies, communities, and product ecosystems. This actor automates collection with dependable runs so you can focus on analysis instead of manual browsing.

### Why Use This Actor

- **Market and competitive research:** Map projects, contributors, and activity around specific technologies or vendors.
- **Lead and outreach lists:** Identify active maintainers, organizations, and repositories relevant to your campaigns.
- **Product and trend monitoring:** Follow repositories by language, license, or topics to spot momentum and adoption patterns.
- **Directory building:** Assemble curated lists of projects or profiles with consistent metadata for enrichment or audits.
- **Time savings and reliability:** Schedule recurring runs and keep datasets fresh without manual exports or copy-paste work.

### Input Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `searchQueries` | array of strings | Keywords to search on GitLab. Each entry runs separately. | — |
| `searchUrls` | array of strings | Full GitLab search URLs (e.g., `https://gitlab.com/search?scope=projects&search=vscode`). The actor extracts the search term and scope automatically. | — |
| `searchMode` | string (`projects` | `users` | `projects_and_users`) | Choose which GitLab entities to fetch for each query. Select projects only, users only, or let the actor honor scopes from search URLs. | — |
| `projectLanguage` | string | Optional language filter for project searches (e.g., `typescript`). | — |
| `projectArchived` | boolean | Include archived repositories when enabled. | — |
| `projectMinStars` | integer | Minimum star count to include a project. | — |
| `projectMinForks` | integer | Minimum fork count to include a project. | — |
| `projectLicense` | string | License filter for projects (e.g., `apache-2.0`). | — |
| `projectTopics` | array of strings | Topics to require on projects (e.g., `security`, `cli`). | — |
| `projectOwner` | string | Owner namespace to target (e.g., `gitlab-org`). | — |
| `projectFilterTokens` | string | Additional GitLab search tokens to append to project queries (e.g., `stars:>50 archived:false`). | — |
| `maxResults` | integer | Maximum combined project and user records to save across all queries. | `50000` |

### Example Input

```json
{
  "searchQueries": ["machine learning", "security research"],
  "searchMode": "projects_and_users",
  "projectLanguage": "typescript",
  "projectMinStars": 50,
  "projectLicense": "apache-2.0",
  "maxResults": 5000
}
```

### Example Output

Each dataset item is structured for straightforward analysis or enrichment.

```json
{
  "type": "project",
  "name": "heritage_site_HackJaipur_hackathon",
  "nameWithNamespace": "Manjot Singh / heritage_site_HackJaipur_hackathon",
  "pathWithNamespace": "manjotsinghbagha/heritage_site_HackJaipur_hackathon",
  "webUrl": "https://gitlab.com/manjotsinghbagha/heritage_site_HackJaipur_hackathon",
  "description": "Hack-Jaipur hackathon project to build and e commerce site with the help Autho, Machine learning, 3D models,  Django, Python, Html, CSS, javascript",
  "avatarUrl": null,
  "topics": [],
  "starCount": 0,
  "forksCount": 0,
  "visibility": "public",
  "archived": null,
  "createdAt": "2025-12-18T19:18:04.039Z",
  "lastActivityAt": "2025-12-18T19:18:03.925Z",
  "namespace": {
    "name": "Manjot Singh",
    "fullPath": "manjotsinghbagha"
  }
}
```

- `type` — Indicates whether the item is a project or user entry.
- `name`, `nameWithNamespace`, `pathWithNamespace` — Project identifiers and paths for linking and indexing.
- `webUrl` — Direct link to the project page.
- `description`, `topics`, `visibility`, `archived` — High-level project details and status.
- `starCount`, `forksCount` — Popularity and community engagement signals.
- `createdAt`, `lastActivityAt` — Timestamps for project creation and latest activity.
- `namespace` — Owner or organization information.

### Notes & Limitations

- Use this actor responsibly and in accordance with GitLab’s terms of service and applicable laws.
- Public data can include personal information; ensure you have a lawful basis to store or process it.
- Start with modest result limits when exploring new filters, then scale once you confirm the scope.

### Support

Questions or custom needs? Open an issue on the **Issues** tab of the actor page in Apify Console and it will be resolved around the clock.

Happy Scraping,

- Fatih

# Actor input Schema

## `searchQueries` (type: `array`):

Each query runs separately through the GitLab API.

## `searchMode` (type: `string`):

Pick the target entity type for each query. For example, choose "projects" to capture repositories only, "users" to focus on profiles, or keep "projects\_and\_users" to let the actor honor scopes from GitLab search URLs automatically.

## `projectLanguage` (type: `string`):

Add a GitLab language filter to project searches. The actor converts entries like "typescript" into language:TypeScript automatically.

## `projectArchived` (type: `boolean`):

Toggle whether archived repositories should appear in results. Enable when you want historical codebases such as sunsetted internal tools.

## `projectMinStars` (type: `integer`):

Set a popularity threshold for repositories. Accepts whole numbers like 100 to return only projects with at least that many stars.

## `projectMinForks` (type: `integer`):

Filter by community engagement using fork counts. Enter numbers such as 25 to capture only repositories with that many forks or more.

## `projectLicense` (type: `string`):

Adds license value to project searches (e.g. mit, apache-2.0).

## `projectTopics` (type: `array`):

Adds topic:<value> for each entry.

## `projectOwner` (type: `string`):

Adds owner's namespace  to project searches.

## `projectFilterTokens` (type: `string`):

Extra GitLab search tokens appended to project queries, e.g. stars:>50 archived:false. Combines with the language filter.

## `searchUrls` (type: `array`):

Full GitLab search URLs (e.g. https://gitlab.com/search?scope=projects\&search=vscode). The actor extracts the search term and scope to build API payloads automatically.

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

Cap the total number of combined project and user entries the actor saves. For example, set 500 to stop once that many items are collected across all queries.

## Actor input object example

```json
{
  "searchQueries": [
    "representation learning systems"
  ],
  "maxResults": 50000
}
```

# 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 = {
    "searchQueries": [
        "representation learning systems"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihtahta/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 = { "searchQueries": ["representation learning systems"] }

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/gitlab-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 '{
  "searchQueries": [
    "representation learning systems"
  ]
}' |
apify call fatihtahta/gitlab-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fatihtahta/gitlab-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/eRpYPuDxpC2sBUq6t/builds/lYQ9Arce92rV8yWZf/openapi.json
