# Get Profile Shop

Fetch public Linktree Shop collections, products, prices, vendors, and shoppable posts for a profile.

- Platform: [Linktree](https://docs.upscrape.com/docs/platforms/linktree)
- Capability ID: `linktree.profile.shop`
- 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 YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "username": "whatislinked"
  },
  "capability": "linktree.profile.shop"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | `string` | Yes | Linktree handle or full profile/shop URL. |

### Example input

```json
{
  "username": "whatislinked"
}
```

## 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 redacted fixture is an example, not a fixed response schema.

```json
{
  "collections": [
    {
      "has_commission_products": false,
      "id": "8a819252-4ee0-4578-ac4e-917f7ac18bf2",
      "products": [
        {
          "account_product_id": "a0f3c1f4-d41d-4c5e-80cc-5acc4d26ce02",
          "currency": "USD",
          "has_commission": false,
          "id": "a0f3c1f4-d41d-4c5e-80cc-5acc4d26ce02",
          "image_url": "https://www.sephora.com/productimages/sku/s2898419-main-zoom.jpg?imwidth=2000&pb=clean-at-sephora",
          "price": 3200,
          "title": "rhode Glazing Milk Hydrating Ceramide Facial Essence 4.2oz/124ml",
          "type": "PRODUCT",
          "url": "https://earn.linktr.ee/clicks/v2?b64=[redacted:token]%253D%253D",
          "vendor": "sephora",
          "vendor_display_name": "Sephora"
        }
      ],
      "title": "Sephora",
      "type": "COLLECTION"
    }
  ],
  "has_commission_products": true,
  "post_count": 59,
  "posts": [
    {
      "has_commission_products": false,
      "id": "3027c2a4-a5b7-4c77-96ba-ff9636a901ad",
      "products": [
        {
          "account_product_id": "868e8933-45bd-4efd-9a74-55ab43adcb90",
          "currency": "USD",
          "has_commission": false,
          "id": "868e8933-45bd-4efd-9a74-55ab43adcb90",
          "title": "Security Check",
          "type": "PRODUCT",
          "url": "https://www.tiktok.com/t/ZT9kUKnD5t3gs-BzItz",
          "vendor": "tiktok"
        }
      ],
      "type": "POST"
    }
  ],
  "product_count": 456,
  "profile_url": "https://linktr.ee/whatislinked",
  "shop_url": "https://linktr.ee/whatislinked/shop",
  "username": "whatislinked"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `collections` | `array` | 1 items |
| `collections` | `array` | 1 items |
| `has_commission_products` | `boolean` | true |
| `post_count` | `integer` | 59 |
| `posts` | `array` | 1 items |
| `posts` | `array` | 1 items |
| `product_count` | `integer` | 456 |
| `profile_url` | `string` | https://linktr.ee/whatislinked |
| `shop_url` | `string` | https://linktr.ee/whatislinked/shop |
| `username` | `string` | whatislinked |

## 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)
