apyhub
ARTIFICIAL INTELLIGENCE

IAB Unified Content Classification API

What it does

Unified Classification predicts labels across one or more tiers from a URL, text, title, domain, or keywords. Send the content you want classified and get back scored label candidates for each requested tier.

Use Unified Classification when you need to route articles, sort product pages, organize support content, or apply a taxonomy consistently across a large dataset. You can ask for the top predictions overall with top_k, or narrow the request by passing specific tiers such as tier1 and tier2.

The response returns a tiers object. Each tier maps to an array of label objects, and each object includes a label and a numeric score. That makes it easy to rank results, choose the best match, or display multiple classification options in your own app.

This API is a fit for content tagging, category assignment, and automated triage where you need structured classification results from a single request.

POST
Predict across multiple tiers in one call
http://localhost:8080/dosvak/classify-unified
QUICKSTARTGUIDE

Quickstart

Classify some text or a URL into one or more tiers with the minimum required JSON body.

curl -X POST "http://localhost:8080/dosvak/classify-unified" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "A new AI startup raised seed funding for its product launch.",
    "top_k": 3
  }'

What you'll get back

Returns a JSON object with a tiers object. Each key in tiers maps to an array of classification results, and each result object includes a label string and a score number.

{
  "tiers": {
    "tier1": [
      {
        "label": "Technology",
        "score": 0.98
      }
    ]
  }
}
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*
tiers
Which tiers to predict, e.g. ['tier1', 'tier2'].

About this endpoint

What it does

Predicts classifications across one or more tiers in a single POST request. You send one or more content signals in the request body, and the response returns tier-specific prediction lists.

Request Body

ParameterTypeMandatoryDescription
urlStringNoA URL to classify. Nullable.
textStringNoText 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.
tiersString ArrayNoWhich tiers to predict, for example ['tier1', 'tier2']. Nullable.

Response

Returns a JSON object with a tiers object field. tiers is a map whose values are arrays of prediction objects; each prediction object contains label and score fields, and may include additional properties.

ParameterTypeMandatoryDescription
tiersObjectNoA map of tier names to arrays of prediction objects. Each prediction object includes label as a string and score as a number. The schema allows additional properties.

Body

Name
Type
Description
bodyREQUIRED
any
▣ 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.