# Bitbucket Email and Phone Number Scraper (`maximedupre/bitbucket`) Actor

Find public emails and phone numbers on Bitbucket accounts, workspaces, and their pages from keywords. Each row has the contact, the account and person or team name, the page link, and the text near the contact. Filter by location, email domain, or phone country.

- **URL**: https://apify.com/maximedupre/bitbucket.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 contacts

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

## 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

### 📇 Find public contacts behind Bitbucket accounts and pages

This Bitbucket Email and Phone Number Scraper helps recruiters, sales teams, and developer advocates reach people who build software on Bitbucket. You enter keywords, such as a technology or a job title. The Actor finds public Bitbucket accounts, workspaces, and their pages, and saves each public email or phone number it finds there. You do not need known URLs. Each row tells you who published the contact and where you can check it.

- Build a list of Python or DevOps developers who publish their email on Bitbucket.
- Find the people behind a Bitbucket workspace for a technology you sell to.
- Collect only company or Gmail addresses with the email domain filter.
- Get phone numbers from Bitbucket-hosted business sites, filtered to the countries you serve.
- Focus a search on one city or country with the location option.

#### 🔎 What contact data you get from Bitbucket

Each dataset row holds one unique contact:

- A public **email** from a README, a description, a page, a `mailto:` link, or a public commit author, **or** a public **phone number** in international and national format with its country.
- The Bitbucket **account or workspace name** and the **person or team name**.
- The **link to the Bitbucket page** where the contact was found, and the **text near the contact** on that page.
- The **keyword** that found the contact first.

A contact found by several keywords is saved only once.

#### 🚀 How to collect Bitbucket emails and phone numbers

1. Add one or more keywords, such as `python developer` or `dentist`.
2. Set how many unique contacts you want, or leave it empty to collect all that the search can find.
3. Optionally add a location, email domains, or phone countries.
4. Start the run and download the contacts as JSON, CSV, Excel, or another format.

#### ⚙️ Input

**Input fields**

| Field | Type | What it does |
| --- | --- | --- |
| `keywords` | array of strings | Required. Words to search Bitbucket for, such as a technology, job title, or niche. Each keyword runs its own search. The form is prefilled with `python developer`. |
| `maxItems` | integer | How many unique contacts to collect. Leave it empty or set `0` to collect all contacts the search can find. The form is prefilled with `20`, but there is no schema default. |
| `location` | string | Only find accounts linked to this place, such as a city or country. Leave it empty to search everywhere. |
| `emailDomains` | array of strings | Only collect emails from these domains, such as `gmail.com` or a company domain. Leave it empty to collect emails from every domain. |
| `phoneCountries` | array of strings | Only collect phone numbers from these countries, as two-letter codes such as `US` or `DE`. Leave it empty to collect phone numbers from every country. |

**Example input**

```json
{
  "keywords": [
    "python developer"
  ],
  "maxItems": 20
}
```

#### 🧾 Output

**Output fields**

Every row has an email or a phone number. The two row types share the other fields.

**Email row**

| Field | Type | What it does |
| --- | --- | --- |
| `email` | string | The public email address found on the Bitbucket page. |
| `accountName` | string | The Bitbucket account or workspace name. Its page is at `bitbucket.org/` followed by this name. |
| `displayName` | string | The name of the person or team shown on the account or workspace, when known. |
| `sourceUrl` | string | Link to the Bitbucket page where the email was found. |
| `contextText` | string | The public text near the email on that page. |
| `keyword` | string | The keyword you entered that found this contact first. |

**Example email row**

```json
{
  "email": "zoltan.szabo.m@protonmail.com",
  "accountName": "szzoli",
  "displayName": "Zoltán Szabó",
  "sourceUrl": "https://bitbucket.org/szzoli/ite-in-python/commits/44a8f15e2dc9a7f55d2153b32121950c7092fb33",
  "contextText": "Zoltan Szabo <zoltan.szabo.m@protonmail.com>",
  "keyword": "python developer"
}
```

**Phone row**

| Field | Type | What it does |
| --- | --- | --- |
| `phone.international` | string | The phone number in international format, with the country code. |
| `phone.national` | string | The phone number in the format used inside its country. |
| `phone.country` | string | The two-letter code of the country the number belongs to. |
| `accountName` | string | The Bitbucket account or workspace name. |
| `displayName` | string | The name of the person or team shown on the account or workspace, when known. |
| `sourceUrl` | string | Link to the Bitbucket page where the phone number was found. |
| `contextText` | string | The public text near the phone number on that page. |
| `keyword` | string | The keyword you entered that found this contact first. |

