# Linktree Scraper - Link in Bio Emails, Socials & Links (`aolmo/linktree-contacts`) Actor

Scrape Linktree and other link-in-bio pages by username or URL: every link with its title, social profiles, emails and phones from the contact buttons and description, and optionally the emails on the first linked website. Scheduled runs flag new links and contacts. $0.004 per page.

- **URL**: https://apify.com/aolmo/linktree-contacts.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 page scrapeds

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?

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

Scrape Linktree and other link-in-bio pages. Give usernames or URLs and the Actor returns one row per page with every link and its title, the social profiles, and the emails and phones from the contact buttons and the description. Optionally it also reads the first linked website for more emails. Schedule it and new or removed links and new contacts are flagged. Creator research, influencer outreach and link monitoring at $0.004 per page.

### What you get

**Page** (one row each): `url`, `platform`, `username`, `title`, `description`, `avatar`, `country`, `verified`, `links` (title and URL of every button), `linksCount`, `hasContact`.

**Contacts**: `email` and `phone` (the first found), `emails`, `phones`, `socials`, and where each came from: `ownEmails` and `ownPhones` (the contact buttons and the description), `siteEmails` and `sitePhones` (the linked websites), `websitesCrawled`, `websiteStatus` and `pagesCrawled`.

**Changes** on scheduled runs: `linksAdded`, `linksRemoved` and `newContacts`.

### How to use it

1. Open the **Input** tab.
2. Add **Usernames or URLs**, one per line: `selenagomez`, `https://linktr.ee/selenagomez` or another link-in-bio page such as `https://lnk.bio/name` (up to 500 per run).
3. Turn on **Search linked websites** to also read the first website on the page.
4. Click **Start** and export the rows as JSON, CSV or Excel.

### Input

```json
{
  "profiles": ["selenagomez", "https://linktr.ee/gymshark"],
  "crawlWebsite": false
}
```

### Output

```json
{
  "url": "https://linktr.ee/selenagomez",
  "platform": "linktree",
  "username": "selenagomez",
  "title": "@selenagomez",
  "description": "“In The Dark” & “I Said I Love You First...And You Said It Back” Out Now",
  "country": "US",
  "verified": true,
  "links": [{ "title": "Listen To Te Olvido (La La)", "url": "https://bennyblanco.lnk.to/TeOlvido" }],
  "linksCount": 58,
  "socials": { "instagram": "https://instagram.com/selenagomez", "tiktok": "https://tiktok.com/@selenagomez", "youtube": "https://youtube.com/selenagomez" },
  "emails": [],
  "phones": [],
  "hasContact": false,
  "websiteStatus": "not-crawled",
  "timestamp": "2026-11-04T10:00:00.000Z"
}
```

Example values are illustrative.

### Pricing

Pay per event: **$0.004 per page** and **$0.002 per changed page** on a scheduled run. 1,000 pages cost $4.

### Limits and notes

- Linktree pages are read in full. Other link-in-bio pages are read as a website, which gives emails, phones and socials but not the list of buttons.
- Beacons blocks automated access and is not supported.
- Many creators show only socials and no email; `hasContact` tells which ones have an email or phone.

### Responsible use

The Actor only collects contact details that the profile or business publishes itself. You are responsible for using them lawfully: follow the GDPR, CAN-SPAM and similar rules where you operate, give people a way to opt out, and do not send unsolicited bulk messages.

### Related Actors

- **TikTok Email Scraper**: contacts of TikTok creators, Linktree included.
- **YouTube Channel Email Scraper**: contacts of YouTube creators.
- **Instagram Email & Contact Scraper**: contacts of Instagram profiles.

# Actor input Schema

## `profiles` (type: `array`):

One per line: selenagomez, https://linktr.ee/selenagomez or another link-in-bio page such as https://lnk.bio/name. Up to 500 per run.

## `crawlWebsite` (type: `boolean`):

Also look for emails, phones and socials on the websites and link-in-bio pages the profile links to.

## `maxPagesPerSite` (type: `integer`):

Home page plus the likeliest contact pages.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "profiles": [
    "selenagomez"
  ],
  "crawlWebsite": false,
  "maxPagesPerSite": 2,
  "product": "linktree-contacts"
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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 = {
    "profiles": [
        "selenagomez"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/linktree-contacts").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 = { "profiles": ["selenagomez"] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/linktree-contacts").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 '{
  "profiles": [
    "selenagomez"
  ]
}' |
apify call aolmo/linktree-contacts --silent --output-dataset

```

## MCP server setup

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

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/T6wwUmbm6IF9e8Zc7/builds/yiAN83JjSgT69PLzz/openapi.json
