tuyyiAPI

API Documentation

Everything you need to call tuyyiAPI from your WhatsApp bot.

Getting started
Base URL
https://tuyyiapi.eu.cc
Authentication

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
Response format
{
  "creator": "@tuyyiapi",
  "status": true,
  "data": {
    "...": "..."
  }
}
{
  "creator": "@tuyyiapi",
  "status": false,
  "msg": "Invalid API key"
}
HTTP status codes
200Request succeeded
400A parameter is missing or invalid
401API key missing or invalid
403Key suspended, or the endpoint needs a higher plan
404Endpoint not found
429Per-minute or daily limit reached
500Unexpected server error

Successful requests include X-RateLimit-Limit and X-RateLimit-Remaining headers with your daily quota.

Tools

GET/api/base64
Base64

Encode text to Base64 or decode Base64 back to text.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText (or Base64 string) to convert
modestringnoConversion direction (default: encode)
Example request
curl "https://tuyyiapi.eu.cc/api/base64?apikey=YOUR_API_KEY&text=tuyyiAPI&mode=encode"
Example response
GET/api/hash
Hash

Create a hash digest (md5, sha1, sha256 or sha512) of a text.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText to hash
algostringnoHash algorithm (default: sha256)
Example request
curl "https://tuyyiapi.eu.cc/api/hash?apikey=YOUR_API_KEY&text=hello%20world&algo=sha256"
Example response
GET/api/uuid
UUID Generator

Generate random UUID v4 values.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
countnumbernoHow many UUIDs to generate (1-20) (default: 1)
Example request
curl "https://tuyyiapi.eu.cc/api/uuid?apikey=YOUR_API_KEY&count=3"
Example response
GET/api/password
Password Generator

Generate a cryptographically random password.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
lengthnumbernoPassword length (4-64) (default: 16)
symbolsbooleannoInclude symbols (default: true)
Example request
curl "https://tuyyiapi.eu.cc/api/password?apikey=YOUR_API_KEY&length=16&symbols=true"
Example response
GET/api/lorem
Lorem Ipsum

Generate placeholder paragraphs.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
paragraphsnumbernoNumber of paragraphs (1-5) (default: 1)
Example request
curl "https://tuyyiapi.eu.cc/api/lorem?apikey=YOUR_API_KEY&paragraphs=2"
Example response
GET/api/slug
Slugify

Turn any text into a URL-friendly slug.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText to slugify
Example request
curl "https://tuyyiapi.eu.cc/api/slug?apikey=YOUR_API_KEY&text=Halo%20Dunia!%20Ini%20Judul%20Artikel"
Example response
GET/api/wordcount
Word Counter

Count characters, words, sentences and lines, plus an estimated reading time.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText to analyse
Example request
curl "https://tuyyiapi.eu.cc/api/wordcount?apikey=YOUR_API_KEY&text=Satu%20dua%20tiga.%20Empat%20lima%20enam!"
Example response
GET/api/textcase
Text Case

Convert text to upper, lower, title, camel, pascal, snake or kebab case.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText to convert
stylestringyesTarget case
Example request
curl "https://tuyyiapi.eu.cc/api/textcase?apikey=YOUR_API_KEY&text=hello%20tuyyi%20api&style=camel"
Example response
GET/api/color
Color Converter

Convert a HEX color into RGB and HSL.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
hexstringyesHEX color, 3 or 6 digits, with or without #
Example request
curl "https://tuyyiapi.eu.cc/api/color?apikey=YOUR_API_KEY&hex=00a884"
Example response
GET/api/timestamp
Timestamp

Current time (or a given Unix timestamp) in any IANA timezone.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
tzstringnoIANA timezone name (default: Asia/Jakarta)
tsnumbernoUnix timestamp in seconds or milliseconds (default: now)
Example request
curl "https://tuyyiapi.eu.cc/api/timestamp?apikey=YOUR_API_KEY&tz=Asia%2FJakarta&ts=1735689600"
Example response
GET/api/morse
Morse Code

Encode text to Morse code or decode Morse back to text.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
textstringyesText or Morse (letters separated by space, words by " / ")
modestringnoConversion direction (default: encode)
Example request
curl "https://tuyyiapi.eu.cc/api/morse?apikey=YOUR_API_KEY&text=sos&mode=encode"
Example response
GET/api/calc
Calculator

Safely evaluate a math expression. Supports + - * / % ^ and parentheses.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
expressionstringyesMath expression
Example request
curl "https://tuyyiapi.eu.cc/api/calc?apikey=YOUR_API_KEY&expression=(12%2B8)*3%5E2%2F4"
Example response
GET/api/terbilang
Terbilang

Spell a number out in Indonesian words.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
numbernumberyesInteger to spell out
Example request
curl "https://tuyyiapi.eu.cc/api/terbilang?apikey=YOUR_API_KEY&number=1250000"
Example response
GET/api/roman
Roman Numerals

Convert an Arabic number (1-3999) to Roman numerals, or Roman numerals to a number.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
valuestringyesA number like 2026 or Roman like MMXXVI
Example request
curl "https://tuyyiapi.eu.cc/api/roman?apikey=YOUR_API_KEY&value=2026"
Example response
GET/api/zodiac
Zodiac

