Sign In Create Account
Find the Sites Sending Traffic to a Link, by hilarymason
  1. Current: Find Referrers for a Link
  2. Find Recent Referrers for a Link
Find Referrers for a Link

The 'referrer' is the site that contained the link that you clicked on to get to the current page. You can share bitly links on any site or social network, and then look at the referrers to figure out which sites are actually sending traffic to the link.

Instructions

the v3/link/referrers endpoint accepts a link parameter and returns the number of clicks from each referring site. Change the link parameter in the example code to a link that you created.

Files:
script.py
Back to Editor
Start Here

Each lesson starts here. Read the explanation, then follow the instructions underneath. If you get stuck, you can click on the "Hint" for help.

Next  →
Enter your Code

Type your response to the instructions here, in your code editor.

Next  →
See What it Does

Ready to see if your code does what it should? Click "Save + Submit" to run and check your code!

Click "Save + Submit" to run your code! Your code’s output will pop up on the screen.

Next  →
Submit!

This is the terminal. When you submit your code, it will run your code and display the result here.

I'm ready!

Sign in to Codecademy