freeapis

Detect Language

检测文本语言

认证方式
API Key
HTTPS
Yes
CORS
Unknown

简介

Detect Language 识别文本的语言——160+ 种语言带置信度。认证是免费 API 密钥(无效密钥返回 401 带 {"error":{"code":1,"message":"Invalid API key"}}——已实测)。

快速开始

检测(替换 YOUR_KEY):

curl "https://ws.detectlanguage.com/0.2/detect?q=hello+world" \
  -H "Authorization: Bearer YOUR_KEY"
{
  "data": {
    "detections": [ { "language": "en", "isReliable": true, "confidence": 99.8 } ]
  }
}

文本放 body:

curl -X POST "https://ws.detectlanguage.com/0.2/detect" \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "Bonjour le monde"}'

认证方式

  • 在 detectlanguage.com 注册 → 免费 API 密钥。
  • 通过 Authorization: Bearer YOUR_KEY 请求头携带(无效密钥 → 401,已实测)。

速率限制与注意事项

  • 免费层:约 10,000 字符/天(以文档为准);付费档可扩展。
  • 检测 160+ 语言;结果含 confidenceisReliable
  • 有批量和用户代理端点。

常见问题

Detect Language 免费吗? 免费层带每日字符额度;更多需要付费。

如何获取密钥? 在 detectlanguage.com 注册——密钥会邮件发送。

认证风格是什么? Authorization: Bearer 请求头(已实测)。

文本分析 分类更多

APIAuthHTTPSCORS
apilayer languagelayer

Language Detection JSON API supporting 173 languages

OAuthYesUnknown
Audexum

Text-to-speech REST API with 43 voices and 33 languages

API KeyYesYes
Aylien Text Analysis

A collection of information retrieval and natural language APIs

API KeyYesUnknown
Cloudmersive Natural Language Processing

Natural language processing and text analysis

API KeyYesYes
Code Detection

Detect, label, format and enrich the code in your app or in your data pipeline

OAuthYesUnknown