Random Unsplash

JawarthaOpen API!!

Latin -> Javanese | Javanese -> Latin

Innovative Bot that brige and perpetuate javanese culture

Start Now

About Jawartha

Our translation bot is an innovative solution designed to aid in the preservation of cross-language and cross-cultural heritage by enabling transliteration between Latin text and Javanese script, and vice versa. Built using modern technology and intelligent algorithms, this bot not only helps preserve cultural richness through the use of Javanese script but also provides practical value for individuals and businesses seeking to connect with local audiences on a more personal level. With support for API integration that allows for further development, this bot becomes an efficient and reliable tool to support growth and innovation in the digital age. Whether for educational purposes, cultural preservation, or business needs, our bot is a versatile solution for bridging language barriers.

Used Tech

Typescript
Node.js
Mysql

Usage

WhatsApp Bot

A simple translation bot on WhatsApp.

Telegram Bot

A simple translation bot on Telegram.

API

An API interface that supports further development

API ImplementationFree

Base URL
https://api.jawartha.my.id

Authentication

Header Example :

api-key: YOUR_API_KEY

Token
Endpoints

  1. Translation of Latin to Javanese Script
    • URL : /translate/latin-to-javanese
    • METHOD : GET or POST
    • Description: Converts Latin text to Javanese script.
    Request Body (POST)
    {
      "text": "pie kabare"
    }
    Request Example (POST)
    curl -X POST https://api.jawartha.my.id/translate/latin-to-javanese \
    -H "Content-Type: application/json" \
    -H "api-key: YOUR_API_KEY" \
    -d '{"text": "pie kabare"}'
    Request Example (GET)
    curl -X GET "https://api.jawartha.my.id/translate/latin-to-javanese?text=pie%20kabare" \
    -H "api-key: YOUR_API_KEY"
    Success Message
    {
      "originalText":"pie kabare",
      "translatedText":"ꦥꦶꦲꦺ ꦏꦧꦫꦺ"
    }
  2. Translation of Javanese Script to Latin
    • URL : /translate/javanese-to-latin
    • METHOD : GET or POST
    • Description: Converts Javanese script to Latin text .
    Request Body (POST)
    {
      "text": "ꦥꦶꦲꦺ ꦏꦧꦫꦺ"
    }
    Request Example (POST)
    curl -X POST https://api.jawartha.my.id/translate/javanese-to-latin \
    -H "Content-Type: application/json" \
    -H "api-key: YOUR_API_KEY" \
    -d '{"text": "ꦥꦶꦲꦺ ꦏꦧꦫꦺ"}'
    Request Example (GET)
    curl -X GET "https://api.jawartha.my.id/translate/javanese-to-latin?text=ꦥꦶꦲꦺ%20ꦏꦧꦫꦺ" \
    -H "api-key: YOUR_API_KEY"
    Success Message
    {
      "translatedText":"ꦥꦶꦲꦺ ꦏꦧꦫꦺ",
      "originalText":"pie kabare"
    }

API Setting

You can fully control your API just by sending this commands to our WhatsApp Bot

# Command Description
🟢 /on This command is used to activate your API, so that projects that use your API can run properly.
🔴 /off This command is used to deactive your API, so that so that your tokens will not be reduced and your project will not run properly.
/revoke This command is used to update your API Key when your API Key is accidentally leaked, so that you don't lose your token.
[Warning] Updating your API Key will cause projects which using your current API Key will not run until you update your project with your latest API Key.

Prebuild E.g.Serverless!!

This is an example of a prebuild application using the Jawatha API interface without server (Serverless)

HTML Code

    
    
    Translator Latin ke Aksara Jawa
    
    


    

Translator Latin ke Aksara Jawa

JavaScript Code

async function translateText() {
const textInput = document.getElementById('textInput').value;
const resultDiv = document.getElementById('result');

if (!textInput) {
    resultDiv.innerText = 'Masukkan teks untuk diterjemahkan!';
    return;
}

try {
    const response = await fetch('https://api.jawartha.my.id/translate/latin-to-javanese', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
        'api-key': 'YOUR_API_KEY'
    },
    body: JSON.stringify({ text: textInput })
    });

    console.log('Response status:', response.status);

    if (!response.ok) {
    throw new Error('Terjadi kesalahan pada API!');
    }

    const data = await response.json();
    console.log('Response data:', data);

    if (data.translatedText) {
    resultDiv.innerText = data.translatedText;
    } else {
    resultDiv.innerText = 'Gagal menerjemahkan!';
    }
} catch (error) {
    console.error('Error:', error);
    resultDiv.innerText = 'Terjadi kesalahan saat menghubungi API!';
}
}
      

API Pricing

Free Forever

Free API with Limited 500-Tokens/month

Extra TokensBest Choice

Only $1/1K tokens