---
title: "Topic Classification"
method: GET
path: "/v1/data/x/ai/topic-classification"
tags: ["X (Twitter): AI"]
---

# Topic Classification

`GET /v1/data/x/ai/topic-classification`

## Request

- Base URL: `https://api.superagnt.com`
- URL: `https://api.superagnt.com/v1/data/x/ai/topic-classification`
- Auth: API key in header `Authorization`

Allows you to automatically extract meaning from text by identifying recurrent themes or topics

## Query parameters

- `text` string, required

## Response `200`

200

- object
  - `text` string
  - `hash` string
  - `trace_id` string
  - `topics` object[]
    - `label` string
    - `confidence` number
    - `rank` integer
    - `label_id` integer
  - `elapsed_time` number

---

[API](https://skmtc.dev/superagnt/apis/superagnt-api.md) · [All operations](https://skmtc.dev/superagnt/apis/superagnt-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superagnt/apis/superagnt-api/revisions/b2d8de30ccf0?raw)
