---
title: AI Text Content Classification API
slug: content-classification
url: https://apyhub.com/apyhub/service/content-classification
provider: ApyHub
categories: [Model Kit]
tags: [text-classification, content-categorization, nlp, topic-detection]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 500
mcp: true
alias: ai-text-content-classification
---

# AI Text Content Classification API

Classify text with a Google-backed model. Send text plus requested_service and get structured classification data for moderation and routing.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/content-classification` | What it does Classifies the supplied text using the requested service and returns a JSON object con… | 500 |

## Endpoint reference

### Content Classification

`POST https://api.eu.apyhub.com/apyhub/content-classification` · 500 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes | Example: `ApyHub provides powerful APIs for developers worldwide.`. |
| `google.key` | body | string | no | Example: `AIzaSyExampleKey123456789`. |
| `google.google_language` | body | string | no | Example: `en`. |
| `requested_service` | body | string | yes | One of: google. Example: `google`. |

#### Quickstart

Send a short piece of text and ask the API to classify it with Google.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/content-classification" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"ApyHub provides powerful APIs for developers worldwide.", "requested_service":"google", "google": {
        "key": "your-google-key"
    }}'
```

#### What you'll get back

Returns a JSON object with a `data` object field. When `requested_service` is `google`, `data.google` is present and contains the classification result as an object.

```json
{
  "data": {
    "google": {}
  }
}
```

## About

## What it does
Content Classification lets you send text and get a Google-backed classification response in return. The endpoint accepts a `body` object with `text` and `requested_service`, and supports a `google` object with a `key` and optional `google_language` when you need to pass Google-specific settings.

Use it when you need to label or route user-generated text, sort incoming support content, or add lightweight content analysis to a workflow. Because the response wraps the result under `data.google` when `requested_service` is `google`, you can integrate it into an existing parser without guessing at extra fields.

The schema is intentionally narrow: you provide the text to classify and the requested service, and the API returns a structured result object. That makes Content Classification a fit for pipelines that need deterministic responses for moderation, enrichment, or downstream AI workflows.

If your app already stores language preferences or API credentials, you can pass them through the `google` object alongside the text and keep the integration focused on a single classification call.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Google                       |  500 |

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/content-classification
