82trust / 100
Lang Detect Analyze
by NetIntel in Developer tools
x402 APIPassing, checked 2 h ago
Detect the language of any text input using stopword-set matching and Unicode script analysis — returns the detected language, ISO code, a high/medium/low confidence level, and top alternative languages so agents can route multilingual content, trigger translation workflows, and classify text without a paid NLP API.
POST https://netintel.dev/lang-detect/analyze
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 236 ms typical, 236 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/lang-detect/analyze" \
-H "content-type: application/json" \
-d '{"text":"The report shows that the team finished the project on time and that the results were better than we expected. We will share the findings with the rest of the company at the meeting and then decide what to do next."}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnetintel.dev%2Flang-detect%2Fanalyze
const res = await pay("https://netintel.dev/lang-detect/analyze", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"The report shows that the team finished the project on time and that the results were better than we expected. We will share the findings with the rest of the company at the meeting and then decide what to do next."}),
});
console.log(await res.json());Example input
{
"text": "The report shows that the team finished the project on time and that the results were better than we expected. We will share the findings with the rest of the company at the meeting and then decide what to do next."
}Example output
{
"alternatives": [
{
"code": "pl",
"language": "Polish",
"score": 0.05
},
{
"code": "cs",
"language": "Czech",
"score": 0.05
},
{
"code": "pt",
"language": "Portuguese",
"score": 0.02
}
],
"confidence": "high",
"detected_language": "English",
"findings": [],
"grade": "A",
"is_multilingual": false,
"language_code": "en",
"score": 100,
"script": "Latin",
"text_length": 214,
"word_count": 41
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 378 ms | $0.005 |
| 7 h ago | Passed | 402 | 236 ms | $0.005 |