---
title: "Extract topics from input"
method: POST
path: "/topics"
tags: ["topics"]
---

# Extract topics from input

`POST /topics`

## Request

- Base URL: `https://api.rosette.com/rest/v1`
- URL: `https://api.rosette.com/rest/v1/topics`
- Auth: API key in header `X-RosetteAPI-Key`

Returns each topic extracted from the input. <br><br>The response is a list of extracted keyphrases and a list of extracted concepts.

## Request body

- union
  - object
    - `content` string
    - `language` string: 3 letter code of language.
    - `options` object
      - `conceptSalienceThreshold` number: Topics are only returned if the concept salience is greater than the threshold. Threshold must be between 0 and 1.
      - `keySalienceThreshold` number: Topics are only returned if the keyphrase salience is greater than the threshold. Threshold must be between 0 and 1.
  - object
    - `contentUri` string
    - `language` string: 3 letter code of language.
    - `options` object
      - `conceptSalienceThreshold` number: Topics are only returned if the concept salience is greater than the threshold. Threshold must be between 0 and 1.
      - `keySalienceThreshold` number: Topics are only returned if the keyphrase salience is greater than the threshold. Threshold must be between 0 and 1.

## Response `200`

OK

- TopicsResponse
  - `concepts` Concept[]: list of concepts
    - `conceptId` string
    - `phrase` string
    - `salience` number
  - `keyphrase` Keyphrase[]: list of keyphrases
    - `phrase` string
    - `salience` number

---

[API](https://skmtc.dev/babelstreet/apis/rosette-text-analytics.md) · [All operations](https://skmtc.dev/babelstreet/apis/rosette-text-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/babelstreet/apis/rosette-text-analytics/revisions/7c1d1497a5dd?raw)
