Ylytic Documentation
  • Introduction
  • Platform Brief
  • Quick Start Guide
  • FAQs
    • About Ylytic
    • About Ylytic Data and Insights
    • About Ylytic Features and Pricing
  • REST APIs
    • API Overview
      • Third Party API
      • Campaign Tracking API
      • First Party API
      • Realtime Tracking API
      • Data Refresh API
      • Link Tracking API
      • Discovery Search API
      • Shopify Sales Tracking API
  • FEATURES
    • Creator Discovery
      • Discover
      • Select
      • Reachout
    • Creator Insights
      • Profile Overview
      • Audience
      • Engagement
      • Posting Activity
      • Mentions
    • Campaign Insights
      • Stats
      • Audience
      • Posts
    • Collections
    • Ylytic's Collection
    • Link Tracking
    • Shopify Sales Tracking
    • Whitelabel Platform
Powered by GitBook
On this page
  • POST - Create Shortlink
  • PAYLOAD
  • OUTPUT (JSON)
  • GET - Shortlink Insights Tracking
  • OUTPUT(JSON)
  1. REST APIs
  2. API Overview

Link Tracking API

PreviousData Refresh APINextDiscovery Search API

Last updated 11 months ago

POST - Create Shortlink

This API is used for creating shortlinks for a destination URL, often used for affiliate marketing .

curl --location 'https://dashboard.ylytic.com/ylytic/admin/api/v1/shortlinks' \
--header 'Authorization: Bearer {{auth_token}} \
--data '{"target_url":"https://www.ylytic.com/"}'
ATTRIBUTES
DESCRIPTION

target_url

URL of which the shortlink has to be created.

PAYLOAD

{"target_url":"https://www.ylytic.com/"}

OUTPUT (JSON)

{
    "short_link": "https://app.ylytic.com/sl/1705923271.798946"
}

GET - Shortlink Insights Tracking

Get the insights of the created shortlink.

curl --location 'https://insights.ylytic.com/ylytic/admin/api/v1/shortlinks/1703838910.587752/insights' \
--header 'Authorization: Bearer {{auth_token}}'

OUTPUT(JSON)

{
    "id": "1703838910.587752",
    "client": {
        "id": "643d294c4c77fb75c38bc751",
        "short_name": "anuraggupta",
        "name": "-"
    },
    "short_link": "https://app.ylytic.com/sl/1703838910.587752",
    "name": "ylytic",
    "target_url": "https://instagram.com",
    "analytics": {
        "users": 1,
        "clicks": 1,
        "city_distribution": [
            {
                "city": "Ahmedabad",
                "users": 1,
                "clicks": 1
            }
        ],
        "country_distribution": [
            {
                "country": "India",
                "users": 1,
                "clicks": 1
            }
        ],
        "platform_distribution": [
            {
                "platform": "browser",
                "users": 1,
                "clicks": 1
            }
        ],
        "device_distribution": [
            {
                "device": null,
                "users": 1,
                "clicks": 1
            }
        ],
        "date_distribution": [
            {
                "date": "2023-12-29",
                "users": 1,
                "clicks": 1
            }
        ]
    },
    "analyticsAt": "2024-01-22 11:29:09.420000",
    "createdDate": "29-12-2023"
}

https://dashboard.ylytic.com/ylytic/admin/api/v1/shortlinksdashboard.ylytic.com
https://insights.ylytic.com/ylytic/admin/api/v1/shortlinks/1703838910.587752/insightsinsights.ylytic.com