---
title: "Locale Detector"
method: POST
path: "/parserservice/processlocale"
tags: ["Endpoints"]
---

# Locale Detector

`POST /parserservice/processlocale`

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

## Request body

- ProcessLocaleRequestJSON
  - `binaryData` string, byte, required — Base64-encoded binary content of the file
  - `extension` string — File extension, such as 'pdf', 'docx', 'png'

## Response `200`

OK

- ProcessLocaleResponseJSON
  - `status` boolean — Indicates whether the request was successful
  - `statusCode` string — Status code of the response
  - `requestId` string, uuid — Unique request identifier
  - `timeStamp` string, date-time — Timestamp of the response
  - `responseData` object
    - `bgtres` object[], required
      - `@code` string, required — Detected locale code
      - `@confidence` string, required — Confidence score (as string)

---

[API](https://skmtc.net/lightcast/apis/alumni-pathways-2-0.md) · [All operations](https://skmtc.net/lightcast/apis/alumni-pathways-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightcast/alumni-pathways-2-0/versions/fc66b9877391/schema)
