---
title: "Language Detection & Text Tagging API"
slug: language-detection-text-tagging
url: https://apyhub.com/skycraft/service/language-detection-text-tagging
provider: Skycraft
categories: [Artificial Intelligence]
tags: [text-analysis, natural-language-processing, sentiment-analysis, language-detection, spell-check, readability]
auth: api_key
version: 1.9.0
service_type: sync
endpoints: 3
atoms: 20
mcp: true
---

# Language Detection & Text Tagging API

Detect the language of any text with confidence scores, stem words to their root form, and tag parts of speech. Simple REST API with JSON responses.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/stem-text` | What it does Converts words in the provided text into their stemmed or root forms. This is useful f… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/detect-language` | What it does Detects the language of the provided text. It supports 99 languages (Apache OpenNLP la… | 20 |
| GET | `https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/tag-pos` | What it does Identifies the part of speech of words in the provided text and returns the text with… | 20 |

## Endpoint reference

### Stem Text API

`GET https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/stem-text` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | query | string | yes | Example: `The laziest dogs are jumping over the quicker brown foxes.`. |

#### Quickstart

Call this endpoint with your ApyHub API key:

```bash
curl "https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/stem-text?text=The%20cats%20are%20running%20in%20the%20gardens." \
  -H 'apy-token: $APY_TOKEN'
```

##### What you'll get back 

```json
{
  "original": "The cats are running in the gardens.",
  "stemmed": "The cat are run in the garden."
}
```

### Detect Language API

`GET https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/detect-language` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | query | string | yes | Example: `Das ist ein Text.`. |

#### Quickstart

Call this endpoint with your ApyHub API key:

```bash
curl "https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/detect-language" \?text=Das%20ist%20ein%20Text." \
  -H 'apy-token: $APY_TOKEN'
```

### Tag Part of Speech API

`GET https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/tag-pos` · 20 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | query | string | yes | Example: `The lazy dog jumps over the quick brown fox.`. |

#### Quickstart

Analyze the parts of speech in a sentence.

```bash
curl "https://api.eu.apyhub.com/skycraft/language-detection-text-tagging/tag-pos?text=The%20lazy%20dog%20jumps%20over%20the%20quick%20brown%20fox." \
  -H 'apy-token: $APY_TOKEN'
```

##### What you'll get back 

```json
{
  "tagged_text": "The/AT lazy/JJ dog/NN jumps/NNS over/UNDER the/AT quick/RB brown/JJ fox/NN"
}
```

## About

## What it does
Language Detection & Text Tagging API runs core linguistic preprocessing on a piece of text. Send a sentence or passage as a single `text` query parameter and get back structured JSON: the detected language with confidence scores, a stemmed version of the text, or the text annotated with part-of-speech tags.

`Detect Language` takes `text` and returns a list of candidate languages, each with a `language` code and a `confidence` score, most likely first; it works best on a full sentence or more. `Stem Text` takes `text` and returns the `original` alongside a `stemmed` version where each word is reduced to its root form, so "jumping" and "jumped" match. `Tag Part of Speech` takes `text` and returns `tagged_text`, the same text with a grammatical tag attached to each word.

Language Detection & Text Tagging API is a good fit when you need to route user content by language, normalize text before search indexing or matching, or feed grammatical structure into a lightweight NLP pipeline without hosting your own models.

## 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/skycraft/service/language-detection-text-tagging
