我试图找到一种方法来获取Pinterest API的URL统计信息。
像facebook图API:URL Object
或者在countserv
端点链接:
https://www.linkedin.com/countserv/count/share?format=json&url=https://www.linkedin.com/pulse/breaking-5-major-boolean-syntax-changes-irina-shamaeva
我知道这是可能的,因为这个站点返回给定URL的引脚数:
https://www.sharedcount.com/#url=https%3A%2F%2Fwww.facebook.com%2F
有谁知道如何从Pinterest API获取这些数据?
使用开发人员API没有官方支持的方法。也就是说,小部件使用此API来计算气泡
https://widgets.pinterest.com/v1/urls/count.json?url=<url>
。
我不会依赖于任何重要的东西,因为它不受支持,可以随时更改/删除。
您可以获取调用此URL的引脚数
http://api.pinterest.com/v1/urls/count.json?callback=&url=http://stylehatch.co
它将返回如下对象:
({"count": 0, "url": "http://stylehatch.co"})