Agent Service · x402 · early usage

Detect the language of any text input using stopword-set matching and Unicode script an…

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 transl…

by netintel.dev · discovered, not yet claimed by its owner · updated 2026-10-13

30d calls8
30d payers4
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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.

Tags: language detection · text analysis · localization · language · nlp · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-13
Input example from Bazaar metadata
{
  "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."
}
Output example
{
  "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
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/29491.json for the price and payment options.
  3. Pay. Call GET https://netintel.dev/lang-detect/analyze. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.005 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Solana
Demand
8 calls · 4 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0050xdaDc335482AD545296Fd7b28518A251fFCbEb9Df300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.0058FVeybWnB4dYrxTuPK7WzFZNAiEcFVaDLFnKpRwVGr5s300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xdaDc335482AD545296Fd7b28518A251fFCbEb9Df",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "amountUsd": 0.005,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "8FVeybWnB4dYrxTuPK7WzFZNAiEcFVaDLFnKpRwVGr5s",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "5000",
    "amountUsd": 0.005,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "alternatives": {
          "type": "array"
        },
        "confidence": {
          "type": "string"
        },
        "detected_language": {
          "type": "string"
        },
        "findings": {
          "type": "array"
        },
        "grade": {
          "type": "string"
        },
        "is_multilingual": {
          "type": "boolean"
        },
        "language_code": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "script": {
          "type": "string"
        },
        "text_length": {
          "type": "number"
        },
        "word_count": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "alternatives": [
      "value"
    ],
    "confidence": "string",
    "detected_language": "string",
    "findings": [
      "value"
    ],
    "grade": "string",
    "is_multilingual": true,
    "language_code": "string",
    "score": 0,
    "script": "string",
    "text_length": 0,
    "word_count": 0
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://netintel.dev/lang-detect/analyze' -H 'Content-Type: application/json' --data '{"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."}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://netintel.dev/lang-detect/analyze", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"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.\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://netintel.dev/lang-detect/analyze", json=json.loads("{\"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.\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
netintel.dev
Endpoint
https://netintel.dev/lang-detect/analyze
Machine-readable
/resources/29491.json