API
Linguify Language Detector API
Welcome to Linguify Language Detector API—your one-stop, high-performance solution for all your language detection and translation needs! Linguify makes it easy for developers, businesses, and creators to integrate multilingual capabilities into their applications with speed, precision, and flexibility.
The API caters to a wide range of programming languages, including but not limited to: C, Clojure, C#, GO, Java, JavaScript, Kotlin, Node.js, Objective-C, OCaml, PHP, PowerShell, Python, R, RapidQL, Ruby, Shell, and Swift.
Introduction
API Overview
Linguify is crafted to elevate your app’s global reach, allowing users from diverse language backgrounds to engage with ease. Whether you’re looking to detect the language of input text, translate text between languages, or seamlessly auto-detect and translate, Linguify has you covered.
Key Features:
Accurate Language Detection: Identify the language of any input text with high accuracy and receive probability scores for confident decision-making.
Robust Text Translation: Translate between languages effortlessly with our reliable translation endpoint.
Auto-Translation with Detection: Detect the language of input text automatically and translate it to the desired target language in one smooth step, reducing user input and enhancing experience.
Additional Highlights:
Efficient: Built with speed and scalability in mind, Linguify performs reliably even under high loads.
User-Friendly: With simple endpoints and clear parameters, integrating Linguify into your projects is as easy as it gets.
Global Ready: Serve users worldwide and break down language barriers with our powerful multilingual support.
Endpoints
Endpoints Overview
Detect Language
Identify the language of any input text with high accuracy and receive probability scores for confident decision-making.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Yes | The text for which you want to detect the language. |
Python Requests Example:
import requests url = "https://linguify-language-detector-api.p.rapidapi.com/detect" querystring = {"text":"War doesn't show who's right, just who's left."} headers = { "x-rapidapi-key": "Sign Up for Key", "x-rapidapi-host": "linguify-language-detector-api.p.rapidapi.com" } response = requests.get(url, headers=headers, params=querystring) print(response.json())
Response Example:
{ "detected_language":"en", "probability":0.94778972864151 }
Language Translation
The /translate endpoint translates text from one language (from) to another (to). It supports both GET and POST methods, making it versatile for integration with various applications.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Yes | The text for which you want to detect the language. |
from | string | Yes | The source language code (e.g., en for English, es for Spanish) that the text is originally in. |
to | string | Yes | The target language for the translation (e.g., fr for French, de for German). |
Python Requests Example:
import requests url = "https://linguify-language-detector-api.p.rapidapi.com/translate" querystring = {"text":"Hi there!","from":"en","to":"fr"} headers = { "x-rapidapi-key": "Sign Up for Key", "x-rapidapi-host": "linguify-language-detector-api.p.rapidapi.com" } response = requests.get(url, headers=headers, params=querystring) print(response.json())
Response Example:
{ "from": "en", "original_text": "Hi there!", "to": "fr", "translated_text": "Bonjour !" }
Language Auto Translation
The /auto-translate endpoint automatically detects the language of the provided text and translates it into the desired target language. It supports both GET and POST methods.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Yes | The text for which you want to detect the language. |
to | string | Yes | The target language for the translation (e.g., fr for French, de for German). |
Python Requests Example:
import requests url = "https://linguify-language-detector-api.p.rapidapi.com/auto-translate" querystring = {"text":"Today was a good day!","to":"fr"} headers = { "x-rapidapi-key": "Sign Up for Key", "x-rapidapi-host": "linguify-language-detector-api.p.rapidapi.com" } response = requests.get(url, headers=headers, params=querystring) print(response.json())
Response Example:
{ "detected_language": "en", "detected_probability": 0.99989253282547, "original_text": "Today was a good day!", "to": "fr", "translated_text": "Aujourd'hui était une bonne journée !" }
Subscribe to Linguify Language Detector API
Subscribe to Linguify Language Detector API
Subscribe to Linguify Language Detector API
Subscribe to Linguify Language Detector API