# Linktree Profile Scraper (`rl1987/linktree-scraper`) Actor

Scrape profile info and all links from Linktree (linktr.ee) pages.

- **URL**: https://apify.com/rl1987/linktree-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 page scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Linktree Scraper

**Scrape any [Linktree](https://linktr.ee) profile in seconds.** Drop in a `linktr.ee` username or URL and get clean, structured data back: every **link**, the profile bio, avatar, verification badge, social icons, and any **emails or phone numbers** published on the page. Scrape one creator or thousands in a single run.

Perfect for **lead generation, influencer research, and competitor analysis** — pull the exact URLs, contact details, and link structure behind any Linktree bio link, ready to export to a spreadsheet or push into your CRM.

Built on the **Apify platform**: run it from the web UI with no code, call it from the [API](https://docs.apify.com/api/v2), schedule recurring runs, and export to JSON, CSV, Excel, or Google Sheets.

### What can you do with the Linktree Scraper?

- **Generate leads** — extract emails, phone numbers, and outbound links from creators, brands, and businesses using Linktree.
- **Find and vet influencers** — see every platform and shop a creator promotes, plus whether their profile is verified.
- **Analyze competitors** — map how brands structure their bio links and where they send their traffic.
- **Build datasets at scale** — feed in a list of usernames and collect every profile into one exportable dataset.
- **Monitor changes** — schedule runs to track when a profile adds, removes, or reorders its links.

### How to scrape Linktree

1. Click **Try for free** to open the Actor.
2. In the **Input** tab, paste one or more Linktree profiles — a full URL (`https://linktr.ee/spoilerplusac`) or just the username (`spoilerplusac`).
3. Click **Start**.
4. Watch the run finish, then open the **Output** tab and **download your data** as JSON, CSV, Excel, or HTML.

No coding, proxies, or setup required — it works out of the box.

### How much does it cost to scrape Linktree?

This Actor uses a pay-per-result model: **$0.005 per profile page scraped** — that's **200 profiles for $1**. There's no per-run or subscription fee, and you can try it on the Apify **free tier** at no cost. Because it runs on fast HTTP requests (no heavy browser), runs are quick and cheap even for large lists.

### Input

Give the Actor a list of profiles to scrape.

| Field | Type | Description |
| --- | --- | --- |
| `startUrls` | array | Linktree profile URLs or bare usernames to scrape. |

Example input:

```json
{
    "startUrls": [
        { "url": "https://linktr.ee/spoilerplusac" },
        { "url": "https://linktr.ee/sneakrtweakr" }
    ]
}
```

### Output

Every profile becomes one row in your dataset, downloadable as JSON, CSV, Excel, or HTML. Here's a sample result:

```json
{
    "url": "https://linktr.ee/spoilerplusac",
    "username": "spoilerplusac",
    "pageTitle": "@Manga Spoiler",
    "description": "...",
    "isVerified": true,
    "profilePictureUrl": "https://ugc.production.linktr.ee/....jpeg",
    "country": null,
    "socialLinks": [
        { "type": "SOUNDCLOUD", "url": "https://soundcloud.com/spoilerplusac", "position": 1 }
    ],
    "emails": [],
    "phones": [],
    "linksCount": 9,
    "links": [
        {
            "id": "393748667",
            "title": "Manga Spoiler",
            "url": "https://spoilerplus.ac",
            "type": "CLASSIC",
            "position": 0,
            "thumbnail": "https://ugc.production.linktr.ee/....png",
            "locked": false,
            "metaTitle": "漫画をオンラインで読む",
            "metaDescription": "..."
        }
    ]
}
```

#### What data does the Linktree Scraper extract?

| Field | Description |
| --- | --- |
| `url` | The scraped profile URL. |
| `username` | Linktree handle. |
| `pageTitle` | Display name shown on the profile. |
| `description` | Profile bio / description. |
| `isVerified` | Whether the profile carries a verified badge. |
| `profilePictureUrl` | Avatar image URL. |
| `country` | Profile country, when published. |
| `socialLinks` | Social platform icons (type, URL, position). |
| `emails` | Emails found in the links and bio. |
| `phones` | Phone numbers found in `tel:` / `sms:` links. |
| `linksCount` | Total number of links extracted. |
| `links` | Full ordered list of every link (see below). |

Every entry in `links` includes the `id`, `title`, `url` (**any** type — website, `mailto:`, `tel:`, and more), link `type` (`CLASSIC`, `HEADER`, `GROUP`, `EXTENSION`, …), display `position`, `thumbnail`, `locked` status, and the link's `metaTitle` / `metaDescription` when available. Links nested inside groups are flattened in display order, so **nothing is missed**.

### Tips for the best results

- **Usernames work too** — pass `spoilerplusac` instead of the full URL; both are accepted.
- **Batch your profiles** — put many usernames in one `startUrls` list to scrape them all in a single, cheaper run.
- **Reliable at scale** — profiles that are password-locked or removed are logged and skipped, so one bad profile never breaks the run.
- **Automate it** — use [Schedules](https://docs.apify.com/platform/schedules) to keep your dataset fresh, or the [API](https://docs.apify.com/api/v2) and [integrations](https://docs.apify.com/platform/integrations) to send results straight to Google Sheets, Slack, or your database.

### Frequently asked questions

#### Is scraping Linktree legal?

This Actor collects only data that Linktree publishes **publicly** on profile pages. Web scraping of public data is generally legal, but you are responsible for how you use the results — comply with Linktree's Terms of Service and applicable data-protection laws (such as GDPR and CCPA) when handling personal data like emails and phone numbers.

#### Can I scrape emails and phone numbers from Linktree?

Yes. When a profile exposes an email or phone number (in a `mailto:`/`tel:` link or its bio), it's returned in the `emails` and `phones` fields — ideal for lead generation.

#### Do I need proxies or an account on Linktree?

No. The Actor handles fetching for you and does not require any Linktree login.

#### A profile returned no data — why?

Linktree occasionally changes its page structure, or a profile may be password-protected, age-gated, or deleted. Report persistent issues via the **Issues** tab and they'll be fixed.

### Support and custom solutions

Have a feature request or need a tailored scraper? Open a ticket on the **Issues** tab — feedback and custom-solution requests are welcome.

# Actor input Schema

## `startUrls` (type: `array`):

Linktree profile URLs (or bare usernames) to scrape, e.g. https://linktr.ee/spoilerplusac

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://linktr.ee/spoilerplusac"
    }
  ]
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://linktr.ee/spoilerplusac"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/linktree-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 = { "startUrls": [{ "url": "https://linktr.ee/spoilerplusac" }] }

# Run the Actor and wait for it to finish
run = client.actor("rl1987/linktree-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://linktr.ee/spoilerplusac"
    }
  ]
}' |
apify call rl1987/linktree-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=rl1987/linktree-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hWHdZXBU75SyLjBAU/builds/cuIZfpFfzyEZSssSO/openapi.json
