您可以使用questions/ 路由获取此信息。在此调用中,您会将您感兴趣的标签传递给tagged 参数(以分号(;)分隔)。
要将问题返回给带有一组标签的问题,请使用带有分号分隔的标签列表的 tagged 参数。这是一个 and 约束,传递 tagged=c;java 将只返回带有两个标签的问题。因此,传递超过 5 个标签将始终返回零结果。
对于您的具体问题(搜索ipv4),您可以以此为起点:
http://api.stackexchange.com/docs/questions#order=desc&sort=activity&tagged=ipv4&filter=!BHMIbze0EPheMk572h0ktETsgnphhU&site=stackoverflow&run=true
filter 是可选的,但我已经删除了一些默认字段以提供一个较小的示例。上面的链接返回的条目如下所示:
"items": [
{
"tags": [
"ruby-on-rails",
"ipv4",
"geokit"
],
"link": "http://stackoverflow.com/questions/29460004/rails-geokit-incorrectly-converting-ipv4-address-to-latitude-and-longitude",
"title": "Rails: Geokit incorrectly converting IPv4 address to latitude and longitude"
},
{
"tags": [
"networking",
"ip",
"ipv4",
"maxmind",
"cidr"
],
"link": "http://stackoverflow.com/questions/28358851/merging-of-multiple-ipv4-address-blocks-on-the-basis-of-their-country-region",
"title": "merging of multiple IPv4 address blocks on the basis of their country region"
},
...
}