Campaign Tracking API

Get post and Campaign level (aggregated) insights, including Campaign Overview, Engagement, ROI, each post type performance, Audience Demographics, cumulative engagement rate as well as reach reach of the campaign, top comments and sentiment analysis.

POST - Create New Campaign

This API is used for creating a new Campaign.

curl --location 'https://app.ylytic.com/ylytic/admin/api/v1/campaigns' \
--header 'Authorization: Bearer {{auth_header}}' \
--data '{
    "name": "Test Campaign 29092023", 
    "brand_name": "Test Brand"
}'

POST PARAM

ATTRIBUTESDESCRIPTION

name

The name of the campaign from which insights are required.

brand_name

The name of the brand for which the campaign is to be launched.

PAYLOAD

{
    "name": "Test Campaign 29092023", 
    "brand_name": "Test Brand"
}

OUTPUT(JSON)

{
  "brand_name": "Test Brand",
  "brand_url": null,
  "cost_of_campaign": null,
  "custom_field_name": null,
  "custom_field_value": null,
  "hashtags": [],
  "id": "651704206a03639776e46bf9",
  "insights_link": "https://insights.ylytic.com/storyCampaign?id=651704206a03639776e46bf9",
  "name": "Test Campaign 29092023",
  "status": "Yet to start",
  "tracking_details": {},
  "tracking_expiry_at": "Sun, 29 Oct 2023 17:06:40 GMT",
  "tracking_urls": []
}

PUT - Update Existing Campaign

This API is used for adding posts URL's to the campaign, brand logo, cost of the campaign in the created campaign.

curl --location --request PUT 'https://app.ylytic.com/ylytic/admin/api/v1/campaigns/651704206a03639776e46bf9' \
--header 'Authorization: Bearer {{auth_header}}' \
--data '{
    "tracking_urls": ["https://www.youtube.com/watch?v=YloeSL_dnWU","https://www.instagram.com/stories/king_pspk_/3201118172898278557/","https://www.youtube.com/shorts/l5wX3HvNGT0","https://www.instagram.com/p/CxkQ7yBMJfg/","https://www.instagram.com/p/Cxu3cmWBQ0b/"],
    "brand_url": "https://www.ylytic.com/assets/img/brand/ylytic-logo.svg",
    "name": "Test Campaign 29092023",
    "brand_name": "Test Brand",
    "cost_of_campaign": 125000,
    "custom_field_name": "Clicks",
    "custom_field_value": 25
}'

POST PARAM

ATTRIBUTESDESCRIPTION

tracking_urls

URLs of the posts that are to be tracked.

brand_url

brand_url refers to the URL of the brand's website.

cost_of_campaign

cost_of_campaign denotes the total cost of the campaign.

PAYLOAD

{
    "tracking_urls": ["https://www.instagram.com/p/CmglViAjMTu/","https://www.youtube.com/watch?v=hmf_ryKMq5c"],
    "brand_url": "https://www.ylytic.com/assets/img/brand/ylytic-logo.svg",
    "name": "Test Campaign 10072023",
    "brand_name": "Test Brand",
    "cost_of_campaign": 125000,
    "custom_field_name": "Clicks",
    "custom_field_value": 25
}

OUTPUT (JSON)

{
  "brand_name": "Test Brand",
  "brand_url": "https://www.ylytic.com/assets/img/brand/ylytic-logo.svg",
  "cost_of_campaign": 125000,
  "custom_field_name": "Clicks",
  "custom_field_value": 25,
  "hashtags": [],
  "id": "651704206a03639776e46bf9",
  "insights_link": "https://insights.ylytic.com/campaign?id=651704206a03639776e46bf9",
  "name": "Test Campaign 29092023",
  "status": "live",
  "tracking_details": {},
  "tracking_expiry_at": "Sun, 29 Oct 2023 17:06:40 GMT",
  "tracking_urls": [
    "https://www.instagram.com/p/Cxu3cmWBQ0b/",
    "https://www.instagram.com/p/CxkQ7yBMJfg/",
    "https://www.youtube.com/shorts/l5wX3HvNGT0",
    "https://www.instagram.com/stories/king_pspk_/3201118172898278557/",
    "https://www.youtube.com/watch?v=YloeSL_dnWU"
  ]
}

