DATPAQ Text Language API
Language detection with ISO codes and confidence scores
Language detection with ISO codes and confidence scores
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/datpaq-com:datpaq-com-text-language-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Datpaq Com Text Language API
version: 1.1.0
contact:
name: Datpaq Support
url: https://datpaq.com
license:
name: Proprietary
description: 'Operations tagged Text Language across 2 of this provider''s published API definitions: datpaq-com.yaml, datpaq-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Text Language
description: Language detection with ISO codes and confidence scores
paths:
/text-language/detect:
get:
tags:
- Text Language
operationId: textLanguageDetectGet
summary: Detect language of text (GET)
parameters:
- name: text
in: query
required: true
schema:
type: string
example: Bonjour, comment allez-vous aujourd'hui?
- name: top
in: query
required: false
schema:
type: integer
default: 1
- name: format
in: query
required: false
schema:
type: string
enum:
- iso639-3
- iso639-1
default: iso639-3
responses:
'200':
description: Detected language candidate(s)
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
languageCode: fr
languageName: French
confidence: 1
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
post:
tags:
- Text Language
operationId: textLanguageDetectPost
summary: Detect language of text (POST)
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
properties:
text:
type: string
top:
type: integer
default: 1
format:
type: string
enum:
- iso639-3
- iso639-1
default: iso639-3
example:
text: Ceci est un exemple de texte en français.
top: 1
format: 639-1
responses:
'200':
description: Detected language candidate(s)
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
languageCode: fr
languageName: French
confidence: 1
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/text-language/detect/batch:
post:
tags:
- Text Language
operationId: textLanguageDetectBatch
summary: Batch language detection
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- items
properties:
items:
type: array
maxItems: 50
items:
type: object
required:
- text
properties:
id:
type: string
text:
type: string
example:
items:
- id: '1'
text: Hello world
- id: '2'
text: Hola mundo
responses:
'200':
description: Per-item language detection results
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
results:
- id: '1'
language: eng
confidence: 0.99
- id: '2'
language: spa
confidence: 0.98
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/text-language/languages:
get:
tags:
- Text Language
operationId: textLanguageLanguages
summary: List supported languages
responses:
'200':
description: Supported language catalog
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
languages:
- code: eng
name: English
iso6391: en
- code: fra
name: French
iso6391: fr
count: 97
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
example: Invalid API key
correlationId:
type: string
description: Request tracking identifier for support
example: abc123-def456-789ghi
service:
type: string
description: Service name that produced the error
example: ip-geolocation
GenericSuccess:
type: object
description: Standard success envelope. The data property structure varies by endpoint.
properties:
correlationId:
type: string
description: Request tracking identifier
example: abc123-def456
data:
type: object
description: Response payload (structure varies by endpoint)
cached:
type: boolean
description: Whether the response was served from cache
example: false
responses:
BadRequest:
description: Bad request — missing or invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
RateLimited:
description: Rate limit exceeded — retry after the indicated period
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ServiceUnavailable:
description: Service temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized:
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: API key passed via x-api-key request header
ApiKeyQuery:
type: apiKey
in: query
name: api_key
description: API key passed as api_key query parameter
x-refined-from:
- datpaq-com.yaml
- datpaq-com-openapi.yaml