# Linktree Profile Details Scraper (`muhammadafzal/linktree-profile-details-scraper`) Actor

Extract public Linktree profile bios, avatars, outbound URLs, and social links for creator research and link audits.

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

## Pricing

from $1.60 / 1,000 linktree profile records

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

## Linktree Profile Details Scraper

Extract public Linktree profile details, outbound links, and social links from usernames or profile URLs. Each profile becomes one dataset item, useful for creator research, link audits, and public profile monitoring.

### Extracted fields

| Field | Meaning |
| --- | --- |
| `username`, `profileUrl` | Public profile identity and URL |
| `title`, `description`, `avatarUrl` | Display title, biography, and avatar |
| `isVerified`, `createdAt`, `updatedAt` | Public account metadata when available |
| `links` | Ungated outbound links with title, URL, type, position, and thumbnail |
| `socialLinks` | Platform name and public social URL |
| `linkCount`, `socialLinkCount`, `fetchedAt` | Counts and extraction time |

The Actor uses public profile HTML and its embedded page data. It does not sign in, access gated content, open destination links, or collect private analytics. Some embedded widgets do not expose a conventional outbound URL; those are omitted from `links`.

### Input

```json
{
  "profiles": ["TryThisForExample", "https://linktr.ee/dua.lipa"],
  "maxProfiles": 25,
  "maxLinksPerProfile": 100,
  "maxRequestRetries": 2
}
```

`profiles` accepts 1–100 usernames or Linktree profile URLs. Repeated usernames are fetched once. `maxProfiles` caps records at 1–100; `maxLinksPerProfile` caps nested outbound links at 1–200. Verified free-plan runs deliver at most five profiles. Invalid inputs are rejected before requests.

For API or MCP callers, send the same JSON object as the Actor input. The default input targets one public example profile and normally completes in under five minutes.

### Output

The default dataset contains one record per public profile. `SUMMARY` in the default key-value store reports `data`, `partial`, `empty`, `blocked`, or `rejected`, with counts and warnings. A missing profile produces no fabricated dataset item. A blocked or changed page is recorded as a warning, and valid profiles already fetched are preserved.

```json
{
  "username": "TryThisForExample",
  "profileUrl": "https://linktr.ee/TryThisForExample",
  "title": "Example",
  "description": "Music and art",
  "avatarUrl": "https://ugc.production.linktr.ee/example.jpeg",
  "isVerified": false,
  "createdAt": "2024-03-13T18:47:31.000Z",
  "updatedAt": null,
  "links": [{"title":"Official website","url":"https://example.com/","type":"CLASSIC","position":0,"thumbnailUrl":null}],
  "socialLinks": [{"platform":"INSTAGRAM","url":"https://instagram.com/example"}],
  "linkCount": 1,
  "socialLinkCount": 1,
  "fetchedAt": "2026-09-25T00:00:00.000Z"
}
```

### Pricing

Pay-per-event pricing charges one synthetic start event and one synthetic dataset-item event per delivered profile. Platform usage is included. The Actor respects the SDK's remaining result-event budget before fetching and writing each profile.

| Event | FREE | BRONZE | SILVER | GOLD |
| --- | ---: | ---: | ---: | ---: |
| Actor start | $0.0050 | $0.0050 | $0.0050 | $0.0050 |
| Profile record | $0.0020 | $0.00195 | $0.00190 | $0.00160 |

Discounts on profile records are 0%, 2.5%, 5%, and 20%. At FREE prices, one delivered profile is $0.007 and five are $0.015. Actual accepted precision, creator proceeds, and margin must be verified against a settled cloud canary.
PLATINUM and DIAMOND use the GOLD prices. The start-event floor overrides tier discounts. The minimum run charge limit is $0.007.

### Reliability and limits

The scraper sends bounded direct requests, retries temporary HTTP 429/server/network failures at most four times, and stops at 100 unique profiles. HTTP 404 is treated as missing; access denial or missing embedded data is reported in `SUMMARY`. Public page markup and data can change. Use only public profiles and handle personal data under applicable law and Linktree's terms.

For issues, provide the input shape, run ID, and `SUMMARY` status without credentials or private data.

# Actor input Schema

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

Enter Linktree usernames or full profile URLs, for example TryThisForExample or https://linktr.ee/TryThisForExample. Other domains and profile subpages are unsupported.

## `maxProfiles` (type: `integer`):

Maximum unique profiles to fetch. Default 25, range 1–100. Free-plan runs are capped at five.

## `maxLinksPerProfile` (type: `integer`):

Maximum public outbound links included in each profile record. Default 100, range 1–200. Social links are separate.

## `maxRequestRetries` (type: `integer`):

Retries for HTTP 429, server errors, and network timeouts. Default 2, range 0–4.

## Actor input object example

```json
{
  "profiles": [
    "TryThisForExample"
  ],
  "maxProfiles": 25,
  "maxLinksPerProfile": 100,
  "maxRequestRetries": 2
}
```

# Actor output Schema

## `profiles` (type: `string`):

Public Linktree profile details and nested links.

## `summary` (type: `string`):

Delivered, missing, and blocked profile counts plus diagnostics.

# 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": [
        "TryThisForExample"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/linktree-profile-details-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/DOJZwOt45ljfQYmeZ/builds/digWnzc6kzb1PpiQ8/openapi.json