**Example phone row**

```json
{
  "phone": {
    "international": "+1 973 755 3215",
    "national": "(973) 755-3215",
    "country": "US"
  },
  "accountName": "denta6",
  "displayName": "denta6",
  "sourceUrl": "https://denta6.bitbucket.io/",
  "contextText": "Call now : +1 973-755-3215",
  "keyword": "dental clinic"
}
```

#### 💳 Pricing

The Actor uses pay-per-event pricing. You pay for each **Contact** event: one unique public email or phone number saved to your dataset. The price per contact depends on your Apify plan and is shown on the Pricing tab. A run that finds no contacts saves no rows, so it has no Contact charges. When your run reaches its spending limit, the Actor stops starting new work.

#### 🔌 Integrations

You can run this Actor from the Apify API, on a schedule, or from tools like Make, Zapier, n8n, and Google Sheets through Apify integrations. Send new contacts to your CRM or a spreadsheet after each run.

https://www.youtube.com/watch?v=bNACk1_S_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Does it read private Bitbucket repositories?

No. It reads only public Bitbucket accounts, workspaces, repositories, and `bitbucket.io` sites. Private content is skipped.

##### Where do the emails come from?

From public README files, descriptions, page text, `mailto:` links, and public commit authors. Each row links to the exact page, so you can check it.

##### Does it return contacts from other websites?

No. Every contact comes from a Bitbucket account, workspace, or one of their pages.

##### Which emails are left out?

No-reply addresses, Bitbucket bot addresses, reserved example domains such as `example.com`, and git remote strings such as `git@bitbucket.org:team/repo.git`. Other public addresses are kept as published.

##### Why are some phone numbers missing?

The Actor keeps only phone numbers written in international format or as `tel:` links, so it can know their country. Local numbers without a country code are skipped.

##### What happens if several keywords find the same contact?

The contact is saved once. The `keyword` field shows the keyword that found it first.

##### Is Bitbucket the same as Git, and how does it compare to GitHub or GitLab?

Bitbucket is an Atlassian service that hosts Git repositories, like GitHub and GitLab. This Actor collects contacts from Bitbucket only. For GitHub contributors, see the related Actors below.

### 📝 Changelog

**v0.0** (03-11-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~bitbucket/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [GitHub Contributors Email Scraper](https://apify.com/maximedupre/github-contributors): find contributor emails in public GitHub repositories and organizations.
- [Website Email & Contact Scraper](https://apify.com/maximedupre/website-emails-scraper): get public emails and phones from company websites you already know.
- [SMTP Email Verifier](https://apify.com/maximedupre/smtp-email-verifier): check which found emails can receive mail before outreach.
- [Phone Number Validation API](https://apify.com/maximedupre/phone-number-validation): check found phone numbers and get line type and time zone.
- [Bitbucket Email and Phone Number Scraper by neuro-scraper](https://apify.com/neuro-scraper/bitbucket-email-and-phone-number-scraper): another option for Bitbucket email and phone leads.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

## `keywords` (type: `array`):

Words to search Bitbucket for, such as a technology, job title, or niche. Add one keyword per line.

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

How many unique contacts to collect. Leave empty or set 0 to collect all contacts the search can find.

## `location` (type: `string`):

Only find accounts linked to this place, such as a city or country. Leave empty to search everywhere.

## `emailDomains` (type: `array`):

Only collect emails from these domains, such as gmail.com or a company domain. Add one domain per line. Leave empty to collect emails from every domain.

## `phoneCountries` (type: `array`):

Only collect phone numbers from these countries. Enter two-letter country codes, such as US or DE, one per line. Leave empty to collect phone numbers from every country.

## Actor input object example

```json
{
  "keywords": [
    "python developer",
    "devops"
  ],
  "maxItems": 100,
  "location": "Berlin",
  "emailDomains": [
    "gmail.com"
  ],
  "phoneCountries": [
    "US",
    "GB"
  ]
}
```

# Actor output Schema

## `contacts` (type: `string`):

Open the table of public emails and phone numbers found on Bitbucket.

# 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 = {
    "keywords": [
        "python developer"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/bitbucket").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 = {
    "keywords": ["python developer"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/bitbucket").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 '{
  "keywords": [
    "python developer"
  ],
  "maxItems": 20
}' |
apify call maximedupre/bitbucket --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maximedupre/bitbucket"
        }
    }
}
```

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/UakRYC4kXWZVN3azA/builds/biiXtKdN9zkR0V2J6/openapi.json
