apyhub
ARTIFICIAL INTELLIGENCE

IAB Tier 3 Content Classification API

What it does

IAB Category Classifier predicts IAB Tier 3 categories from a URL, page text, title, domain, or keywords. Send one or more of those signals along with an optional top_k value, and it returns the detected tier plus a ranked predictions array with each label and score.

Use it when you need to map articles, landing pages, or feed items into an IAB taxonomy for ad targeting, content routing, or reporting. If you only have a headline and a short snippet, you can classify that too; if you have the full page text or URL, the classifier can use that context as well.

The response is compact and easy to consume: tier tells you which IAB level was predicted, and predictions gives you the most likely category labels in descending order. Set top_k from 1 to 20 to control how many matches you receive.

IAB Category Classifier fits workflows that need consistent content tagging without maintaining a custom taxonomy lookup table. It is designed for batch enrichment and real-time classification alike.

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

Quickstart

Classify some text or a URL into IAB Tier 3 categories using the minimum required JSON body.

curl -X POST "http://localhost:8080/dosvak/classify-iab-tier-3" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"A new smartwatch with fitness tracking features","top_k":3}'

What you'll get back

Returns a JSON object with a tier string and a predictions array of objects. Each prediction includes a label string and a score number.

{
  "tier": "IAB Tier 3",
  "predictions": [
    {
      "label": "Wearable Technology",
      "score": 0.97
    }
  ]
}
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 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

ParameterTypeMandatoryDescription
urlStringNoSource URL to classify. Nullable.
textStringNoInput text to classify. Nullable.
titleStringNoTitle associated with the content. Nullable.
top_kIntegerNoNumber of predictions to return. Default: 3. Minimum: 1. Maximum: 20.
domainStringNoDomain associated with the content. Nullable.
keywordsStringNoKeywords 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.

ParameterTypeMandatoryDescription
tierStringNoPredicted tier value returned by the service.
predictionsObject ArrayNoArray of prediction objects. Each object contains label and score.
predictions[].labelStringNoPredicted category label.
predictions[].scoreNumberNoPrediction 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.