apyhub
ARTIFICIAL INTELLIGENCE · MARKETING

IAB Tier 2 Content Classification API

What it does

IAB Category Classifier predicts IAB Tier 2 topic labels from a URL, page text, title, domain, or keywords. Send one or more of those inputs, and you get a ranked list of category predictions back.

Use the top_k field to control how many predictions you receive, from 1 to 20. The response includes the detected tier and a predictions array, where each prediction contains a label and a score. That makes it straightforward to route content into ad categories, segment articles, or attach taxonomy labels in a CMS or analytics pipeline.

This is a good fit when you need to classify web pages, editorial content, or marketing copy into a standard ad taxonomy without hand-tagging every item. For example, you can score inbound URLs before storing them, or classify text snippets as part of a content moderation or campaign workflow.

The service accepts nullable url, text, title, domain, and keywords fields, so you can send whatever context you have and let the model predict from it.

POST
Predict IAB Tier 2 categories
http://localhost:8080/dosvak/classify-iab-tier-2
QUICKSTARTGUIDE

Quickstart

Classify text, a URL, or both into IAB Tier 2 categories with the default top-k result count.

curl -X POST "http://localhost:8080/dosvak/classify-iab-tier-2" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Latest updates on electric vehicles and battery technology",
    "top_k": 3
  }'

What you'll get back

Returns a JSON object with a tier string and a predictions array. Each item in predictions is an object with a label string and a score number.

{
  "tier": "IAB Tier 2",
  "predictions": [
    { "label": "Electric Vehicles", "score": 0.98 },
    { "label": "Battery Technology", "score": 0.91 }
  ]
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

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

ParameterTypeMandatoryDescription
urlStringNoURL to classify.
textStringNoText content to classify.
titleStringNoTitle or headline to classify with the content.
top_kIntegerNoNumber of predictions to return. Default: 3. Minimum: 1. Maximum: 20.
domainStringNoDomain associated with the content.
keywordsStringNoKeywords 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.

AttributeTypeMandatoryDescription
tierStringNoPredicted IAB tier 2 category tier.
predictionsObject ArrayNoList of prediction objects. Each item contains label and score.
predictions[].labelStringNoPredicted category label.
predictions[].scoreNumberNoPrediction confidence score.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.