v1

latestOpenAPI 3.1.02026-07-242892032.8 MB
Endpoints

Locale Detector

Detects and returns the locale of the given document using BG Locale Detector.

post/parserservice/processlocale

Request body

binaryDatastring byte required

Base64-encoded binary content of the file

extensionstring

File extension, such as 'pdf', 'docx', 'png'

Example request

{
  "binaryData": "JVBERi0xLjUNJeLjzbEZWAcJYYzwbQASDAyA...",
  "extension": "pdf"
}

Response

OK

statusboolean

Indicates whether the request was successful

statusCodestring

Status code of the response

requestIdstring uuid

Unique request identifier

timeStampstring date-time

Timestamp of the response

Example response

{
  "status": true,
  "statusCode": "OK",
  "requestId": "3c7551c5-5688-43ce-98e7-e5010ed8ce09",
  "timeStamp": "2023-08-02 01:55:37.076",
  "responseData": {
    "bgtres": [
      {
        "@code": "en_us",
        "@confidence": "0.945"
      }
    ]
  }
}