如何通过stackexchange api调用检索stackoverflow标签使用情况计数? [英] How to retrieve stackoverflow tag usage count via stackexchange api call?

查看:288
本文介绍了如何通过stackexchange api调用检索stackoverflow标签使用情况计数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过StackExchange API检索Ruby或Java之类的语言的标签使用次数".

I want to retrieve the 'tag usage count' of a language like Ruby or Java via the StackExchange API.

基本上,我想通过API调用来检索这些数字: https://stackoverflow.com/tags

Basically I want to retrieve these numbers via API call: https://stackoverflow.com/tags

例如如何通过StackExchange API调用在链接中看到Java的780k?

e.g. how do I get the 780k for Java as seen in the link via StackExchange API call?

有人知道吗?

我尝试了这个: https://api.stackexchange.com/2.2/search/advanced?order = desc& sort = activity& tagged = java& site = stackoverflow

但这并不能给我总数

使用Stack Exchange Data Explorer似乎很容易 http://data.stackexchange.com/stackoverflow/query/229727

It seems to be easy with the Stack Exchange Data Explorer http://data.stackexchange.com/stackoverflow/query/229727

但是如何通过API检索这些计数?

But how to retrieve these counts via API?

推荐答案

确定自己​​找到了答案:

ok found the answer myself:

https://api.stackexchange.com/2.2/tags?order = desc& sort = popular& inname = java& site = stackoverflow

只需将Java替换为所需的任何标签即可.

just replace java with whatever tag you need.

然后,标签计数包含在json响应中.

The Tag count then is included in the json response.

这篇关于如何通过stackexchange api调用检索stackoverflow标签使用情况计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