Detect language of a text
agent-data-tools.revmesh2074.workers.dev/language/detect
Detect language of a text: the language as an ISO 639-1 and 639-3 code with its English name, from 82 languages (franc), offline and fast. Use to route a message to the right translator, model or support team, or to tag content by language.
GET
https://agent-data-tools.revmesh2074.workers.dev/language/detectUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/language/detect?text=Det+h%C3%A4r+%C3%A4r+en+mening+skriven+p%C3%A5+svenska+om+v%C3%A4der+och+resor.");
console.log(await res.json());Example input
{
"text": "Det här är en mening skriven på svenska om väder och resor."
}