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

# Get Link Details

> Retrieve detailed information about a specific dynamic link

## Overview

Fetch comprehensive information about a specific dynamic link using its unique code. This endpoint returns all link details including configuration, analytics, and current status.

## Endpoint

<CodeGroup>
  ```bash Public API theme={null}
  GET https://api.bit2connect.com/1.0/links/{code}
  ```

  ```bash Headers Required theme={null}
  X-API-KEY: b2co_your_api_key_here
  ```
</CodeGroup>

## Path Parameters

For detailed information about path parameters, see the [Get Link API Reference](/api-reference/links/get).

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.bit2connect.com/1.0/links/summer-sale" \
    -H "X-API-KEY: b2co_your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const code = "summer-sale";
  const response = await fetch(`https://api.bit2connect.com/1.0/links/${code}`, {
    headers: {
      "X-API-KEY": "b2co_your_api_key_here",
    },
  });

  const data = await response.json();
  console.log("Link details:", data.data);
  ```

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

  code = "summer-sale"
  url = f"https://api.bit2connect.com/1.0/links/{code}"
  headers = {
      "X-API-KEY": "b2co_your_api_key_here"
  }

  response = requests.get(url, headers=headers)
  data = response.json()

  print(f"Link: {data['data']['name']}")
  print(f"URL: {data['data']['shortUrl']}")
  print(f"Clicks: {data['data']['clickCount']}")
  ```
</CodeGroup>

## Response

### Success Response

```json theme={null}
{
  "success": true,
  "data": {
    "id": "clp123abc456",
    "code": "summer-sale",
    "shortUrl": "https://b2co.link/summer-sale",
    "originalUrl": "https://example.com/products/summer-sale",
    "name": "Summer Sale Campaign",
    "status": "ACTIVE",
    "qrCode": "https://b2co.link/summer-sale/qr",
    "payload": {
      "link": "https://example.com/products/summer-sale",
      "android": {
        "package": "com.example.app",
        "store_fallback": "https://play.google.com/store/apps/details?id=com.example.app"
      },
      "ios": {
        "bundleId": "com.example.app",
        "app_store_fallback": "https://apps.apple.com/app/example-app/id123456789"
      },
      "social": {
        "title": "Summer Sale - Up to 50% Off!",
        "description": "Don't miss our biggest sale of the year",
        "image": "https://example.com/images/summer-sale.jpg"
      },
      "campaign": {
        "utm_source": "api",
        "utm_medium": "dynamic_link",
        "utm_campaign": "summer_sale_2024"
      }
    },
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "expiresAt": "2024-12-31T23:59:59Z",
    "clickCount": 127,
    "analytics": {
      "totalClicks": 127,
      "uniqueClicks": 89,
      "clicksByPlatform": {
        "ios": 45,
        "android": 38,
        "web": 44
      },
      "clicksByCountry": {
        "US": 67,
        "CA": 23,
        "GB": 18,
        "other": 19
      }
    }
  },
  "timestamp": "2024-01-15T10:30:00Z"
}
```

### Error Response

```json theme={null}
{
  "success": false,
  "error": {
    "code": "LINK_NOT_FOUND",
    "message": "Link with the specified code was not found"
  }
}
```

For detailed response fields, error codes, and use cases, see the [Get Link API Reference](/api-reference/links/get).

## Next Steps

<CardGroup cols={2}>
  <Card title="Update Link Status" icon="toggle-on" href="/guides/update-link-status">
    Change the status of your link (active, paused, archived)
  </Card>

  <Card title="Delete Link" icon="trash" href="/guides/delete-link">
    Permanently remove the link from your project
  </Card>

  <Card title="List Links" icon="list" href="/guides/list-links">
    View all your dynamic links with filtering options
  </Card>

  <Card title="Check Code Availability" icon="search" href="/guides/check-code-availability">
    Verify if a code is available before creating a new link
  </Card>
</CardGroup>
