About this endpoint
What it does
Predicts IAB Tier 2 categories for the provided content signals and returns a JSON object containing the predicted tier plus a ranked list of category predictions.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | URL to classify. |
| text | String | No | Text content to classify. |
| title | String | No | Title or headline to classify with the content. |
| top_k | Integer | No | Number of predictions to return. Default: 3. Minimum: 1. Maximum: 20. |
| domain | String | No | Domain associated with the content. |
| keywords | String | No | Keywords associated with the content. |
Response
Returns a JSON object with a tier string field and a predictions array field. Each item in predictions is an object with label as a string and score as a number.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| tier | String | No | Predicted IAB tier 2 category tier. |
| predictions | Object Array | No | List of prediction objects. Each item contains label and score. |
| predictions[].label | String | No | Predicted category label. |
| predictions[].score | Number | No | Prediction confidence score. |