bit.ly - API 统计跟踪
我不确定这是否是解决此问题的正确论坛,但我不确定还能在哪里提问。
bit.ly 提供通过其网站生成的链接的统计信息。然而,它似乎没有为通过其 API 生成的链接创建统计信息。
有人可以告诉我是否有办法查看与通过 API 生成的链接相关的统计信息吗?
谢谢你!
I am not sure if this is the correct forum for this question, but I'm not sure where else to ask it.
bit.ly provides stats for links that are generated through their site. However, it does not seem to create stats for links generated through their API.
Can someone tell if me there is a way to see the stats associated with a link generated through the API?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要以经过身份验证的用户身份使用 API,以便链接显示在仪表板中。跟踪 API 链接的统计信息,您只需要知道如何访问它们。
如果您想要特定 bit.ly 链接的统计信息(无论创建者是谁),您可以在 URL 中添加 + - 此链接指向 StackOverflow (http://bit.ly/3UaZQr) 的统计数据位于 http://bit.ly/3UaZQr+ 。
You need to use the API as an authenticated user so the links appear in your dashboard. Stats are tracked for API links, you just need to know how to get to them.
If you want the stats for a specific bit.ly link regardless of creator, you can add a + to the URL - this link to StackOverflow (http://bit.ly/3UaZQr) has stats at http://bit.ly/3UaZQr+.
我也看到同样的事情。我可以查看链接的历史记录,例如:http://bit.ly/info/t3XJe - 并且缩短属性是正确的,但此链接(通过 API 创建)没有出现在我的历史记录中。
我正在使用帐户登录和 api 密钥通过 api.bit.ly 缩短链接。响应是正确的(来自 bit.ly),链接被缩短,但在我最近的 RSS 提要或 bit.ly 主页上显示的唯一链接是通过 Web 界面创建的链接。
I'm seeing the same thing. I can view the history for a link, say this one: http://bit.ly/info/t3XJe - and the shortening attribution is correct, but this link (created via the API) does not show up in my history.
I'm shortening the link via api.bit.ly using an account login and api key. The response is correct (from bit.ly), the link is shortened, but the only links that show up in my recent RSS feed or on the bit.ly home page are those created via the web interface.
调用 REST API 的
/shorten
操作时,您必须添加&history=1
参数来告诉 bit.ly 将 URL 添加到网络历史记录中经过身份验证的用户。例如:
上述链接的可点击版本
When calling the
/shorten
action of the REST API, you have to add a&history=1
parameter to tell bit.ly to add the URL to the web history for the authenticated user.For example:
Clickable version of above link