# Bitbucket Repositories Scraper (`bigibyte/bitbucket-repositories-scraper`) Actor

Collect public Bitbucket workspace repositories into clean JSON, CSV, or Excel datasets. Ideal for project inventory, monitoring, research, and dashboards without manual UI work

- **URL**: https://apify.com/bigibyte/bitbucket-repositories-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

## Bitbucket Repositories Scraper

![Bitbucket Repositories Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/bitbucket-repositories-scraper-cover.png)

The **Bitbucket Repositories Scraper** collects publicly available repositories from any Bitbucket Cloud workspace and organizes them into structured dataset records. Gather repository names, descriptions, programming languages, visibility information, and project links for development research, workspace monitoring, and data analysis. Export your results as JSON, CSV, or Excel.

### What This Actor Does

This actor retrieves public repository information for a specified Bitbucket workspace and automatically processes the available pages until it reaches your configured collection limit or the last page.

Each repository is converted into a structured record containing its name, slug, description, programming language, visibility status, repository URL, and other available metadata.

### Input Configuration

Provide a Bitbucket workspace slug to start collecting its public repositories.

#### Input Example

```json
{
  "mode": "list",
  "workspaceSlug": "atlassian",
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `list` | Collection mode. Currently supports `list`. |
| `workspaceSlug` | String | Required | Bitbucket workspace slug whose public repositories you want to collect. |
| `maxItems` | Integer | 100 | Maximum number of repository records to collect. The hard maximum is 1,000. |
| `requestDelayMs` | Integer | `1000` | Delay between requests in milliseconds. |

### What Data Does This Actor Extract?

The actor collects repository metadata and organizes it into structured dataset records.

#### Extracted Data Fields

| Field | Type | Description |
|---|---|---|
| `repoType` | String | Repository resource type. |
| `fullName` | String | Full repository name, including the workspace slug. |
| `name` | String | Repository display name. |
| `slug` | String | Repository slug. |
| `repoDescription` | String | Repository description, when available. |
| `scm` | String | Source control management type. |
| `website` | String / Null | Website associated with the repository, when available. |
| `isPrivate` | Boolean | Indicates whether the repository is private. |
| `language` | String / Null | Programming language associated with the repository, when available. |
| `uuid` | String | Unique repository identifier. |
| `htmlUrl` | String | Repository page URL. |
| `scrapedAt` | String | Collection timestamp in ISO 8601 format. |

Additional fields such as `updatedOn` may also appear in the dataset overview when available.

#### Output Example

```json
{
  "repoType": "repository",
  "fullName": "atlassian/atlassian-event",
  "name": "Atlassian Event",
  "slug": "atlassian-event",
  "repoDescription": "",
  "scm": "git",
  "website": null,
  "isPrivate": false,
  "language": null,
  "uuid": "{3d76c1e2-d4bb-4baf-a957-ad7ba71f88c2}",
  "htmlUrl": "https://bitbucket.org/atlassian/atlassian-event",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Workspace Inventory:** Build a structured list of publicly available repositories belonging to a Bitbucket workspace.
- **Developer Research:** Explore public projects, repository names, programming languages, and descriptions.
- **Repository Monitoring:** Schedule recurring collections to track changes in a workspace's public repository listings.
- **Data Analysis:** Export repository metadata into spreadsheets and analytical tools.
- **Research Datasets:** Create reusable datasets of public Bitbucket repositories for software development research.
- **BI Dashboards:** Use structured repository records to build dashboards and monitor public project information.

### Usage and Limits

- The actor currently supports the `list` collection mode.
- A valid Bitbucket workspace slug is required.
- The maximum collection limit is 1,000 repository records per run.
- Automatic pagination continues until the configured limit is reached or no additional results are available.
- Duplicate repositories are identified using their UUID or full name.
- The default request delay is approximately one second.
- Anonymous Bitbucket Cloud traffic may be subject to rate limits. Some resources may have limits around 60 requests per hour per IP, but actual limits can vary.
- Keep collection volumes reasonable and review Bitbucket's current terms and usage guidelines before running large or frequent collections.

### Frequently Asked Questions

**1. What is the Bitbucket Repositories Scraper used for?**

It collects public repository information from Bitbucket Cloud workspaces, making it easier to organize, analyze, and export repository metadata.

**2. Which workspaces can I collect data from?**

You can provide a Bitbucket workspace slug, such as `atlassian`, to retrieve its publicly available repositories.

**3. What information does the actor collect?**

It collects repository names, slugs, descriptions, programming languages, visibility status, unique identifiers, repository URLs, and other available metadata.

**4. How many repositories can I collect in one run?**

You can collect up to 1,000 records per run. The actor automatically paginates through the available results until it reaches the configured limit or the last available page.

**5. Can I export the collected data?**

Yes. Apify supports exporting the resulting dataset in JSON, CSV, Excel, and other available formats.

**6. Can I schedule automatic collections?**

Yes. You can configure Apify Schedules to run the actor periodically and refresh your repository dataset.

### Related Tools

Explore other BigiByte tools for collecting and analyzing software-related information:

- **GitHub-related Repository Research Tools** – Explore repository information and public software projects across development platforms.
- **GNOME Shell Extensions Scraper** – Collect public extension information from the GNOME Extensions directory.
- **Microsoft Store Apps Scraper** – Collect application details and metadata from the Microsoft Store.
- **Activepieces Integrations (Pieces) Scraper** – Explore available integrations, actions, and triggers from the Activepieces catalog.

BigiByte builds custom web scrapers, data extraction tools, and automation solutions tailored to your business and research requirements.

Visit [BigiByte](https://bigibyte.com) to explore our services or discuss your next project.

### Trademark Notice

Bitbucket and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the source of the collected information and does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

This actor is an independent data collection tool, endorsed by, or sponsored by Bitbucket or its owners. It collects publicly available repository information for research and analytical purposes. Users are responsible for complying with applicable laws, platform terms, and relevant licensing or attribution requirements when using the collected data.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal data:** If collected information contains personal data, privacy laws such as GDPR and CCPA may apply. Use an appropriate lawful basis and avoid collecting unnecessary information.
- **Copyrighted content:** Repository descriptions, documentation, images, and other creative materials may be protected by copyright. Respect applicable licences and attribution requirements.
- **Platform terms and rate limits:** Follow Bitbucket's terms of use and reasonable request limits. Avoid excessive requests that could disrupt the service.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to fetch. List returns public repositories for a Bitbucket workspace.

## `workspaceSlug` (type: `string`):

Bitbucket workspace slug whose public repositories to list (for example atlassian).

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

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

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

Milliseconds to wait before each request. Raise if you see 429 responses.

## `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": "list",
  "workspaceSlug": "atlassian",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "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 = {
    "workspaceSlug": "atlassian"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/bitbucket-repositories-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 = { "workspaceSlug": "atlassian" }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/bitbucket-repositories-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 '{
  "workspaceSlug": "atlassian"
}' |
apify call bigibyte/bitbucket-repositories-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/bitbucket-repositories-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/RSgPqO6Cr6dVVIy2P/builds/5ORnmEPKM6IlLLAPk/openapi.json
