Everything you need to call tuyyiAPI from your WhatsApp bot.
https://tuyyiapi.eu.cc
Add your API key to every request, either as the apikey query parameter or the x-api-key header. Create a free account to get one.
GET https://tuyyiapi.eu.cc/api/status?apikey=YOUR_API_KEY
{
"creator": "@tuyyiapi",
"status": true,
"data": {
"...": "..."
}
}{
"creator": "@tuyyiapi",
"status": false,
"msg": "Invalid API key"
}| 200 | Request succeeded |
|---|---|
| 400 | A parameter is missing or invalid |
| 401 | API key missing or invalid |
| 403 | Key suspended, or the endpoint needs a higher plan |
| 404 | Endpoint not found |
| 429 | Per-minute or daily limit reached |
| 500 | Unexpected server error |
Successful requests include X-RateLimit-Limit and X-RateLimit-Remaining headers with your daily quota.
/api/base64Encode text to Base64 or decode Base64 back to text.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text (or Base64 string) to convert |
mode | string | no | Conversion direction (default: encode) |
curl "https://tuyyiapi.eu.cc/api/base64?apikey=YOUR_API_KEY&text=tuyyiAPI&mode=encode"
/api/hashCreate a hash digest (md5, sha1, sha256 or sha512) of a text.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text to hash |
algo | string | no | Hash algorithm (default: sha256) |
curl "https://tuyyiapi.eu.cc/api/hash?apikey=YOUR_API_KEY&text=hello%20world&algo=sha256"
/api/uuidGenerate random UUID v4 values.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
count | number | no | How many UUIDs to generate (1-20) (default: 1) |
curl "https://tuyyiapi.eu.cc/api/uuid?apikey=YOUR_API_KEY&count=3"
/api/passwordGenerate a cryptographically random password.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
length | number | no | Password length (4-64) (default: 16) |
symbols | boolean | no | Include symbols (default: true) |
curl "https://tuyyiapi.eu.cc/api/password?apikey=YOUR_API_KEY&length=16&symbols=true"
/api/loremGenerate placeholder paragraphs.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
paragraphs | number | no | Number of paragraphs (1-5) (default: 1) |
curl "https://tuyyiapi.eu.cc/api/lorem?apikey=YOUR_API_KEY¶graphs=2"
/api/slugTurn any text into a URL-friendly slug.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text to slugify |
curl "https://tuyyiapi.eu.cc/api/slug?apikey=YOUR_API_KEY&text=Halo%20Dunia!%20Ini%20Judul%20Artikel"
/api/wordcountCount characters, words, sentences and lines, plus an estimated reading time.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text to analyse |
curl "https://tuyyiapi.eu.cc/api/wordcount?apikey=YOUR_API_KEY&text=Satu%20dua%20tiga.%20Empat%20lima%20enam!"
/api/textcaseConvert text to upper, lower, title, camel, pascal, snake or kebab case.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text to convert |
style | string | yes | Target case |
curl "https://tuyyiapi.eu.cc/api/textcase?apikey=YOUR_API_KEY&text=hello%20tuyyi%20api&style=camel"
/api/colorConvert a HEX color into RGB and HSL.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
hex | string | yes | HEX color, 3 or 6 digits, with or without # |
curl "https://tuyyiapi.eu.cc/api/color?apikey=YOUR_API_KEY&hex=00a884"
/api/timestampCurrent time (or a given Unix timestamp) in any IANA timezone.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
tz | string | no | IANA timezone name (default: Asia/Jakarta) |
ts | number | no | Unix timestamp in seconds or milliseconds (default: now) |
curl "https://tuyyiapi.eu.cc/api/timestamp?apikey=YOUR_API_KEY&tz=Asia%2FJakarta&ts=1735689600"
/api/morseEncode text to Morse code or decode Morse back to text.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
text | string | yes | Text or Morse (letters separated by space, words by " / ") |
mode | string | no | Conversion direction (default: encode) |
curl "https://tuyyiapi.eu.cc/api/morse?apikey=YOUR_API_KEY&text=sos&mode=encode"
/api/calcSafely evaluate a math expression. Supports + - * / % ^ and parentheses.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
expression | string | yes | Math expression |
curl "https://tuyyiapi.eu.cc/api/calc?apikey=YOUR_API_KEY&expression=(12%2B8)*3%5E2%2F4"
/api/terbilangSpell a number out in Indonesian words.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
number | number | yes | Integer to spell out |
curl "https://tuyyiapi.eu.cc/api/terbilang?apikey=YOUR_API_KEY&number=1250000"
/api/romanConvert an Arabic number (1-3999) to Roman numerals, or Roman numerals to a number.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
value | string | yes | A number like 2026 or Roman like MMXXVI |
curl "https://tuyyiapi.eu.cc/api/roman?apikey=YOUR_API_KEY&value=2026"
/api/zodiacFind the zodiac sign for a birth date.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
date | string | yes | Birth date, YYYY-MM-DD |
curl "https://tuyyiapi.eu.cc/api/zodiac?apikey=YOUR_API_KEY&date=2000-08-17"
/api/ageCalculate exact age and the countdown to the next birthday.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
birthdate | string | yes | Birth date, YYYY-MM-DD |
curl "https://tuyyiapi.eu.cc/api/age?apikey=YOUR_API_KEY&birthdate=2000-08-17"
/api/caklontongRandom Cak Lontong style trick question with its answer and explanation (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/caklontong?apikey=YOUR_API_KEY"
/api/riddleRandom riddle with its answer (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/riddle?apikey=YOUR_API_KEY"
/api/brainoutRandom general-knowledge question with a short answer (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/brainout?apikey=YOUR_API_KEY"
/api/whoamiGuess-who style riddle where the object describes itself (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/whoami?apikey=YOUR_API_KEY"
/api/whatwordScrambled word puzzle with its category and answer.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/whatword?apikey=YOUR_API_KEY"
/api/flagRandom country flag image URL with the country name.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/flag?apikey=YOUR_API_KEY"
/api/hangmanRandom word with a hint for a hangman game. Leave category empty for a random one.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
category | string | no | Word category: hewan, buah, profesi, sayuran, negara |
curl "https://tuyyiapi.eu.cc/api/hangman?apikey=YOUR_API_KEY&category=hewan"
/api/quizFamily-100 style question with the list of accepted answers (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/quiz?apikey=YOUR_API_KEY"
/api/kbbiCheck whether a word exists in the Indonesian dictionary list (KBBI) and get words that start with it.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
word | string | yes | Word to look up |
curl "https://tuyyiapi.eu.cc/api/kbbi?apikey=YOUR_API_KEY&word=abadi"
/api/truthRandom truth question for truth-or-dare (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/truth?apikey=YOUR_API_KEY"
/api/dareRandom dare challenge for truth-or-dare (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/dare?apikey=YOUR_API_KEY"
/api/bucinRandom cheesy love line (Indonesian).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/bucin?apikey=YOUR_API_KEY"
/api/8ballAsk a yes/no question and get a mysterious answer.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
question | string | yes | Your question |
curl "https://tuyyiapi.eu.cc/api/8ball?apikey=YOUR_API_KEY&question=Apakah%20hari%20ini%20hari%20keberuntunganku%3F"
/api/choosePick one random option from a comma separated list.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
options | string | yes | Comma separated options (2-50) |
curl "https://tuyyiapi.eu.cc/api/choose?apikey=YOUR_API_KEY&options=nasi%20goreng%2Cmie%20ayam%2Cbakso"
/api/diceRoll one or more dice.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
count | number | no | Number of dice (1-20) (default: 1) |
sides | number | no | Sides per die (2-100) (default: 6) |
curl "https://tuyyiapi.eu.cc/api/dice?apikey=YOUR_API_KEY&count=2&sides=6"
/api/coinflipFlip a coin.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/coinflip?apikey=YOUR_API_KEY"
/api/numberRandom integer in a range (inclusive).
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
min | number | no | Minimum value (default: 1) |
max | number | no | Maximum value (default: 100) |
curl "https://tuyyiapi.eu.cc/api/number?apikey=YOUR_API_KEY&min=1&max=100"
/api/avatarSVG imageGenerate an SVG avatar from a name. The color is derived from the name so it stays the same every time.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
name | string | yes | Full name |
size | number | no | Image size in px (32-1024) (default: 256) |
shape | string | no | Avatar shape (default: circle) |
curl "https://tuyyiapi.eu.cc/api/avatar?apikey=YOUR_API_KEY&name=Tuyyi%20API&size=256&shape=circle" -o result.svg
/api/placeholderSVG imageGenerate an SVG placeholder image with custom size and label.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
width | number | no | Width in px (16-2000) (default: 600) |
height | number | no | Height in px (16-2000) (default: 400) |
text | string | no | Label (default: width×height) |
curl "https://tuyyiapi.eu.cc/api/placeholder?apikey=YOUR_API_KEY&width=600&height=400&text=tuyyiAPI" -o result.svg
/api/statusNo key neededCheck that the API is online. This endpoint does not need an API key.
| Name | Type | Required | Description |
|---|
curl "https://tuyyiapi.eu.cc/api/status"
/api/myipReturn the IP address and user-agent the request came from.
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | yes | Your API key (or send the x-api-key header) |
curl "https://tuyyiapi.eu.cc/api/myip?apikey=YOUR_API_KEY"