Path: blob/master/Bitly/Bitly_Get_Clicks_for_a_Bitlink.ipynb
2973 views
Kernel: Python 3
Bitly - Get Clicks for a Bitlink
Tags: #bitly #api #getclicks #bitlink #python #dev
Author: Florent Ravenel
Last update: 2023-04-12 (Created: 2023-02-24)
Description: This notebook will show how to use the Bitly API to get the click counts for a specified link in an array based on a date.
References:
Input
Import libraries
In [ ]:
Setup Variables
access_token
: Bitly access token. Get your token here.bitlink
: Bitlink to get clicks for.unit
: Unit of time for the response.units
: Number of units of time to query data for.
In [ ]:
Model
Get Clicks for a Bitlink
This function will use the Bitly API to get the click counts for the specified link in an array based on a date.
In [ ]:
Output
Display result
In [ ]: