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

# Get A Single Link

> Returns the details of a single short link by its short URL identifier.



## OpenAPI

````yaml GET /v1/links/{short_url}
openapi: 3.0.3
info:
  title: KlipLink API
  description: A RESTful API for managing short links and QR codes.
  version: 1.0.0
servers:
  - url: https://api.klipl.ink
security:
  - bearerAuth: []
paths:
  /v1/links/{short_url}:
    get:
      summary: Retrieve a single link
      description: Returns the details of a single short link by its short URL identifier.
      parameters:
        - name: short_url
          in: path
          required: true
          description: The short URL identifier of the link (e.g. `klipl.ink/your-link`).
          schema:
            type: string
          example: klipl.ink/your-link
      responses:
        '200':
          description: Link retrieved successfully
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessResponse'
                  - $ref: '#/components/schemas/Link'
              example:
                success: true
                short_url: https://klipl.ink/your-link
                destination_url: https://example.com/
                created_at: '2025-11-06T14:30:00.000Z'
                clicks: 255
                title: Example Link
        '401':
          description: Unauthorized
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |
            curl -X GET "https://api.klipl.ink/v1/links/klipl.ink/your-link" \
              -H "Authorization: Bearer YOUR_API_KEY"
        - lang: python
          label: Python
          source: |
            import requests

            short_url = "klipl.ink/your-link"
            response = requests.get(
                f"https://api.klipl.ink/v1/links/{short_url}",
                headers={"Authorization": "Bearer YOUR_API_KEY"}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >
            const shortUrl = "klipl.ink/your-link";

            const response = await
            fetch(`https://api.klipl.ink/v1/links/${shortUrl}`, {
              headers: { "Authorization": "Bearer YOUR_API_KEY" }
            });

            const data = await response.json();

            console.log(data);
        - lang: php
          label: PHP
          source: >
            <?php

            $shortUrl = "klipl.ink/your-link";

            $ch = curl_init("https://api.klipl.ink/v1/links/{$shortUrl}");

            curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer
            YOUR_API_KEY"]);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            $response = json_decode(curl_exec($ch), true);

            print_r($response);
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
    Link:
      type: object
      properties:
        short_url:
          type: string
          example: https://klipl.ink/your-link
        destination_url:
          type: string
          example: https://example.com/
        clicks:
          type: integer
          example: 255
        created_at:
          type: string
          format: date-time
          example: '2025-11-06T14:30:00.000Z'
        title:
          type: string
          example: Example Link
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````