{
  "x402Version": 2,
  "id": 35692,
  "slug": "35692",
  "resource": "https://agentsvc.io/api/v1/proxy/language-detect",
  "description": "Detect the language of a text (80+ languages) with ISO 639-1 and 639-3 codes, confidence, a reliability flag and the top candidates. Runs locally, nothing is stored. Params: text (required, up to 20,000 characters), top (number of candidates, default 3).",
  "type": "http",
  "serviceName": "Language Detection",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Media",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "candidates": {
                "items": {
                  "properties": {
                    "iso639_1": {
                      "type": "string"
                    },
                    "iso639_3": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "score": {
                      "type": "number"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "characters": {
                "type": "integer"
              },
              "confidence": {
                "type": "number"
              },
              "iso639_1": {
                "type": "string"
              },
              "iso639_3": {
                "type": "string"
              },
              "language": {
                "type": "string"
              },
              "reliable": {
                "type": "boolean"
              }
            },
            "required": [
              "language",
              "iso639_1",
              "confidence"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "text",
      "info": {
        "input": {
          "body": {
            "text": "Bonjour, je voudrais réserver une table pour deux personnes ce soir."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "candidates": [
                {
                  "iso639_1": "fr",
                  "iso639_3": "fra",
                  "name": "French",
                  "score": 1
                },
                {
                  "iso639_1": "es",
                  "iso639_3": "spa",
                  "name": "Spanish",
                  "score": 0.622
                }
              ],
              "characters": 68,
              "confidence": 0.878,
              "iso639_1": "fr",
              "iso639_3": "fra",
              "language": "French",
              "reliable": true
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "top": {
                    "default": 3,
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "candidates": {
                        "items": {
                          "properties": {
                            "iso639_1": {
                              "type": "string"
                            },
                            "iso639_3": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "score": {
                              "type": "number"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "characters": {
                        "type": "integer"
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "iso639_1": {
                        "type": "string"
                      },
                      "iso639_3": {
                        "type": "string"
                      },
                      "language": {
                        "type": "string"
                      },
                      "reliable": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "language",
                      "iso639_1",
                      "confidence"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "language",
        "detect",
        "nlp",
        "iso639",
        "text",
        "language-detection"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "language",
    "detect",
    "nlp",
    "iso639",
    "text",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:56:41.382Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T11:56:41.096Z"
  },
  "metadata": {
    "serviceName": "Language Detection",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "text",
        "info": {
          "input": {
            "body": {
              "text": "Bonjour, je voudrais réserver une table pour deux personnes ce soir."
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "candidates": [
                  {
                    "iso639_1": "fr",
                    "iso639_3": "fra",
                    "name": "French",
                    "score": 1
                  },
                  {
                    "iso639_1": "es",
                    "iso639_3": "spa",
                    "name": "Spanish",
                    "score": 0.622
                  }
                ],
                "characters": 68,
                "confidence": 0.878,
                "iso639_1": "fr",
                "iso639_3": "fra",
                "language": "French",
                "reliable": true
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "top": {
                      "default": 3,
                      "maximum": 10,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "text"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "candidates": {
                          "items": {
                            "properties": {
                              "iso639_1": {
                                "type": "string"
                              },
                              "iso639_3": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "score": {
                                "type": "number"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "characters": {
                          "type": "integer"
                        },
                        "confidence": {
                          "type": "number"
                        },
                        "iso639_1": {
                          "type": "string"
                        },
                        "iso639_3": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string"
                        },
                        "reliable": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "language",
                        "iso639_1",
                        "confidence"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "language",
          "detect",
          "nlp",
          "iso639",
          "text",
          "language-detection"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "candidates": [
          {
            "iso639_1": "string",
            "iso639_3": "string",
            "name": "string",
            "score": 0
          }
        ],
        "characters": 0,
        "confidence": 0,
        "iso639_1": "string",
        "iso639_3": "string",
        "language": "string",
        "reliable": true
      },
      "success": true
    },
    "type": "string"
  }
}