{
"backend": "unified_multihead_tier1",
"top_label": "Autos & Vehicles",
"top_score": 0.45469558238983154,
"predictions": [
{
"label": "Autos & Vehicles",
"score": 0.45469558238983154
},
{
"label": "Computers & Electronics",
"score": 0.35932156443595886
},
{
"label": "Business & Industrial",
"score": 0.09543757885694504
}
],
"hierarchy": null
}
curl --location --request POST 'https://zylalabs.com/api/13323/iab+content+classification+api/27618/predict+iab+tier+1+categories' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Electric vehicle charging infrastructure investment."
}'
{
"backend": "unified_multihead_tier2",
"top_label": "Electronics & Electrical",
"top_score": 0.5487509965896606,
"predictions": [
{
"label": "Electronics & Electrical",
"score": 0.5487509965896606
},
{
"label": "Motor Vehicles (By Type)",
"score": 0.08097188919782639
},
{
"label": "Investing",
"score": 0.036358483135700226
}
],
"hierarchy": null
}
curl --location --request POST 'https://zylalabs.com/api/13323/iab+content+classification+api/27619/predict+iab+tier+2+categories' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Electric vehicle charging infrastructure investment."
}'
{
"backend": "unified_multihead_tier3",
"top_label": "Electronic Components",
"top_score": 0.28320083022117615,
"predictions": [
{
"label": "Electronic Components",
"score": 0.28320083022117615
},
{
"label": "Power Supplies",
"score": 0.14686889946460724
},
{
"label": "Music Equipment & Technology",
"score": 0.0927649736404419
}
],
"hierarchy": null
}
curl --location --request POST 'https://zylalabs.com/api/13323/iab+content+classification+api/27620/predict+iab+tier+3+categories' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Electric vehicle charging infrastructure investment."
}'
{
"backend": "unified_multihead",
"tiers": {
"tier1": {
"top_label": "Autos & Vehicles",
"top_score": 0.45469558238983154,
"predictions": [
{
"label": "Autos & Vehicles",
"score": 0.45469558238983154
},
{
"label": "Computers & Electronics",
"score": 0.35932156443595886
},
{
"label": "Business & Industrial",
"score": 0.09543757885694504
}
]
},
"tier2": {
"top_label": "Electronics & Electrical",
"top_score": 0.5487509965896606,
"predictions": [
{
"label": "Electronics & Electrical",
"score": 0.5487509965896606
},
{
"label": "Motor Vehicles (By Type)",
"score": 0.08097188919782639
},
{
"label": "Investing",
"score": 0.036358483135700226
}
]
},
"tier3": {
"top_label": "Electronic Components",
"top_score": 0.28320083022117615,
"predictions": [
{
"label": "Electronic Components",
"score": 0.28320083022117615
},
{
"label": "Power Supplies",
"score": 0.14686889946460724
},
{
"label": "Music Equipment & Technology",
"score": 0.0927649736404419
}
]
}
}
}
curl --location --request POST 'https://zylalabs.com/api/13323/iab+content+classification+api/27621/predict+across+multiple+tiers+in+one+call' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "Electric vehicle charging infrastructure investment."
}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 IAB内容分类 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
使用分层和统一的预测端点将内容分类为IAB类别
每个端点返回关于IAB类别的预测,包括一个主要标签、最高分和其他预测及其相应分数的列表。例如,Tier 1端点返回主要类别及其分数,以及其他潜在类别及其分数
响应数据中的关键字段包括“top_label”(最高预测类别)“top_score”(最高标签的置信度分数)和“predictions”(其他类别及其分数的数组)每个预测包括一个“label”和一个“score”
响应数据被组织成JSON结构。每个端点返回一个“后端”标识符,后面是单一类别预测(对于一级、二级或三级)或用于多层预测的嵌套结构,包含每个层级的单独部分
每个端点提供不同层级的IAB类别的预测 第一级关注广泛类别 第二级提供更具体的子类别 第三级提供更细致的分类 统一的端点允许一次调用跨所有层级的预测
用户可以通过在POST请求的主体中指定想要分类的内容来定制他们的请求。API处理这些输入以根据提供的数据返回相关的类别预测
典型的使用案例包括广告内容分类 内容审核以及增强搜索功能 企业可以利用这些分类更有效地投放广告或根据用户兴趣组织内容
数据准确性通过对多样化数据集的持续模型训练和验证得以维持 该API利用机器学习技术随着时间的推移改善预测,确保可靠的类别分类
如果API返回部分或空结果,用户应该检查输入数据的质量和相关性。实现后备逻辑来处理这种情况,比如使用默认类别或提示重新分类,可以提高用户体验