PATCH - Add/Remove Campaign Posts

This API is used to add or delete posts to the created campaign.

curl --location --request PATCH 'https://dashboard.ylytic.com/ylytic/admin/api/v1/campaigns/65b74956dd8a4714ed541da8' \
--header 'Authorization: Bearer {{head_auth}} 
--header 'Content-Type: application/json' \
--data '{
    "add_tracking_urls": ["https://www.instagram.com/p/CmjTS_Npakm/"],
    "remove_tracking_urls": []
}'
ATTRIBUTESDESCRIPTION

add_tracking_urls

add_tracking_url is used for adding the URL of social media posts created by the creator.

remove_tracking_urls

add_tracking_url is used for removing the URL of social media posts created by the creator.

PAYLOAD

{
    "add_tracking_urls": ["https://www.instagram.com/p/CmjTS_Npakm/"],
    "remove_tracking_urls": []
}

OUTPUT (JSON)

{
    "id": "65b74956dd8a4714ed541da8",
    "name": "29/01/24_test_camp",
    "brand_name": "xyz",
    "brand_url": null,
    "cost_of_campaign": null,
    "custom_field_name": null,
    "custom_field_value": null,
    "campaign_tracking_interval": 24,
    "threshold_er": null,
    "threshold_reach": null,
    "tracking_urls": [
        "https://www.instagram.com/p/CmjTS_Npakm/"
    ],
    "tracking_details": {
        "https://www.instagram.com/p/C2T_erdoOTt/": {
            "connector": "instagram",
            "shortcode": "C2T_erdoOTt",
            "comments_count": 20,
            "likes_count": 234,
            "post_type": "REEL",
            "title": "मैं राम ढूँढने निकल पड़ा हूँ ! \n-रत्नदीप शिंदे \n\nकुछ कवितायें यूँही लिख देता हूँ और कुछ कविताएँ ‘लिखनी’ पड़ती है ! \n\nपूरा वीडियो कल डालूँगा आप ज़रूर देखना ! \n\n#rammandirayodhya #rammandirayodhya #rammandir #jaishreeram #rammandirpranpratishtha #poem #political #noplolitics #hindu #poems #jaishreeram #jaishreeram🙏 #ramram",
            "description": "मैं राम ढूँढने निकल पड़ा हूँ ! \n-रत्नदीप शिंदे \n\nकुछ कवितायें यूँही लिख देता हूँ और कुछ कविताएँ ‘लिखनी’ पड़ती है ! \n\nपूरा वीडियो कल डालूँगा आप ज़रूर देखना ! \n\n#rammandirayodhya #rammandirayodhya #rammandir #jaishreeram #rammandirpranpratishtha #poem #political #noplolitics #hindu #poems #jaishreeram #jaishreeram🙏 #ramram",
            "hashtags": [
                "#rammandirayodhya",
                "#rammandirayodhya",
                "#rammandir",
                "#jaishreeram",
                "#rammandirpranpratishtha",
                "#poem",
                "#political",
                "#noplolitics",
                "#hindu",
                "#poems",
                "#jaishreeram",
                "#jaishreeram🙏",
                "#ramram"
            ],
            "creator": {
                "handle": "a_poetic_storyteller",
                "url": "https://www.instagram.com/a_poetic_storyteller",
                "full_name": "Ratnadeep Mahadev Shinde",
                "follower_count": 1259,
                "media_count": 89,
                "connector": "instagram"
            },
            "posted_date": "Sat, 20 Jan 2024 06:53:31 GMT",
            "post_url": "https://www.instagram.com/p/C2T_erdoOTt/",
            "image_url": "https://instagram.ffru4-1.fna.fbcdn.net/v/t51.2885-15/419828240_908713647172616_649314883925448838_n.jpg?stp=c0.236.608.608a_dst-jpg_e15&_nc_ht=instagram.ffru4-1.fna.fbcdn.net&_nc_cat=108&_nc_ohc=kJZBsSNezNgAX8TXTxw&edm=AP_V10EBAAAA&ccb=7-5&oh=00_AfCfcOi4Lx9X8yx9TKrpKMVpNizm9b7gnoh6tnYq7gfsTg&oe=65B8C2F8&_nc_sid=2999b8",
            "display_url": "https://instagram.ffru4-1.fna.fbcdn.net/v/t51.2885-15/419828240_908713647172616_649314883925448838_n.jpg?stp=c0.236.608.608a_dst-jpg_e15&_nc_ht=instagram.ffru4-1.fna.fbcdn.net&_nc_cat=108&_nc_ohc=kJZBsSNezNgAX8TXTxw&edm=AP_V10EBAAAA&ccb=7-5&oh=00_AfCfcOi4Lx9X8yx9TKrpKMVpNizm9b7gnoh6tnYq7gfsTg&oe=65B8C2F8&_nc_sid=2999b8",
            "reach": 2938,
            "views": 3265,
            "er": 20.17,
            "comments": [
                
                {
                    "text": "Aapke aandar bhagwaan hey ❤️",
                    "like_count": 1,
                    "sentiment": 0,
                    "created_at": "Mon, 29 Jan 2024 06:46:17 GMT",
                    "commenter": "mrun.maiii_"
                },
                
                {
                    "text": "Waa..🙌",
                    "like_count": 1,
                    "sentiment": 0,
                    "created_at": "Mon, 29 Jan 2024 06:46:17 GMT",
                    "commenter": "atharva_kayaas"
                }
            ],
            "commentors": [
                {
                    "username": "mrun.maiii_",
                    "connector": "instagram"
                },
                {
                    "username": "atharva_kayaas",
                    "connector": "instagram"
                },
            ],
            "refresh_date": "Mon, 29 Jan 2024 06:46:12 GMT"
        }
    },
    "insights_link": "https://insights.ylytic.com/campaign?id=65b74956dd8a4714ed541da8",
    "tracking_expiry_at": "Wed, 28 Feb 2024 06:44:38 GMT",
    "status": "live",
    "next_tracking_at": null,
    "hashtags": []
}

