# 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Linktree Profile Scraper",
        "description": "Scrape profile info and all links from Linktree (linktr.ee) pages.",
        "version": "0.0",
        "x-build-id": "cuIZfpFfzyEZSssSO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/rl1987~linktree-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-rl1987-linktree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/rl1987~linktree-scraper/runs": {
            "post": {
                "operationId": "runs-sync-rl1987-linktree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/rl1987~linktree-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-rl1987-linktree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Linktree profiles",
                        "type": "array",
                        "description": "Linktree profile URLs (or bare usernames) to scrape, e.g. https://linktr.ee/spoilerplusac",
                        "default": [
                            {
                                "url": "https://linktr.ee/spoilerplusac"
                            }
                        ],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
