def lookup(self, url):
        warnings.warn("/v3/lookup is depricated in favor of /v3/link/lookup",
                      DeprecationWarning)

        params = dict(url=url)

        data = self._call(self.host, 'v3/lookup', params, self.secret)
        return data['data']['lookup']
query for a bitly link based on a long url
dataset/ETHPy150Open bitly/bitly-api-python/bitly_api/bitly_api.py/Connection.lookup