Click count of Other bitlinks

253 views
Skip to first unread message

Megumi Nakamura

unread,
Apr 25, 2016, 9:01:44 AM4/25/16
to Bitly API
Hello all,

I am trying to get "Clicks On Other Bitlinks" count via API, that is displayed on web page https://bitly.com/a/bitlinks .
I tried all api listed in http://dev.bitly.com/link_metrics.html, but I couldn't find yet.

When I used "/v3/link/clicks" API before, I think it contained "Clicks On Other Bitlinks" value, but now it contains only "Your Clicks" value. - I'm not sure now.

Is it possible to get count of "Clicks On Other Bitlinks" via API ?

Thanks,

Megumi

Peter Herndon

unread,
Apr 25, 2016, 9:11:17 AM4/25/16
to Bitly API
Hi Megumi,

The way to find the value you're looking for, the number of clicks on links to the same URL you shortened, but shortened by other people, is to call /v3/info for the Bitlink you created, take the "global hash" value, use the global hash as the "link" value in a call to /v3/link/clicks. That click count will be the total number of clicks on the target URL, regardless of who shortened the Bitlink. Call /v3/link/clicks with your Bitlink for the same target URL to get the number of clicks on your Bitlink for the same URL. Subtract your clicks from the global clicks, and the result is the number of "Clicks On Other Bitlinks".

Regards,

---Peter

Peter Herndon
Sr. Application Engineer
@Bitly 

Megumi Nakamura

unread,
Apr 25, 2016, 10:13:41 PM4/25/16
to Bitly API
Hi Peter,

Thank you very much for your quick response!
I checked /v3/info and got global hash, and I could get the value I expected.

Thank you very much!

Megumi

2016年4月25日月曜日 22時11分17秒 UTC+9 Peter Herndon:
Reply all
Reply to author
Forward
0 new messages