如何使用Javascript识别网站类别



我目前正在开发一个web扩展。我想确定一个网站类别(社交媒体、在线零售商、流媒体…(。我一直在搜索数据库或现有程序,但找不到。你们有什么想法吗?

您可以使用URL categorization API。有不同的解决方案。以下是一些建议:

  • Klazify
  • 网络收缩器
  • WhoisXML
  • NetSTAR收入

以及Klazify API:的示例片段

var settings = {
"async": true,
"crossDomain": true,
"url": "https://www.klazify.com/api/categorize",
"method": "POST",
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer access_key",
"cache-control": "no-cache"
},
"processData": false,
"data": "{"url":"https://www.google.com"}n"
}

$.ajax(settings).done(function (response) {
console.log(response);
});

最新更新