> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Linktree Profiles API

> Linktree profiles with username, display name, bio, profile picture and verified flag. Pass the profiles to look up.

`POST /v1/data/linktree/profiles/run`

**Pricing:** $0.0025 per profile ($2.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**profiles** `string[]` *required*

One or more profiles. One request reads them all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/linktree/profiles/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "profiles": [
      "https://linktr.ee/esportsworldcup",
      "https://linktr.ee/garyvee",
      "https://linktr.ee/tonyhawk"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/linktree/profiles/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "profiles": [
        "https://linktr.ee/esportsworldcup",
        "https://linktr.ee/garyvee",
        "https://linktr.ee/tonyhawk"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/linktree/profiles/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "profiles": [
    "https://linktr.ee/esportsworldcup",
    "https://linktr.ee/garyvee",
    "https://linktr.ee/tonyhawk"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one profile, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `profileUrl` | Profile URL | url |
| `linktreeId` | Linktree ID | text |
| `username` | Username | text |
| `displayName` | Display Name | text |
| `bio` | Bio | text |
| `profilePicture` | Profile Picture | url |
| `verified` | Verified | boolean |
| `accountCreated` | Account Created | date |
| `links` | Links | object\_array |
| `socialLinks` | Social Links | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "linktree/profiles",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "linktreeId": "75599522",
      "accountCreated": "2024-04-10",
      "bio": "Esports World Cup. A new chapter in esports history 🏆",
      "profileUrl": "https://linktr.ee/esportsworldcup",
      "profilePicture": "https://ugc.production.linktr.ee/051014ae-eac5-470d-8d78-283df1a58004_0226-EWC-Social-Branding-Avatar-1080x1080-FR.png",
      "username": "esportsworldcup",
      "socialLinks": [
        {
          "type": "FACEBOOK",
          "url": "https://www.facebook.com/EsportsWorldCup/",
          "position": 2
        },
        {
          "type": "INSTAGRAM",
          "url": "https://instagram.com/ewc_en",
          "position": 1
        }
      ],
      "links": [
        {
          "id": "577179644",
          "title": "EWC Play Go Beyond Spectating",
          "url": "https://esportsworldcup.com/play",
          "type": "CLASSIC",
          "thumbnail": "https://assets.production.linktr.ee/tabler-icons/outline/vs.svg",
          "position": 0,
          "description": "The Esports World Cup experience doesn't stop at watching the action: it starts with EWC PLAY, our digital platform that puts you in the game.",
          "locked": false,
          "children": []
        },
        {
          "id": "570819471",
          "title": "Join the Esports Foundation Creator Program",
          "url": "https://esportsworldcup.com/creator-program",
          "type": "CLASSIC",
          "thumbnail": null,
          "position": 1,
          "description": "Our program rewards approved creators who inspire, entertain, and bring communities together.",
          "locked": false,
          "children": []
        }
      ],
      "verified": true,
      "displayName": "@ewc"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.