# Bitbucket Scraper – Public Repos, Languages, Size & Activity (`ninhothedev/bitbucket-scraper`) Actor

$1/1K 🔥 Fast Bitbucket scraper! Public repos — language, size, activity & owner by workspace. No key. JSON, CSV, Excel or API in seconds. Pull thousands of repos for dev intel & market analysis ⚡

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

## Pricing

from $1.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 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

## Bitbucket Repositories Scraper 🪣

**Scrape public Bitbucket repositories at scale — no API key, no login.** Point this Actor at any Bitbucket workspace (or a hand-picked list of repos) and export clean, structured JSON with programming language, size, activity dates, owner, project and repository URL.

Built on the official **Bitbucket REST API 2.0**, so results are fast, reliable, and datacenter-proxy friendly. Perfect for developer intelligence, competitive research, market analysis, and SBOM / supply-chain tooling.

***

### ✨ What you get

For every repository, the scraper returns a flat, ready-to-use record:

| Field | Description |
|-------|-------------|
| `uuid` | Bitbucket repository UUID |
| `name` | Repository display name |
| `full_name` | `workspace/repo` identifier |
| `description` | Repository description (capped at 2000 chars) |
| `language` | Primary programming language |
| `size` | Repository size in bytes |
| `is_private` | Private flag (public repos only are stored) |
| `created_on` | Creation timestamp (ISO 8601) |
| `updated_on` | Last update timestamp (ISO 8601) |
| `main_branch` | Default branch name |
| `owner` | Workspace / owner display name |
| `project` | Bitbucket project name |
| `url` | Public repository URL |
| `scraped_at` | When the record was collected |

***

### 🚀 How to use

1. Pick a **mode**:
   - **Workspace** — list every public repository of a workspace (e.g. `atlassian`).
   - **Specific repositories** — pass a list of `workspace/repo` full names.
2. Set **Maximum items** (default 100, up to 1000).
3. Run the Actor and download results as **JSON, CSV, Excel, or via API**.

#### Example input — workspace mode

```json
{
  "mode": "workspace",
  "workspace": "atlassian",
  "maxItems": 100
}
```

#### Example input — specific repositories

```json
{
  "mode": "repos",
  "repos": ["atlassian/aui", "atlassian/atlassian-plugins"],
  "maxItems": 50
}
```

#### Example output

```json
{
  "uuid": "{3d76c1e2-d4bb-4baf-a957-ad7ba71f88c2}",
  "name": "AUI",
  "full_name": "atlassian/aui",
  "description": "Atlassian User Interface",
  "language": "javascript",
  "size": 153493697,
  "is_private": false,
  "created_on": "2011-10-13T23:35:11.622182+00:00",
  "updated_on": "2026-06-02T03:32:37.130356+00:00",
  "main_branch": "master",
  "owner": "Atlassian",
  "project": "AUI Project",
  "url": "https://bitbucket.org/atlassian/aui",
  "scraped_at": "2026-07-18T10:00:00+00:00"
}
```

***

### 💰 Pricing

This Actor is lightweight and pay-per-usage — roughly **~$1 per 1,000 repositories** scraped, depending on your Apify plan and platform usage. Because it uses Bitbucket's clean JSON API with no proxy requirement, runs are cheap and quick.

***

### 🎯 Use cases

- **Developer intelligence** — map a company's open-source footprint across a workspace.
- **Repository research** — inventory languages, sizes and activity across many repos.
- **Market & competitive analysis** — track what teams build and how active their code is.
- **SBOM / supply-chain** — enumerate dependencies' upstream repos and metadata.

***

### 🆚 Why this scraper

- ✅ **No API key or login** required for public repos.
- ✅ **Clean JSON** straight from Bitbucket API 2.0 — no fragile HTML parsing.
- ✅ **Datacenter-proxy friendly** — low cost, high speed.
- ✅ **Two modes** — bulk workspace listing or targeted repo lookup.
- ✅ **Structured, nullable schema** — every field is safe to consume downstream.

| | Bitbucket Repositories Scraper | Manual API scripts | Generic web scrapers |
|---|:---:|:---:|:---:|
| No key for public repos | ✅ | ✅ | ⚠️ |
| Pagination handled | ✅ | ❌ | ⚠️ |
| Structured export (JSON/CSV/Excel) | ✅ | ❌ | ⚠️ |
| Datacenter-friendly | ✅ | ✅ | ❌ |

***

### 🔗 Related actors

- [GitHub Scraper](https://apify.com/ninhothedev/github-scraper)
- [GitLab Projects Scraper](https://apify.com/ninhothedev/gitlab-projects-scraper)
- [npm Package Scraper](https://apify.com/ninhothedev/npm-package-scraper)
- [Docker Hub Scraper](https://apify.com/ninhothedev/docker-hub-scraper)

***

### 🏷️ Keywords

bitbucket scraper, bitbucket api, repository scraper, git repositories, developer intelligence, source code metadata, workspace repositories, programming language stats, devops data, sbom, code repository export, bitbucket workspace, repo research, market analysis

***

*This Actor scrapes only public data available through Bitbucket's official API. Private repositories are skipped.*

# Actor input Schema

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

Choose 'workspace' to list every public repository of a Bitbucket workspace, or 'repos' to fetch a specific list of 'workspace/repo' full names.

## `workspace` (type: `string`):

The Bitbucket workspace (organization) slug to list public repositories for. Used only in 'workspace' mode.

## `repos` (type: `array`):

A list of 'workspace/repo' full names to fetch. Used only in 'repos' mode. Example: \["atlassian/aui"].

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

Maximum number of repositories to store in the dataset. Capped at 1000.

## Actor input object example

```json
{
  "mode": "workspace",
  "workspace": "atlassian",
  "repos": [
    "atlassian/aui"
  ],
  "maxItems": 100
}
```

# 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 = {
    "workspace": "atlassian",
    "repos": [
        "atlassian/aui"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/bitbucket-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 = {
    "workspace": "atlassian",
    "repos": ["atlassian/aui"],
}

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/bitbucket-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 '{
  "workspace": "atlassian",
  "repos": [
    "atlassian/aui"
  ]
}' |
apify call ninhothedev/bitbucket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/bitbucket-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/2udzk9XM7oLHMPTAj/builds/Rh7Fe8LExQu7zw2dc/openapi.json
