freeapis

Detect Language

检测文本语言

认证方式
API Key
HTTPS
Yes
CORS
Unknown
数据来源
public-apis + marcelscruz

简介

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+ 语言;结果含 confidence 和 isReliable。
  • 有批量和用户代理端点。

常见问题

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

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

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

文本分析 分类更多

APIAuthHTTPSCORS
AI Text Moderation, Toxicity & Sentiment Analyzer

Detect sentiment, toxicity, and emotional aspects in text with AI moderation

API KeyYesUnknown↗
AI Translate text API

The Text Translation API translates text into any of the 80 supported languages, providing accurate and context-aware translations

API KeyYesUnknown↗
Analyse Keywords API

This API lets you extract high-frequency keywords, key phrases and latent semantic keywords from any URL

API KeyYesUnknown↗
apilayer languagelayer

Language Detection JSON API supporting 173 languages

OAuthYesUnknown↗
Audexum

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

API KeyYesYes↗