Skip to main content

Language Detection Service

Abstract

Language Detection Service

The methods available in this section allow you to call the language of a given text, file or URL.

Details find in these pages:

Web Service Method: Detect Text Language

Abstract

Web Service Method: Detect Text Language

Description

[text] Detects the language from a given text.

URL: /extractor/api/detectLanguage

Request

Supported Methods

POST

GET

Content-Type

application/x-www-form-urlencoded

HTTP Parameters

Parameter

Description

Type

Required

text

Text where language should be detected.

String

true

Response

This method returns execution results in JSON format.

Web Service Method: Detect URL Language

Abstract

Web Service Method: Detect URL Language

Description

[url] Detects the language from a given url.

URL: /extractor/api/detectLanguage

Request

Supported Methods

POST

GET

Content-Type

application/x-www-form-urlencoded

HTTP Parameters

Parameter

Description

Type

Required

url

URL where language should be detected

String

true

Response

This method returns execution results in plain text format.

Web Service Method: Detect File Language

Abstract

Web Service Method: Detect File Language

Description

[file] Detects the language from a file upload.

URL: /extractor/api/detectLanguage

Request

Supported Methods

POST

Content-Type

application/x-www-form-urlencoded

HTTP Parameters

Parameter

Description

Type

Required

file

File where language will be detected (word, excel, powerpoint, pdf, open documents) - Mimetype of file must be 'multipart/form-data'

MultipartFile

true

Response

This method returns execution results in plain text format.