ApyHub

Language Detection API

Automatically detect the language of any text. Get the language name, ISO 639-1 and 639-3 codes, script and a confidence score as JSON. Try it free. The…

AI & machine learning#text-analysis

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Automatically detect the language of any text. Get the language name, ISO 639-1 and 639-3 codes, script and a confidence score as JSON. Try it free.

The Language Detection API automatically identifies the language of a piece of text. Send any text of at least 50 characters and get back the language name, its ISO codes, its writing script and how confident the detection is, so you know what language you are dealing with before you translate, route or moderate it.

It is one POST endpoint with a single text field. The response comes back in a data object with five fields: language with the name, such as English, iso_code with the two-letter ISO 639-1 code, such as en, code with the three-letter ISO 639-3 code, such as eng, script with the writing system, such as Latin, and confidence as a score between 0 and 1. Use the ISO codes to pass the result straight into translation, search or localization tools, and use the confidence score to send uncertain results for review instead of acting on them.

Authenticate every request with your ApyHub token in the apy-token header. Documentation: https://apyhub.com/utility/language-detector

Endpoints 1

  • POSTDetect language from text/apyhub/detect-languageDetect the language of a text sample by sending the text in the request body.

API details

Base URL
https://api.eu.apyhub.com
Authentication
An API key in the apy-token header
Operations
1 operation on 1 pathPOST 1
Response formats
application/json
Description format
OpenAPI 3.0.3, API version 1.0.0

How to test the Language Detection API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Language Detection API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the apy-token header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Detect language from text” (POST /apyhub/detect-language), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Language Detection API?

Automatically detect the language of any text. Get the language name, ISO 639-1 and 639-3 codes, script and a confidence score as JSON. Try it free. The… It is listed under AI & machine learning and has 1 endpoint.

Who publishes the Language Detection API?

It is listed from ApyHub's public API description (an OpenAPI document), not published by ApyHub on Swastik Codes. Anyone who controls apyhub.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Language Detection API?

Requests go to https://api.eu.apyhub.com. Endpoint paths are added to this base URL.

How do I authenticate with the Language Detection API?

With an API key in the apy-token header.

How many endpoints does the Language Detection API have?

1 operation on 1 path (1 POST).

Is forking the Language Detection API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.