About this endpoint
What it does
Predicts IAB Tier 3 categories from the input content signals you provide. It accepts a body with optional source fields such as url, text, title, domain, and keywords, and returns a JSON object containing a tier string and a predictions array.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | Source URL to classify. Nullable. |
| text | String | No | Input text to classify. Nullable. |
| title | String | No | Title associated with the content. Nullable. |
| top_k | Integer | No | Number of predictions to return. Default: 3. Minimum: 1. Maximum: 20. |
| domain | String | No | Domain associated with the content. Nullable. |
| keywords | String | No | Keywords associated with the content. Nullable. |
Response
Returns a JSON object with a tier string field and a predictions array field. Each item in predictions is an object containing a label string and a score number.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| tier | String | No | Predicted tier value returned by the service. |
| predictions | Object Array | No | Array of prediction objects. Each object contains label and score. |
| predictions[].label | String | No | Predicted category label. |
| predictions[].score | Number | No | Prediction score. |