GET - Get Campaign Insights

This API is used to get insights of the campaign explained in the campaign insights section.

curl --location 'https://insights.ylytic.com/ylytic/api/v1/insights/campaigns/65b74956dd8a4714ed541da8?key=bcf90967-774b-44b6-b477-c31147c16299' \
--header 'Authorization: Bearer {{auth_header}}'

OUTPUT(JSON)

{
    "status": "live",
    "share_url": "https://insights.ylytic.com/campaign?id=65b74956dd8a4714ed541da8",
    "start_date": null,
    "connectors": [
        "instagram"
    ],
    "posts_count": 1,
    "creators_count": 1,
    "reach": 51096,
    "views": 56774,
    "followers": 1257,
    "comments": 29,
    "likes": 3023,
    "engagement": 3052,
    "er": 242.8,
    "erv": 5.38,
    "top_posts": [
        {
            "connector": "instagram",
            "shortcode": "C2i51IIITd4",
            "comments_count": 29,
            "likes_count": 3023,
            "post_type": "REEL",
            "title": "राष्ट्रध्वजाचा सन्मान म्हणजे देशाचा सन्मान ! \n\nText By: 💁‍♂️\nCalligraphy: @bhaktigoswamii \nThank you: @seemanikam_ @shubham_kakade_1 @i_am_swatiiii_  @abhishek_amate @its_me_sakshiiii \n\n#republicday #Indianrepublicday #26january #respecttheindianflag #tiranga #tiranga🇮🇳 #tiranga #marathiquotes #fcroadpune #seriouscontent #trendingreels #trend #nationallove #reelsindia #indian #indianbride",
            "description": "राष्ट्रध्वजाचा सन्मान म्हणजे देशाचा सन्मान ! \n\nText By: 💁‍♂️\nCalligraphy: @bhaktigoswamii \nThank you: @seemanikam_ @shubham_kakade_1 @i_am_swatiiii_  @abhishek_amate @its_me_sakshiiii \n\n#republicday #Indianrepublicday #26january #respecttheindianflag #tiranga #tiranga🇮🇳 #tiranga #marathiquotes #fcroadpune #seriouscontent #trendingreels #trend #nationallove #reelsindia #indian #indianbride",
            "hashtags": [
                "#republicday",
                "#Indianrepublicday",
                "#26january",
                "#respecttheindianflag",
                "#tiranga",
                "#tiranga🇮🇳",
                "#tiranga",
                "#marathiquotes",
                "#fcroadpune",
                "#seriouscontent",
                "#trendingreels",
                "#trend",
                "#nationallove",
                "#reelsindia",
                "#indian",
                "#indianbride"
            ],
            "creator": {
                "handle": "a_poetic_storyteller",
                "url": "https://www.instagram.com/a_poetic_storyteller",
                "full_name": "Ratnadeep Mahadev Shinde",
                "follower_count": 1257,
                "media_count": 89,
                "connector": "instagram"
            },
            "posted_date": "Fri, 26 Jan 2024 01:44:55 GMT",
            "post_url": "https://www.instagram.com/p/C2i51IIITd4/",
            "image_url": "https://instagram.ftll2-1.fna.fbcdn.net/v/t51.2885-15/422016103_3896545190569009_6748496429880636579_n.jpg?stp=c0.280.720.720a_dst-jpg_e15_s640x640&_nc_ht=instagram.ftll2-1.fna.fbcdn.net&_nc_cat=101&_nc_ohc=28qtkkk8SsMAX9Ju7j3&edm=AP_V10EBAAAA&ccb=7-5&oh=00_AfAwrSofOOeSwDZLjVwG35lgPzEFw4C5zPptbbxVub18Yg&oe=65BA6065&_nc_sid=2999b8",
            "display_url": "https://s3.ap-south-1.amazonaws.com/nudges//tmp/C2i51IIITd4.jpg",
            "reach": 51096,
            "views": 56774,
            "er": 242.8,
            "comments": [
                {
                    "text": "भाऊ खिशाचा झेंडा सातवित होतो तेव्हा घेतलेला2002 ला आजून संभाळून ठेवलाय आता माझा मुलगा लावतो दिड वर्षाचा आहे तो🇮🇳",
                    "created_at": 1706507686,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "bhosale7765"
                },
                {
                    "text": "खरच भाऊ... आणि फेकताना यांना लाज कशीनसल वाटत...🤬😠",
                    "created_at": 1706447740,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "mayu_jagtap_07"
                }
            ],
            "commentors": [
                {
                    "username": "bhosale7765",
                    "connector": "instagram"
                },
                {
                    "username": "mayu_jagtap_07",
                    "connector": "instagram"
                },
                
            ],
            "refresh_date": "Tue, 30 Jan 2024 04:07:46 GMT"
        }
    ],
    "posts": [
        {
            "connector": "instagram",
            "shortcode": "C2i51IIITd4",
            "comments_count": 29,
            "likes_count": 3023,
            "post_type": "REEL",
            "title": "राष्ट्रध्वजाचा सन्मान म्हणजे देशाचा सन्मान ! \n\nText By: 💁‍♂️\nCalligraphy: @bhaktigoswamii \nThank you: @seemanikam_ @shubham_kakade_1 @i_am_swatiiii_  @abhishek_amate @its_me_sakshiiii \n\n#republicday #Indianrepublicday #26january #respecttheindianflag #tiranga #tiranga🇮🇳 #tiranga #marathiquotes #fcroadpune #seriouscontent #trendingreels #trend #nationallove #reelsindia #indian #indianbride",
            "description": "राष्ट्रध्वजाचा सन्मान म्हणजे देशाचा सन्मान ! \n\nText By: 💁‍♂️\nCalligraphy: @bhaktigoswamii \nThank you: @seemanikam_ @shubham_kakade_1 @i_am_swatiiii_  @abhishek_amate @its_me_sakshiiii \n\n#republicday #Indianrepublicday #26january #respecttheindianflag #tiranga #tiranga🇮🇳 #tiranga #marathiquotes #fcroadpune #seriouscontent #trendingreels #trend #nationallove #reelsindia #indian #indianbride",
            "hashtags": [
                "#republicday",
                "#Indianrepublicday",
                "#26january",
                "#respecttheindianflag",
                "#tiranga",
                "#tiranga🇮🇳",
                "#tiranga",
                "#marathiquotes",
                "#fcroadpune",
                "#seriouscontent",
                "#trendingreels",
                "#trend",
                "#nationallove",
                "#reelsindia",
                "#indian",
                "#indianbride"
            ],
            "creator": {
                "handle": "a_poetic_storyteller",
                "url": "https://www.instagram.com/a_poetic_storyteller",
                "full_name": "Ratnadeep Mahadev Shinde",
                "follower_count": 1257,
                "media_count": 89,
                "connector": "instagram"
            },
            "posted_date": "Fri, 26 Jan 2024 01:44:55 GMT",
            "post_url": "https://www.instagram.com/p/C2i51IIITd4/",
            "image_url": "https://instagram.ftll2-1.fna.fbcdn.net/v/t51.2885-15/422016103_3896545190569009_6748496429880636579_n.jpg?stp=c0.280.720.720a_dst-jpg_e15_s640x640&_nc_ht=instagram.ftll2-1.fna.fbcdn.net&_nc_cat=101&_nc_ohc=28qtkkk8SsMAX9Ju7j3&edm=AP_V10EBAAAA&ccb=7-5&oh=00_AfAwrSofOOeSwDZLjVwG35lgPzEFw4C5zPptbbxVub18Yg&oe=65BA6065&_nc_sid=2999b8",
            "display_url": "https://s3.ap-south-1.amazonaws.com/nudges//tmp/C2i51IIITd4.jpg",
            "reach": 51096,
            "views": 56774,
            "er": 242.8,
            "comments": [
                {
                    "text": "भाऊ खिशाचा झेंडा सातवित होतो तेव्हा घेतलेला2002 ला आजून संभाळून ठेवलाय आता माझा मुलगा लावतो दिड वर्षाचा आहे तो🇮🇳",
                    "created_at": 1706507686,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "bhosale7765"
                },
                {
                    "text": "खरच भाऊ... आणि फेकताना यांना लाज कशीनसल वाटत...🤬😠",
                    "created_at": 1706447740,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "mayu_jagtap_07"
                }
            ],
            "commentors": [
                {
                    "username": "bhosale7765",
                    "connector": "instagram"
                },
                {
                    "username": "mayu_jagtap_07",
                    "connector": "instagram"
                },
                {
                    "username": "sayalii_sonule",
                    "connector": "instagram"
                },
                {
                    "username": "oldschool_840",
                    "connector": "instagram"
                },
                {
                    "username": "samruddhi_deshpande1",
                    "connector": "instagram"
                },
                {
                    "username": "vaibhavi.vs",
                    "connector": "instagram"
                },
                {
                    "username": "saurabbhhhhhh",
                    "connector": "instagram"
                },
                {
                    "username": "seemanikam_",
                    "connector": "instagram"
                },
                {
                    "username": "rsherkhane5666",
                    "connector": "instagram"
                },
                {
                    "username": "virajthorat_4554",
                    "connector": "instagram"
                },
                {
                    "username": "marathi_mavla_1997",
                    "connector": "instagram"
                },
                {
                    "username": "shrinivasmunde73",
                    "connector": "instagram"
                },
                {
                    "username": "aniketp166",
                    "connector": "instagram"
                },
                {
                    "username": "rupalsp",
                    "connector": "instagram"
                },
                {
                    "username": "hemangi___",
                    "connector": "instagram"
                }
            ],
            "refresh_date": "Tue, 30 Jan 2024 04:07:46 GMT"
        }
    ],
    "all_comments": [
        {
            "text": "भाऊ खिशाचा झेंडा सातवित होतो तेव्हा घेतलेला2002 ला आजून संभाळून ठेवलाय आता माझा मुलगा लावतो दिड वर्षाचा आहे तो🇮🇳",
            "created_at": 1706507686,
            "sentiment": 0,
            "like_count": "",
            "commenter": "bhosale7765"
        },
        {
            "text": "खरच भाऊ... आणि फेकताना यांना लाज कशीनसल वाटत...🤬😠",
            "created_at": 1706447740,
            "sentiment": 0,
            "like_count": "",
            "commenter": "mayu_jagtap_07"
        }
    ],
    "word_cloud": [
        {
            "text": "भाऊ",
            "value": 2
        },
        {
            "text": "खिशाचा",
            "value": 1
        },
        {
            "text": "झेंडा",
            "value": 1
        },
        {
            "text": "सातवित",
            "value": 1
        },
        {
            "text": "होतो",
            "value": 1
        },
        {
            "text": "तेव्हा",
            "value": 1
        },
        {
            "text": "घेतलेला2002",
            "value": 1
        },
        {
            "text": "ला",
            "value": 1
        },
        {
            "text": "आजून",
            "value": 1
        },
        {
            "text": "संभाळून",
            "value": 1
        },
        {
            "text": "ठेवलाय",
            "value": 1
        },
        {
            "text": "आता",
            "value": 1
        },
        {
            "text": "माझा",
            "value": 1
        },
        {
            "text": "मुलगा",
            "value": 1
        },
        {
            "text": "लावतो",
            "value": 1
        },
        {
            "text": "दिड",
            "value": 1
        },
        {
            "text": "वर्षाचा",
            "value": 1
        },
        {
            "text": "आहे",
            "value": 1
        },
        {
            "text": "तो",
            "value": 1
        },
        {
            "text": "खरच",
            "value": 1
        },
        {
            "text": "आणि",
            "value": 1
        },
        {
            "text": "फेकताना",
            "value": 1
        },
        {
            "text": "यांना",
            "value": 1
        },
        {
            "text": "लाज",
            "value": 1
        },
        {
            "text": "कशीनसल",
            "value": 1
        },
        {
            "text": "वाटत",
            "value": 1
        }
    ],
    "age_gender_distribution": {
        "13-17": {
            "male": 1.6,
            "female": 1.4
        },
        "18-24": {
            "male": 9.1,
            "female": 12.9
        },
        "25-34": {
            "male": 40.6,
            "female": 9.4
        },
        "35-44": {
            "male": 13.6,
            "female": 8.4
        },
        "45-54": {
            "male": 1.1,
            "female": 0.9
        },
        "55-64": {
            "male": 0.6,
            "female": 0.4
        },
        "65-": {
            "male": 0.0,
            "female": 0.0
        }
    },
    "audience": {
        "age_group_distribution": {
            "13-17": 3.0,
            "18-24": 22.0,
            "25-34": 50.0,
            "35-44": 22.0,
            "45-54": 2.0,
            "55-64": 1.0,
            "65-": 0.0
        },
        "age_gender_distribution": {
            "13-17": {
                "male": 1.6,
                "female": 1.4
            },
            "18-24": {
                "male": 9.1,
                "female": 12.9
            },
            "25-34": {
                "male": 40.6,
                "female": 9.4
            },
            "35-44": {
                "male": 13.6,
                "female": 8.4
            },
            "45-54": {
                "male": 1.1,
                "female": 0.9
            },
            "55-64": {
                "male": 0.6,
                "female": 0.4
            },
            "65-": {
                "male": 0.0,
                "female": 0.0
            }
        },
        "gender_distribution": {
            "male": 66.6,
            "female": 33.4
        },
        "city_distribution": {
            "Delhi": 28.57,
            "Mumbai": 28.57,
            "Pune": 14.29,
            "Hyderabad": 14.29,
            "Kolkata": 14.29
        },
        "top": {
            "gender": "Male",
            "gender_per": 66.6,
            "age_group": "25-34",
            "age_group_per": 50.0,
            "location": "Delhi",
            "location_per": 28.57,
            "country": "India"
        },
        "comments_sentiment_analysis": {
            "comments": [
                {
                    "text": "भाऊ खिशाचा झेंडा सातवित होतो तेव्हा घेतलेला2002 ला आजून संभाळून ठेवलाय आता माझा मुलगा लावतो दिड वर्षाचा आहे तो🇮🇳",
                    "created_at": 1706507686,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "bhosale7765"
                },
                {
                    "text": "खरच भाऊ... आणि फेकताना यांना लाज कशीनसल वाटत...🤬😠",
                    "created_at": 1706447740,
                    "sentiment": 0,
                    "like_count": "",
                    "commenter": "mayu_jagtap_07"
                }
            ],
            "total_comments": 2,
            "sentiment": {
                "positives": 0,
                "negatives": 0,
                "neutral": 100
            },
            "word_cloud": [
                
                {
                    "text": "आणि",
                    "value": 1
                },
                {
                    "text": "फेकताना",
                    "value": 1
                },
                {
                    "text": "यांना",
                    "value": 1
                },
                {
                    "text": "लाज",
                    "value": 1
                },
                {
                    "text": "कशीनसल",
                    "value": 1
                },
                {
                    "text": "वाटत",
                    "value": 1
                }
            ]
        }
    },
    "reach_trends": [
        {
            "2024-01-29": {
                "reach": 693889
            }
        },
        {
            "2024-01-30": {
                "reach": 1629764
            }
        }
    ],
    "engagement_trends": [
        {
            "2024-01-29": {
                "engagement": 0.95
            }
        },
        {
            "2024-01-30": {
                "engagement": 0.17
            }
        }
    ],
    "views_trends": [
        {
            "2024-01-29": {
                "views": 770988
            }
        },
        {
            "2024-01-30": {
                "views": 1810849
            }
        }
    ],
    "cumulative_engagement_trends": [
        {
            "2024-01-29": {
                "engagement": 17879
            }
        },
        {
            "2024-01-30": {
                "engagement": 25900
            }
        }
    ],
    "cumulative_erv_trends": [
        {
            "2024-01-29": {
                "erv": [
                    2.32
                ]
            }
        },
        {
            "2024-01-30": {
                "erv": [
                    1.43
                ]
            }
        }
    ],
    "hashtag_insights": null,
    "hashtag_overview": {
        "total_reach": 0,
        "total_post_count": 0,
        "total_views": 0,
        "cpr": 0,
        "cpv": 0
    },
    "hashtags": [
        "#fcroadpune",
        "#indianbride",
        "#marathiquotes",
        "#trendingreels",
        "#26january",
        "#respecttheindianflag",
        "#tiranga🇮🇳",
        "#nationallove",
        "#Indianrepublicday",
        "#trend",
        "#seriouscontent",
        "#tiranga",
        "#indian",
        "#republicday",
        "#reelsindia"
    ],
    "cost_of_campaign": 0,
    "custom_field_name": null,
    "custom_field_value": null,
    "name": "29/01/24_test_camp",
    "brand_name": "xyz",
    "brand_logo_url": "https://img.icons8.com/ios/512/no-image.png",
    "client_name": "Anurag Gupta",
    "client_logo_url": "https://ylytic.s3.ap-south-1.amazonaws.com/uploads/fd4ebe51-b12d-42cd-93dd-0d70aaadf1fa.png",
    "insights_link": "https://insights.ylytic.com/campaign?id=65b74956dd8a4714ed541da8",
    "threshold_reach": null,
    "threshold_er": null
}

curl --location --request PATCH 'https://dashboard.ylytic.com/ylytic/admin/api/v1/campaigns/65c07f7cc274480601165274' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "add_shortlinks": [
        {"post_url":"https://www.instagram.com/reels/C295JByPmDT/",
        "shortlink":"https://app.ylytic.com/sl/1707435886.122057"}
    ],
    "remove_shortlinks": []
}'
ATTRIBUTESDESCRIPTION

post_url

URL of the post in the campaign corresponding to which the shortlink is created

shortlink

URL of the shortlink generated corresponding to the influencer creating the post/content in the campaign

PAYLOAD

{
    "add_shortlinks": [
        {"post_url":"https://www.instagram.com/reels/C295JByPmDT/",
        "shortlink":"https://app.ylytic.com/sl/1707435886.122057"}
    ],
    "remove_shortlinks": []
}

Last updated