# Get directory page

Fetch one page of Linktree's public profile directory using a primary category or secondary subcategory filter.

- Platform: [Linktree](https://docs.upscrape.com/docs/platforms/linktree)
- Capability ID: `linktree.directory.get`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "page": 1,
    "subcategory": "personal"
  },
  "capability": "linktree.directory.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `string` | No | Primary directory category. Omit both filters for all profiles; mutually exclusive with subcategory. Allowed values: `all`, `business`, `creative`, `education`, `entertainment`, `fashion-beauty`, `food-beverage`, `government-politics`, `health-wellness`, `non-profit`, `other`, `tech`, `travel-tourism`. |
| `page` | `integer` | No | 1-indexed directory page number (default 1). At least 1. Default: `1`. |
| `subcategory` | `string` | No | Secondary directory filter discovered from Linktree's public taxonomy; mutually exclusive with category. Allowed values: `affiliate-marketing`, `agency-consulting`, `alcohol`, `automobiles`, `actor`, `activism`, `attractions`, `bars-restaurants`, `campus-organizations`, `cannabis`, `chef`, `climate`, `clothing-accessories`, `coffee-tea`, `comedy`, `community-organization`, `contests-giveaways`, `cosplay`, `countries-municipalities`, `crafts`, `crowdfunding`, `dance-theatre`, `desserts`, `designer`, `digital-creator`, `disaster-relief`, `diversity-inclusion`, `e-learning`, `edutech`, `electronic-press-kit`, `emergency-services`, `fan-club`, `film-tv`, `financial-services`, `fintech`, `fragrances`, `gaming-esports`, `groceries`, `hair-care`, `hardware`, `healthcare`, `home-cooking`, `home-improvement-maintenance`, `hotels-lodging`, `hr-recruiting`, `influencer`, `jewelry`, `judiciary`, `law-enforcement`, `legal-services`, `library`, `life-coaching`, `live-events`, `makeup-skincare`, `marketing-advertising`, `memes`, `military-veterans`, `mobile-app`, `model`, `museums`, `music`, `nail-care`, `not-listed`, `nutrition`, `performance-art`, `personal`, `pets`, `policy`, `politicians-campaigns`, `portfolio`, `public-figure`, `public-relations`, `public-services`, `radio-podcasts`, `real-estate`, `recreation`, `religion`, `saas`, `schools-universities`, `shoes`, `shopping-retail`, `social-media`, `spirituality`, `sports`, `startup`, `talent-agency`, `talent-management`, `tattoos-piercings`, `teacher`, `transportation`, `venture-capital`, `visual-arts`, `weddings`, `wildlife`, `writer`. |

### Example input

```json
{
  "page": 1,
  "subcategory": "personal"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "current_page": 1,
  "profiles": [
    {
      "avatar_url": "https://ugc.production.linktr.ee/KnXNMCTwSKag5nWQFsDM_66b5iwx3kpvar1wu",
      "category_id": "other",
      "category_name": "Other",
      "profile_url": "https://linktr.ee/pastellbunnii",
      "username": "pastellbunnii",
      "verified": false
    },
    {
      "category_id": "other",
      "category_name": "Other",
      "profile_url": "https://linktr.ee/mdk88",
      "username": "mdk88",
      "verified": false
    },
    {
      "avatar_url": "https://ugc.production.linktr.ee/yeq36Fz9SeeTOqZ2bW9y_p4AmDa6CfENB29um",
      "category_id": "other",
      "category_name": "Other",
      "profile_title": "Our story, Our recovery",
      "profile_url": "https://linktr.ee/missyandhemi",
      "username": "missyandhemi",
      "verified": false
    }
  ],
  "selected_category": "other",
  "selected_subcategory": "personal",
  "total_pages": 296
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `current_page` | `integer` | 1 |
| `profiles` | `array` | 3 items |
| `profiles` | `array` | 3 items |
| `selected_category` | `string` | other |
| `selected_subcategory` | `string` | personal |
| `total_pages` | `integer` | 296 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