Find the zodiac sign for a birth date.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
datestringyesBirth date, YYYY-MM-DD
Example request
curl "https://tuyyiapi.eu.cc/api/zodiac?apikey=YOUR_API_KEY&date=2000-08-17"
Example response
GET/api/age
Age Calculator

Calculate exact age and the countdown to the next birthday.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
birthdatestringyesBirth date, YYYY-MM-DD
Example request
curl "https://tuyyiapi.eu.cc/api/age?apikey=YOUR_API_KEY&birthdate=2000-08-17"
Example response

Games

GET/api/caklontong
Cak Lontong

Random Cak Lontong style trick question with its answer and explanation (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/caklontong?apikey=YOUR_API_KEY"
Example response
GET/api/riddle
Tebak-tebakan

Random riddle with its answer (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/riddle?apikey=YOUR_API_KEY"
Example response
GET/api/brainout
Brain Out

Random general-knowledge question with a short answer (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/brainout?apikey=YOUR_API_KEY"
Example response
GET/api/whoami
Siapakah Aku

Guess-who style riddle where the object describes itself (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/whoami?apikey=YOUR_API_KEY"
Example response
GET/api/whatword
Susun Kata

Scrambled word puzzle with its category and answer.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/whatword?apikey=YOUR_API_KEY"
Example response
GET/api/flag
Tebak Bendera

Random country flag image URL with the country name.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/flag?apikey=YOUR_API_KEY"
Example response
GET/api/hangman
Hangman Word

Random word with a hint for a hangman game. Leave category empty for a random one.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
categorystringnoWord category: hewan, buah, profesi, sayuran, negara
Example request
curl "https://tuyyiapi.eu.cc/api/hangman?apikey=YOUR_API_KEY&category=hewan"
Example response
GET/api/quiz
Family Quiz

Family-100 style question with the list of accepted answers (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/quiz?apikey=YOUR_API_KEY"
Example response
GET/api/kbbi
KBBI Word Check

Check whether a word exists in the Indonesian dictionary list (KBBI) and get words that start with it.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
wordstringyesWord to look up
Example request
curl "https://tuyyiapi.eu.cc/api/kbbi?apikey=YOUR_API_KEY&word=abadi"
Example response

Random

GET/api/truth
Truth

Random truth question for truth-or-dare (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/truth?apikey=YOUR_API_KEY"
Example response
GET/api/dare
Dare

Random dare challenge for truth-or-dare (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/dare?apikey=YOUR_API_KEY"
Example response
GET/api/bucin
Bucin Quotes

Random cheesy love line (Indonesian).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/bucin?apikey=YOUR_API_KEY"
Example response
GET/api/8ball
Magic 8 Ball

Ask a yes/no question and get a mysterious answer.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
questionstringyesYour question
Example request
curl "https://tuyyiapi.eu.cc/api/8ball?apikey=YOUR_API_KEY&question=Apakah%20hari%20ini%20hari%20keberuntunganku%3F"
Example response
GET/api/choose
Choose One

Pick one random option from a comma separated list.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
optionsstringyesComma separated options (2-50)
Example request
curl "https://tuyyiapi.eu.cc/api/choose?apikey=YOUR_API_KEY&options=nasi%20goreng%2Cmie%20ayam%2Cbakso"
Example response
GET/api/dice
Dice Roll

Roll one or more dice.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
countnumbernoNumber of dice (1-20) (default: 1)
sidesnumbernoSides per die (2-100) (default: 6)
Example request
curl "https://tuyyiapi.eu.cc/api/dice?apikey=YOUR_API_KEY&count=2&sides=6"
Example response
GET/api/coinflip
Coin Flip

Flip a coin.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/coinflip?apikey=YOUR_API_KEY"
Example response
GET/api/number
Random Number

Random integer in a range (inclusive).

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
minnumbernoMinimum value (default: 1)
maxnumbernoMaximum value (default: 100)
Example request
curl "https://tuyyiapi.eu.cc/api/number?apikey=YOUR_API_KEY&min=1&max=100"
Example response

Image

GET/api/avatarSVG image
Initials Avatar

Generate an SVG avatar from a name. The color is derived from the name so it stays the same every time.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
namestringyesFull name
sizenumbernoImage size in px (32-1024) (default: 256)
shapestringnoAvatar shape (default: circle)
Example request
curl "https://tuyyiapi.eu.cc/api/avatar?apikey=YOUR_API_KEY&name=Tuyyi%20API&size=256&shape=circle" -o result.svg
Example response
GET/api/placeholderSVG image
Placeholder Image

Generate an SVG placeholder image with custom size and label.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
widthnumbernoWidth in px (16-2000) (default: 600)
heightnumbernoHeight in px (16-2000) (default: 400)
textstringnoLabel (default: width×height)
Example request
curl "https://tuyyiapi.eu.cc/api/placeholder?apikey=YOUR_API_KEY&width=600&height=400&text=tuyyiAPI" -o result.svg
Example response

Info

GET/api/statusNo key needed
Server Status

Check that the API is online. This endpoint does not need an API key.

Parameters
This endpoint takes no parameters.
NameTypeRequiredDescription
Example request
curl "https://tuyyiapi.eu.cc/api/status"
Example response
GET/api/myip
My IP

Return the IP address and user-agent the request came from.

Parameters
NameTypeRequiredDescription
apikeystringyesYour API key (or send the x-api-key header)
Example request
curl "https://tuyyiapi.eu.cc/api/myip?apikey=YOUR_API_KEY"
Example response