2016-05-20 165 views
0

我正在尝试从Pinterest API中找到统计信息的方法。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获取这些数据?

回答

0

有没有官方支持的方式来与开发人员的API做到这一点。也就是说,这些小部件将这个用于使用此API的计数气泡。

https://widgets.pinterest.com/v1/urls/count.json?url=<url>

我不会依赖它来做任何重要的事情,因为它不受支持,并且可以随时更改/删除。

0

你可以得到的管脚数调用此URL

http://api.pinterest.com/v1/urls/count.json?callback=&url=http://stylehatch.co 

它会返回一个对象是这样的:

({"count": 0, "url": "http://stylehatch.co"})