Public APIs
Detect Language API favicon

Detect Language API

Text Analysis

This API detects the language from any text (+ 50 languages supported).

Detect Language API's website screenshot

About Detect Language API

Language Detection API identifies the language of a submitted text sample and returns the language name, ISO 639-3 code, ISO 639-1 code, writing script, and a confidence score. Input is a text string sent in a request body, with a minimum length of 50 characters required so the detector has enough context to classify short or ambiguous phrases. Output is returned as a structured JSON data object containing the language, code, iso_code, script, and confidence fields.

The API is a single POST endpoint, hosted by ApyHub, at version 1.0.0. It is intended for developers who need to classify the language of incoming text, such as content from forms, support tickets, feeds, or imported documents, in order to route it through downstream systems like translation pipelines, search localization, or language-specific moderation and processing rules.

Key features

  • Detects the language of a text sample from a single API call
  • Returns detected language name, ISO 639-3 code, and ISO 639-1 code
  • Includes writing script and a confidence score in the response
  • Single POST endpoint for straightforward integration

Frequently asked questions

What does the Language Detection API return?

It returns a data object with the detected language name, ISO 639-3 code, ISO 639-1 code, script, and a confidence score.

Is there a minimum text length required?

Yes, the text sample must be at least 50 characters long so the detector has enough context to classify short or ambiguous phrases.

How do I authenticate requests?

Requests are authenticated with an apy-token header containing your API key.

What use cases is this suited for?

It's suited for sorting user-generated content, choosing translation pipelines, localizing search, and applying language-specific processing before indexing or moderation.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product