Classify content into IAB categories using tiered and unified prediction endpoints. This API is optimized for production enrichment pipelines and supports: - Tier 1 category prediction - Tier 2 category prediction - Tier 3 category prediction - Unified multi-tier prediction in one call
{
"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/aiquick+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/aiquick+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/aiquick+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/aiquick+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."
}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the AIQuick IAB Content Classification API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
Each endpoint returns predictions for IAB categories, including a top label, top score, and a list of additional predictions with their respective scores. For example, the Tier 1 endpoint returns the top category and its score, along with other potential categories and their scores.
Key fields in the response data include "top_label" (the highest predicted category), "top_score" (confidence score for the top label), and "predictions" (an array of other categories with their scores). Each prediction includes a "label" and a "score".
The response data is organized into a JSON structure. Each endpoint returns a "backend" identifier, followed by either a single category prediction (for Tier 1, 2, or 3) or a nested structure for multi-tier predictions, which includes separate sections for each tier.
Each endpoint provides predictions for IAB categories at different tiers. Tier 1 focuses on broad categories, Tier 2 offers more specific subcategories, and Tier 3 provides even finer classifications. The unified endpoint allows for predictions across all tiers in one call.
Users can customize their requests by specifying the content they want to classify in the body of the POST request. The API processes this input to return relevant category predictions based on the provided data.
Typical use cases include content classification for advertising, content moderation, and enhancing search functionalities. Businesses can use the classifications to target ads more effectively or organize content based on user interests.
Data accuracy is maintained through continuous model training and validation against diverse datasets. The API leverages machine learning techniques to improve predictions over time, ensuring reliable category classifications.
If the API returns partial or empty results, users should check the input data for quality and relevance. Implementing fallback logic to handle such cases, like using default categories or prompting for reclassification, can enhance user experience.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund