Bot completo para o teu WhatsApp — menu de comandos, figurinhas, downloads, diversão e moderação. Atualizações e suporte incluídos.
POPULAR
Mensal
R$ 15,99
30 dias
Trimestral
R$ 42,00
90 dias
Semestral
R$ 78,00
180 dias
VITALÍCIO
Permanente
R$ 50,00
pagas uma vez · sem renovação
Bot Divulgação
Bot focado em divulgação — disparo para grupos, auto-divulgação e status, com anti-ban. Feito para promover a tua marca.
POPULAR
Mensal
R$ 15,00
30 dias
Trimestral
R$ 34,00
90 dias
Semestral
R$ 62,00
180 dias
VITALÍCIO
Permanente
R$ 50,00
pagas uma vez · sem renovação
API KH Empire — pré-pago (R$1 = 1000 requests)
A carregar…
143 endpoints prontos a usar
Figurinhas, downloads, IA, dados, diversão e mais — em qualquer bot, site ou app.
Comprar créditos
5.000 req
R$ 5
10.000 req
R$ 10
25.000 req
R$ 25
50.000 req
R$ 50
Ainda não tens um bot?
✦ Também temos bot
Bot Polar para WhatsApp
Menu completo — figurinhas, downloads, diversão e moderação — e por dentro já usa esta mesma API. Atualizações e suporte incluídos.
FigurinhasDownloadsDiversãoModeraçãoAnti-ban
a partir de R$ 15,99por mês
Sistema de Licenças · vende o teu bot com chaves
Tens um bot e queres vendê-lo?
Emite chaves de licença para os teus clientes e controla tudo: quem tem acesso, quando expira, quem partilhou a chave.
Não precisas de domínio, servidor nem base de dados — o teu bot valida com uma chamada à nossa API.
🔑 Chaves em segundos
Cria, renova e revoga quando quiseres.
🛡️ Anti-partilha
Uma chave = um bot. Se a passarem a outro, não liga.
⏰ Expira sozinha
Acabou o plano do cliente? O bot dele para.
📦 Até 500 clientes
Por projeto, sem custo por licença.
Assinatura
Sistema de Licenças · para criadores de bots
Emite chaves de licença para os clientes do TEU bot, na nossa infraestrutura. Sem domínio, sem servidor, sem base de dados — o teu bot valida com uma chamada. Até 500 licenças ativas.
POPULAR
Mensal
R$ 12,99
30 dias
Trimestral
R$ 34,00
90 dias
Semestral
R$ 62,00
180 dias
Como funciona
Assinas — recebes por email o teu segredo de projeto (sk_…).
Vendes o teu bot e, para cada cliente, crias uma chave (no painel aqui em baixo ou por API).
O bot do teu cliente valida a chave ao arrancar — código pronto mais abaixo.
Cliente não pagou? Revogas e o bot dele para na hora.
O teu painel
🔐 Entrar no painel
O segredo veio no email da assinatura. Fica guardado só neste navegador — nunca é enviado a mais ninguém.
—
—
Total
0
Ativas
0
Por ativar
0
A expirar
0
Inativas
0
➕ Nova licença
📋 As tuas licenças
Integrar no teu bot
Cola isto no arranque do teu bot. Se a chave não for válida, o bot não arranca.
// licenca.js — validação da licença (Node 18+, sem dependências)
const API = 'https://thekhempire.com/api/lic/v1/validar'
export async function validarLicenca(chave, dispositivo) {
const r = await fetch(API, {
method : 'POST',
headers: { 'Content-Type': 'application/json' },
body : JSON.stringify({ chave, dispositivo })
})
return await r.json()
}
// No arranque do bot:
const CHAVE = process.env.LICENCA // a chave que vendeste ao cliente
const NUMERO = '5511999999999' // número do WhatsApp do bot (identifica o aparelho)
const lic = await validarLicenca(CHAVE, NUMERO)
if (!lic.ok) {
const motivos = {
invalida : 'Chave inválida.',
revogada : 'Licença revogada. Fala com o suporte.',
expirada : 'Licença expirada. Renova para continuar.',
outro_dispositivo: 'Esta chave já está a ser usada noutro número.',
projeto_inativo : 'Serviço temporariamente indisponível.'
}
console.error('❌ ' + (motivos[lic.motivo] || 'Licença não validada.'))
process.exit(1)
}
console.log('✅ Licença ok — cliente:', lic.cliente)
// Revalidar de 6 em 6 horas: se revogares a chave, o bot dele para sozinho.
setInterval(async () => {
const v = await validarLicenca(CHAVE, NUMERO).catch(() => null)
if (v && !v.ok) { console.error('❌ Licença deixou de ser válida:', v.motivo); process.exit(1) }
}, 6 * 60 * 60 * 1000)
💡 Porquê o dispositivo? É o que trava a partilha: a primeira validação prende a chave àquele número.
Se o teu cliente mudar de número, usa limpar-dispositivo no painel.
API completa
Base: https://thekhempire.com/api/lic/v1/ · autentica com Authorization: Bearer SEU_SEGREDO (exceto validar, que é público).
Rota
O que faz
Corpo
POST validar
Valida a chave (usado pelo bot do cliente — não leva segredo)
{chave, dispositivo}
POST criar
Emite uma chave nova
{cliente, dias, prefixo}
GET listar
As tuas licenças
—
POST revogar
Corta o acesso na hora
{chave} ou {id}
POST renovar
Acrescenta dias (soma ao que resta)
{chave, dias}
POST limpar-dispositivo
Cliente mudou de número/servidor
{chave}
GET projeto
Estado da tua assinatura
—
⚠️ O segredo fica só no teu servidor/painel — nunca o metas no bot que entregas ao cliente.
Documentação da API · 143 endpoints
✦ Também temos bot
Bot Polar para WhatsApp
Menu completo — figurinhas, downloads, diversão e moderação — e por dentro já usa esta mesma API. Atualizações e suporte incluídos.
FigurinhasDownloadsDiversãoModeraçãoAnti-ban
a partir de R$ 15,99por mês
Base: https://thekhempire.com/api/v1/ · autentica com ?apikey=A_TUA_CHAVE ou o header X-API-Key.
Resposta: { ok, resultado, creditosRestantes } · rate-limit 30 req/10s · cada chamada com sucesso gasta 1 crédito. Usa em qualquer bot, site ou app.
Utilidades · 13
/api/v1/util/base64
Codificar/descodificar base64 (UTF-8).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'base64': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !base64 ola mundo')
const r = await fetch('https://thekhempire.com/api/v1/util/base64/' + encodeURIComponent(q) + '?action=encode', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resultado)
break
}
/api/v1/util/hash
Hash de um texto (SHA-1/256/384/512).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'hash': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !hash segredo')
const r = await fetch('https://thekhempire.com/api/v1/util/hash/' + encodeURIComponent(q) + '?type=sha256', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.hash)
break
}
/api/v1/util/gerar
Gerar UUID ou senha aleatória.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gerar': {
const r = await fetch('https://thekhempire.com/api/v1/util/gerar?tipo=senha&tamanho=20', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.senha)
break
}
/api/v1/util/qrcode
Gera um QR code (URL da imagem).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'qrcode': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !qrcode https://site.com')
const r = await fetch('https://thekhempire.com/api/v1/util/qrcode/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/util/encurtar
Encurta um URL.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'encurtar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !encurtar https://google.com')
const r = await fetch('https://thekhempire.com/api/v1/util/encurtar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.curto)
break
}
/api/v1/util/traduzir
Traduz um texto (auto-detect idioma).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'traduzir': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !traduzir bom dia')
const r = await fetch('https://thekhempire.com/api/v1/util/traduzir/' + encodeURIComponent(q) + '?para=en', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.traducao)
break
}
/api/v1/util/calcular
Calculadora — avalia uma expressão (+ - * / % e parênteses).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'calcular': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !calcular 2+2*3')
const r = await fetch('https://thekhempire.com/api/v1/util/calcular/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resultado)
break
}
/api/v1/util/morse
Texto ↔ código morse.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'morse': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !morse ola mundo')
const r = await fetch('https://thekhempire.com/api/v1/util/morse/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resultado)
break
}
/api/v1/util/binario
Texto ↔ binário (UTF-8).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'binario': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !binario ola')
const r = await fetch('https://thekhempire.com/api/v1/util/binario/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resultado)
break
}
/api/v1/util/contar
Conta caracteres, palavras e linhas de um texto.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'contar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !contar ola mundo')
const r = await fetch('https://thekhempire.com/api/v1/util/contar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.palavras + ' palavras · ' + d.resultado.caracteres + ' caracteres')
break
}
/api/v1/util/forca-senha
Mede a força de uma password (0-100 + dicas).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'forca-senha': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !forca-senha Abc12345!')
const r = await fetch('https://thekhempire.com/api/v1/util/forca-senha/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nivel + ' (' + d.resultado.pontos + '/100)')
break
}
/api/v1/util/idade-data
Idade exata a partir da data de nascimento.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'idade-data': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !idade-data 1998-07-15')
const r = await fetch('https://thekhempire.com/api/v1/util/idade-data/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.idade + ' anos')
break
}
/api/v1/buscar/web
Pesquisa na web (DuckDuckGo).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'web': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !web quem descobriu o brasil')
const r = await fetch('https://thekhempire.com/api/v1/buscar/web/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
Brasil · 16
/api/v1/util/cep
Consulta um CEP (Brasil).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cep': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !cep 01001000')
const r = await fetch('https://thekhempire.com/api/v1/util/cep/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.rua + ' - ' + d.resultado.cidade)
break
}
/api/v1/util/cnpj
Consulta um CNPJ (empresa brasileira).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cnpj': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !cnpj 00000000000191')
const r = await fetch('https://thekhempire.com/api/v1/util/cnpj/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome)
break
}
/api/v1/util/ddd
Cidades de um DDD (Brasil).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ddd': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ddd 21')
const r = await fetch('https://thekhempire.com/api/v1/util/ddd/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.estado + ' — ' + d.resultado.cidades.length + ' cidades')
break
}
/api/v1/util/feriados
Feriados de um ano (Brasil).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'feriados': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !feriados 2026')
const r = await fetch('https://thekhempire.com/api/v1/util/feriados/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.feriados.map(f => f.data + ' ' + f.nome).join('\n'))
break
}
/api/v1/util/validar-cpf
Valida um CPF (dígitos verificadores).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'validar-cpf': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !validar-cpf 111.444.777-35')
const r = await fetch('https://thekhempire.com/api/v1/util/validar-cpf/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.valido ? '✅ CPF válido' : '❌ CPF inválido')
break
}
/api/v1/util/validar-cnpj
Valida um CNPJ (dígitos verificadores).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'validar-cnpj': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !validar-cnpj 00000000000191')
const r = await fetch('https://thekhempire.com/api/v1/util/validar-cnpj/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.valido ? '✅ CNPJ válido' : '❌ CNPJ inválido')
break
}
/api/v1/util/gerar-cpf
Gera um CPF válido (só para testes).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gerar-cpf': {
const r = await fetch('https://thekhempire.com/api/v1/util/gerar-cpf', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.cpf)
break
}
/api/v1/util/gerar-cnpj
Gera um CNPJ válido (só para testes).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gerar-cnpj': {
const r = await fetch('https://thekhempire.com/api/v1/util/gerar-cnpj', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.cnpj)
break
}
/api/v1/br/banco
Dados de um banco brasileiro pelo código.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'banco': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !banco 1')
const r = await fetch('https://thekhempire.com/api/v1/br/banco/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome)
break
}
/api/v1/br/taxas
Taxas oficiais do Brasil (SELIC, CDI, IPCA).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'taxas': {
const r = await fetch('https://thekhempire.com/api/v1/br/taxas', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(Object.entries(d.resultado.taxas).map(([k, v]) => k + ': ' + v + '%').join('\n'))
break
}
/api/v1/br/isbn
Dados de um livro pelo ISBN.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'isbn': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !isbn 9788545702870')
const r = await fetch('https://thekhempire.com/api/v1/br/isbn/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.titulo + ' — ' + (d.resultado.autores || []).join(', '))
break
}
/api/v1/br/dominio
Verifica se um domínio .br está disponível.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dominio': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !dominio meusite.com.br')
const r = await fetch('https://thekhempire.com/api/v1/br/dominio/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.disponivel ? '✅ disponível' : '❌ registado')
break
}
/api/v1/dados/fipe
Preço de veículo na Tabela FIPE.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'fipe': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/dados/fipe/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/dados/cotacao
Cotação de moedas e criptos em tempo real.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cotacao': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/dados/cotacao/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/dados/banco
Dados de um banco brasileiro (COMPE).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'banco': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !banco 1')
const r = await fetch('https://thekhempire.com/api/v1/dados/banco/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/rastrear/pedido
Rastreia um pedido (SPX, J&T, Correios).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pedido': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pedido BR123456789BR')
const r = await fetch('https://thekhempire.com/api/v1/rastrear/pedido/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
Informação · 16
/api/v1/clima
Tempo/clima atual de uma cidade.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'clima': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !clima Lisboa')
const r = await fetch('https://thekhempire.com/api/v1/clima/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.tempC + '°C, ' + d.resultado.descricao)
break
}
/api/v1/cripto
Cotação de uma criptomoeda (BRL/USD).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cripto': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !cripto bitcoin')
const r = await fetch('https://thekhempire.com/api/v1/cripto/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('R$ ' + d.resultado.brl)
break
}
/api/v1/github
Perfil de um utilizador GitHub.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'github': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !github torvalds')
const r = await fetch('https://thekhempire.com/api/v1/github/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome + ' — ' + d.resultado.repos + ' repos')
break
}
/api/v1/wiki
Resumo de um artigo da Wikipédia (PT).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'wiki': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !wiki Portugal')
const r = await fetch('https://thekhempire.com/api/v1/wiki/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resumo)
break
}
/api/v1/ip
Geolocalização de um IP.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ip': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ip 8.8.8.8')
const r = await fetch('https://thekhempire.com/api/v1/ip/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.pais + ', ' + d.resultado.cidade)
break
}
/api/v1/cor
Informação de uma cor (nome, RGB, HSL).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cor': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !cor ff5733')
const r = await fetch('https://thekhempire.com/api/v1/cor/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome + ' — ' + d.resultado.rgb)
break
}
/api/v1/util/hora
Hora atual num fuso horário (ex: America/Sao_Paulo).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'hora': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !hora America/Sao_Paulo')
const r = await fetch('https://thekhempire.com/api/v1/util/hora/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.hora)
break
}
/api/v1/info/npm
Info da última versão de um pacote npm.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'npm': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !npm express')
const r = await fetch('https://thekhempire.com/api/v1/info/npm/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome + '@' + d.resultado.versao + ' — ' + d.resultado.descricao)
break
}
/api/v1/info/anime
Informação de um anime (nota, episódios, sinopse, pôster).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'anime': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !anime naruto')
const r = await fetch('https://thekhempire.com/api/v1/info/anime/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/info/serie
Informação de uma série (nota, estreia, sinopse).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'serie': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !serie breaking bad')
const r = await fetch('https://thekhempire.com/api/v1/info/serie/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/info/filme
Informação de um filme em português.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'filme': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !filme matrix')
const r = await fetch('https://thekhempire.com/api/v1/info/filme/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/futebol/ao-vivo
Jogos de hoje com placar em tempo real.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ao-vivo': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/futebol/ao-vivo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 700))
break
}
/api/v1/futebol/tabela
Classificação da liga ao vivo.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'tabela': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/futebol/tabela/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 700))
break
}
/api/v1/futebol/jogo
Detalhes de uma partida (gols, cartões, escalação).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'jogo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !jogo flamengo')
const r = await fetch('https://thekhempire.com/api/v1/futebol/jogo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 700))
break
}
/api/v1/futebol/artilharia
Artilheiros da competição.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'artilharia': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/futebol/artilharia/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/noticias/games
Últimas notícias de games.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'games': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/noticias/games/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
Diversão · 26
/api/v1/piada
Piada aleatória (multi-idioma).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'piada': {
const r = await fetch('https://thekhempire.com/api/v1/piada?lang=pt', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.piada || (d.resultado.setup + '\n' + d.resultado.punchline))
break
}
/api/v1/trivia
Pergunta de trivia (quiz) com 4 opções.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'trivia': {
const r = await fetch('https://thekhempire.com/api/v1/trivia', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.pergunta + '\n' + d.resultado.opcoes.map((o, i) => (i + 1) + '. ' + o).join('\n'))
break
}
/api/v1/anime
Informação de um anime (Jikan/MAL).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'anime': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !anime naruto')
const r = await fetch('https://thekhempire.com/api/v1/anime/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.titulo + ' — Score: ' + d.resultado.score)
break
}
/api/v1/pokemon
Dados de um Pokémon.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pokemon': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pokemon pikachu')
const r = await fetch('https://thekhempire.com/api/v1/pokemon/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome + ' — ' + d.resultado.tipos.join(', '))
break
}
/api/v1/frase
Frase/citação inspiradora aleatória.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'frase': {
const r = await fetch('https://thekhempire.com/api/v1/frase', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.frase + ' — ' + d.resultado.autor)
break
}
/api/v1/conselho
Conselho aleatório (em inglês).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'conselho': {
const r = await fetch('https://thekhempire.com/api/v1/conselho', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.conselho)
break
}
/api/v1/facto
Facto aleatório (gato, número ou inútil).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'facto': {
const r = await fetch('https://thekhempire.com/api/v1/facto?tipo=gato', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.facto)
break
}
/api/v1/idade
Prever idade e género por nome.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'idade': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !idade Maria')
const r = await fetch('https://thekhempire.com/api/v1/idade/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.nome + ': ' + d.resultado.idadeEstimada + ' anos, ' + d.resultado.genero)
break
}
/api/v1/meme
Meme aleatório do Reddit.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'meme': {
const r = await fetch('https://thekhempire.com/api/v1/meme', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url }, caption: d.resultado.titulo }, { quoted: m })
break
}
/api/v1/akinator
Jogo Akinator (adivinha o personagem). Sem parâmetros começa; reenvia o sessao + resposta=sim|nao|talvez para continuar.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'akinator': {
// jogo de adivinhar — 1ª chamada começa. Guarda d.resultado.sessao e reenvia
// com &resposta=sim|nao|talvez&sessao=... para continuar (vê a doc do endpoint).
const r = await fetch('https://thekhempire.com/api/v1/akinator', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.pergunta)
break
}
/api/v1/fun/dado
Rola dados no formato NdM (ex: 2d6).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dado': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/fun/dado/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('🎲 ' + d.resultado.rolagens.join(', ') + ' (total ' + d.resultado.total + ')')
break
}
/api/v1/fun/cara-coroa
Atira uma moeda ao ar (cara ou coroa).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'caracoroa': {
const r = await fetch('https://thekhempire.com/api/v1/fun/cara-coroa', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('🪙 ' + d.resultado.resultado)
break
}
/api/v1/fun/8ball
Bola 8 mágica — responde à tua pergunta.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case '8ball': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !8ball vou ficar rico?')
const r = await fetch('https://thekhempire.com/api/v1/fun/8ball/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resposta)
break
}
/api/v1/fun/ppt
Pedra, papel ou tesoura contra o bot.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ppt': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ppt pedra')
const r = await fetch('https://thekhempire.com/api/v1/fun/ppt/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('Tu: ' + d.resultado.tu + ' · Bot: ' + d.resultado.bot + ' → ' + d.resultado.resultado)
break
}
/api/v1/fun/escolher
Sorteia uma opção de uma lista.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'escolher': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !escolher pizza,sushi,hamburguer')
const r = await fetch('https://thekhempire.com/api/v1/fun/escolher/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('🎯 ' + d.resultado.escolhido)
break
}
/api/v1/fun/chuck
Piada aleatória do Chuck Norris.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'chuck': {
const r = await fetch('https://thekhempire.com/api/v1/fun/chuck', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.piada)
break
}
/api/v1/jogo/quiz
Pergunta de quiz com 4 alternativas, em português.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'quiz': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/jogo/quiz/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/jogo/gratis
Jogos que estão de graça agora (Steam, Epic, GOG…).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gratis': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/jogo/gratis/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/jogo/akinator
Inicia o Akinator (adivinha o personagem).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'aki': {
const r = await fetch('https://thekhempire.com/api/v1/jogo/akinator', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.question || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/jogo/akinator-resp
Responde ao Akinator e avança.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'akiresp': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !akiresp 0')
const r = await fetch('https://thekhempire.com/api/v1/jogo/akinator-resp/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.question || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/jogo/forca
Inicia um jogo da forca.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'forca': {
const r = await fetch('https://thekhempire.com/api/v1/jogo/forca', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.masked || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/jogo/forca-chutar
Chuta uma letra na forca.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'forcaletra': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !forcaletra a')
const r = await fetch('https://thekhempire.com/api/v1/jogo/forca-chutar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.masked || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/jogo/termo
Inicia o Termo (estilo Wordle em português).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'termo': {
const r = await fetch('https://thekhempire.com/api/v1/jogo/termo', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/jogo/termo-chutar
Palpita uma palavra no Termo.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'termochute': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !termochute carro')
const r = await fetch('https://thekhempire.com/api/v1/jogo/termo-chutar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/jogo/voce-prefere
Sorteia um dilema "você prefere".
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'vocepreere': {
const r = await fetch('https://thekhempire.com/api/v1/jogo/voce-prefere', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/info/signo
Horóscopo do dia de um signo.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'signo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !signo leao')
const r = await fetch('https://thekhempire.com/api/v1/info/signo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
Imagens · 15
/api/v1/dog
Imagem aleatória de cão.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dog': {
const r = await fetch('https://thekhempire.com/api/v1/dog', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/cat
Imagem aleatória de gato.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cat': {
const r = await fetch('https://thekhempire.com/api/v1/cat', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/fox
Imagem aleatória de raposa.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'fox': {
const r = await fetch('https://thekhempire.com/api/v1/fox', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/bird
Imagem + facto aleatório de pássaro.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'bird': {
const r = await fetch('https://thekhempire.com/api/v1/bird', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url }, caption: d.resultado.facto }, { quoted: m })
break
}
/api/v1/wallpaper
Wallpaper/foto HD aleatória.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'wallpaper': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !wallpaper nature')
const r = await fetch('https://thekhempire.com/api/v1/wallpaper/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/theme
Cria uma imagem personalizada com um nome (cartão com gradiente). Estilos: polar, neon, fogo, matrix, ouro, roxo, oceano, rosa, verde.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'theme': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !theme Polar')
const r = await fetch('https://thekhempire.com/api/v1/theme/' + encodeURIComponent(q) + '?estilo=neon', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/upscale
Aumenta e melhora a nitidez de uma imagem (até 4x).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'upscale': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !upscale <url da imagem>')
const r = await fetch('https://thekhempire.com/api/v1/upscale/' + encodeURIComponent(q) + '?escala=2', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/removerfundo
Remove o fundo de uma imagem (devolve PNG transparente).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'removerfundo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !removerfundo <url da imagem>')
const r = await fetch('https://thekhempire.com/api/v1/removerfundo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/logo
Logo de texto estilizado (neon com brilho, metálico, 3D). Estilos: neon, matrix, blood, azul, rosa, roxo, branco, fire/fogo, ouro/gold, cromado/chrome, rainbow, 3d.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'logo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !logo Polar')
const r = await fetch('https://thekhempire.com/api/v1/logo/' + encodeURIComponent(q) + '?estilo=neon', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/ttp
Figurinha (sticker webp) de texto. Estilos: white, preto, brat, attp/rainbow.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ttp': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ttp bom dia')
const r = await fetch('https://thekhempire.com/api/v1/ttp/' + encodeURIComponent(q) + '?estilo=brat', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { sticker: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/ocr
Extrai texto de uma imagem (OCR, Tesseract).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ocr': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ocr <url da imagem>')
const r = await fetch('https://thekhempire.com/api/v1/ocr/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.texto)
break
}
/api/v1/fun/waifu
Imagem anime aleatória (waifu).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'waifu': {
const r = await fetch('https://thekhempire.com/api/v1/fun/waifu', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/fun/neko
Imagem anime aleatória (neko).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'neko': {
const r = await fetch('https://thekhempire.com/api/v1/fun/neko', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/img/avatar
Gera um avatar a partir de um nome (14 estilos).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'avatar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !avatar Polar')
const r = await fetch('https://thekhempire.com/api/v1/img/avatar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/img/favicon
Devolve o ícone (favicon) de um site.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'favicon': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !favicon github.com')
const r = await fetch('https://thekhempire.com/api/v1/img/favicon/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
Pesquisa & IA · 7
/api/v1/pinterest
Pesquisar imagens/pins (via DuckDuckGo).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pinterest': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pinterest anime wallpaper')
const r = await fetch('https://thekhempire.com/api/v1/pinterest/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: (d.resultado.imagens || d.resultado.resultados)[0] } }, { quoted: m })
break
}
/api/v1/imagem
Pesquisa de imagens geral (via DuckDuckGo).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'imagem': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !imagem gato fofo')
const r = await fetch('https://thekhempire.com/api/v1/imagem/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.imagens[0].imagem } }, { quoted: m })
break
}
/api/v1/explicar
Explicação detalhada de um termo (Wikipedia + DuckDuckGo).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'explicar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !explicar blockchain')
const r = await fetch('https://thekhempire.com/api/v1/explicar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.explicacao)
break
}
/api/v1/resumir
Resumir um texto longo ou conteúdo de um URL.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'resumir': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !resumir <texto ou link>')
const r = await fetch('https://thekhempire.com/api/v1/resumir/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resumo)
break
}
/api/v1/dicio
Definição de uma palavra (dicionário multi-idioma).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dicio': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !dicio amor')
const r = await fetch('https://thekhempire.com/api/v1/dicio/' + encodeURIComponent(q) + '?lang=pt', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.significados[0].definicoes[0].definicao)
break
}
/api/v1/noticias
Últimas notícias (Google News). Sem termo = destaques do dia.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'noticias': {
const q = (text || '').trim() // o que vem depois do comando
const r = await fetch('https://thekhempire.com/api/v1/noticias/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.noticias.slice(0, 5).map(n => n.titulo).join('\n'))
break
}
/api/v1/letra
Letra de uma música (por artista + título).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'letra': {
const [artista, ...resto] = (text || '').split('-')
const musica = resto.join('-').trim()
if (!artista.trim() || !musica) return reply('Uso: !letra artista - musica')
const r = await fetch('https://thekhempire.com/api/v1/letra?artista=' + encodeURIComponent(artista.trim()) + '&musica=' + encodeURIComponent(musica), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.letra)
break
}
Dados & Conversão · 6
/api/v1/cambio
Converter moedas (câmbio em tempo real).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'cambio': {
const [valor, de, para] = (text || '').split(' ')
if (!para) return reply('Uso: !cambio 100 USD BRL')
const r = await fetch('https://thekhempire.com/api/v1/cambio?de=' + de + '¶=' + para + '&valor=' + valor, { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.valor + ' ' + d.resultado.de + ' = ' + d.resultado.convertido + ' ' + d.resultado.para)
break
}
/api/v1/moeda
Taxas de câmbio de uma moeda (top 8 pares).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'moeda': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !moeda USD')
const r = await fetch('https://thekhempire.com/api/v1/moeda/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(Object.entries(d.resultado.taxas).map(([k, v]) => k + ': ' + v).join('\n'))
break
}
/api/v1/horoscopo
Horóscopo diário do teu signo.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'horoscopo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !horoscopo touro')
const r = await fetch('https://thekhempire.com/api/v1/horoscopo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.horoscopo)
break
}
/api/v1/random-user
Gerar um utilizador fictício aleatório (BR).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'random': {
const r = await fetch('https://thekhempire.com/api/v1/random?min=1&max=100', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply('🎲 ' + d.resultado.numero)
break
}
/api/v1/dados/status-site
Verifica se um site está online + tempo de resposta.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'status-site': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !status-site https://google.com')
const r = await fetch('https://thekhempire.com/api/v1/dados/status-site/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.online ? '🟢 online (' + d.resultado.status + ', ' + d.resultado.tempo_ms + 'ms)' : '🔴 offline')
break
}
Download · 1
/api/v1/dl
Download de media — YouTube, TikTok, Instagram, Facebook, etc.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dl': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !dl <link do vídeo>')
const r = await fetch('https://thekhempire.com/api/v1/dl/' + encodeURIComponent(q) + '?format=audio', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { audio: { url: d.resultado.url }, mimetype: 'audio/mpeg' }, { quoted: m })
break
}
Música & Media · 28
/api/v1/play
Pesquisa uma música por nome e devolve o MP3 pronto a baixar.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'play': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !play Believer')
const r = await fetch('https://thekhempire.com/api/v1/play/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { audio: { url: d.resultado.url }, mimetype: 'audio/mpeg' }, { quoted: m })
break
}
/api/v1/tts
Texto → voz (gera um MP3 falado).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'tts': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !tts ola mundo')
const r = await fetch('https://thekhempire.com/api/v1/tts/' + encodeURIComponent(q) + '?lang=pt', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { audio: { url: d.resultado.url }, mimetype: 'audio/mpeg' }, { quoted: m })
break
}
/api/v1/efeito
Efeitos de voz num áudio — menina/esquilo, menino/grave, eco, robô, rápido, lento, reverso. Devolve o MP3.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'efeito': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !efeito <url do áudio>')
const r = await fetch('https://thekhempire.com/api/v1/efeito/' + encodeURIComponent(q) + '?tipo=esquilo', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { audio: { url: d.resultado.url }, mimetype: 'audio/mpeg' }, { quoted: m })
break
}
/api/v1/toaudio
Converte um vídeo (YouTube, TikTok…) num MP3 só com o áudio.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'toaudio': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !toaudio <link do vídeo>')
const r = await fetch('https://thekhempire.com/api/v1/toaudio/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { audio: { url: d.resultado.url }, mimetype: 'audio/mpeg' }, { quoted: m })
break
}
/api/v1/sticker
Cria uma figurinha (sticker WhatsApp, webp 512x512) a partir de uma imagem ou vídeo.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'sticker': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !sticker <url da imagem>')
const r = await fetch('https://thekhempire.com/api/v1/sticker/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { sticker: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/gif
Converte um vídeo num GIF animado.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gif': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !gif <url do vídeo>')
const r = await fetch('https://thekhempire.com/api/v1/gif/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { video: { url: d.resultado.url }, gifPlayback: true }, { quoted: m })
break
}
/api/v1/comprimir
Reduz o tamanho de um vídeo (re-encode H.264).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'comprimir': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !comprimir <url do vídeo>')
const r = await fetch('https://thekhempire.com/api/v1/comprimir/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { video: { url: d.resultado.url } }, { quoted: m })
break
}
/api/v1/converter
Converte media entre formatos (mp3, wav, mp4, webm, png, jpg, webp…).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'converter': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !converter <url do ficheiro>')
const r = await fetch('https://thekhempire.com/api/v1/converter/' + encodeURIComponent(q) + '?para=mp3', { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.url)
break
}
/api/v1/baixar/multi
Baixa de Instagram, YouTube, TikTok ou Spotify (deteta sozinho).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'multi': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !multi https://youtu.be/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/baixar/multi/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || d.resultado.url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/baixar/youtube
Link direto de download do YouTube (alta velocidade).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'youtube': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !youtube https://youtu.be/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/baixar/youtube/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || d.resultado.url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/baixar/instagram
Baixa vídeo, reel, story ou foto do Instagram.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'instagram': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !instagram https://instagram.com/p/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/baixar/instagram/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || d.resultado.url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/baixar/instagram-fotos
Baixa TODAS as fotos de um post ou carrossel do Instagram.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'instagram-fotos': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !instagram-fotos https://instagram.com/p/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/baixar/instagram-fotos/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/baixar/tiktok
Baixa vídeo do TikTok em HD, sem marca de água.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'tiktok': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !tiktok https://tiktok.com/@x/video/1')
const r = await fetch('https://thekhempire.com/api/v1/baixar/tiktok/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || d.resultado.url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/baixar/spotify
Baixa faixa do Spotify em MP3 320kbps + metadata.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'spotify': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !spotify https://open.spotify.com/track/x')
const r = await fetch('https://thekhempire.com/api/v1/baixar/spotify/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/baixar/pinterest
Baixa foto ou vídeo de um pin do Pinterest.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pinterest': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pinterest https://pin.it/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/baixar/pinterest/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/buscar/youtube
Pesquisa vídeos no YouTube.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'youtube': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !youtube lofi beats')
const r = await fetch('https://thekhempire.com/api/v1/buscar/youtube/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/buscar/pinterest
Pesquisa fotos no Pinterest (alta resolução).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pinterest': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pinterest wallpaper anime')
const r = await fetch('https://thekhempire.com/api/v1/buscar/pinterest/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/buscar/imagens
Pesquisa de imagens (Google).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'imagens': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !imagens gato fofo')
const r = await fetch('https://thekhempire.com/api/v1/buscar/imagens/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/buscar/figurinhas
Pesquisa figurinhas prontas para WhatsApp.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'figurinhas': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !figurinhas kkkk')
const r = await fetch('https://thekhempire.com/api/v1/buscar/figurinhas/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/imagem/hd
Melhora a qualidade da imagem para HD.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'hd': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !hd https://site.com/foto.jpg')
const r = await fetch('https://thekhempire.com/api/v1/imagem/hd/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.url || d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/imagem/2k
Melhora a qualidade da imagem para 2K.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case '2k': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !2k https://site.com/foto.jpg')
const r = await fetch('https://thekhempire.com/api/v1/imagem/2k/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.url || d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/imagem/4k
Melhora a qualidade da imagem para 4K.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case '4k': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !4k https://site.com/foto.jpg')
const r = await fetch('https://thekhempire.com/api/v1/imagem/4k/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.url || d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/imagem/sem-fundo
Remove o fundo da imagem (PNG transparente).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'sem-fundo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !sem-fundo https://site.com/foto.jpg')
const r = await fetch('https://thekhempire.com/api/v1/imagem/sem-fundo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.url || d.resultado.download_url || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/yt/buscar
Pesquisa no YouTube — até 20 vídeos com título, duração, canal e thumbnail.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'buscar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !buscar imagine dragons')
const r = await fetch('https://thekhempire.com/api/v1/yt/buscar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/yt/audio
Link direto do áudio de um vídeo do YouTube (rápido, cache em 3 camadas).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'audio': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !audio imagine dragons believer')
const r = await fetch('https://thekhempire.com/api/v1/yt/audio/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download || d.resultado.url)
break
}
/api/v1/yt/video
Link direto do vídeo do YouTube.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'video': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !video believer')
const r = await fetch('https://thekhempire.com/api/v1/yt/video/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download || d.resultado.url)
break
}
/api/v1/yt/info
Dados de um vídeo do YouTube (título, duração, canal, thumbnail).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'info': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !info 7wtfhZwyrcc')
const r = await fetch('https://thekhempire.com/api/v1/yt/info/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.title + ' — ' + (d.resultado.canal || ''))
break
}
/api/v1/yt/thumb
Thumbnail de um vídeo do YouTube (hq, maxres ou mq).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'thumb': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !thumb 7wtfhZwyrcc')
const r = await fetch('https://thekhempire.com/api/v1/yt/thumb/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await conn.sendMessage(m.chat, { image: { url: d.resultado.url } }, { quoted: m })
break
}
dev · 3
/api/v1/baixar/github
Link do ZIP de um repositório GitHub.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'github': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !github https://github.com/user/repo')
const r = await fetch('https://thekhempire.com/api/v1/baixar/github/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.download_url || d.resultado.url || JSON.stringify(d.resultado).slice(0, 300))
break
}
/api/v1/dev/dns
Consulta os registos DNS de um domínio.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'dns': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !dns google.com')
const r = await fetch('https://thekhempire.com/api/v1/dev/dns/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/dev/site-status
Verifica se um site está no ar.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'site-status': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !site-status https://google.com')
const r = await fetch('https://thekhempire.com/api/v1/dev/site-status/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 400))
break
}
ia · 12
/api/v1/ia/gpt
GPT-5 — perguntas, análise, código, escrita e tradução.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gpt': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !gpt explica buracos negros')
const r = await fetch('https://thekhempire.com/api/v1/ia/gpt/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.response || d.resultado.text || d.resultado.message || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/gpt-mini
GPT-5 Mini — rápido e barato, ideal para respostas curtas.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gptmini': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !gptmini resume isto em 1 frase')
const r = await fetch('https://thekhempire.com/api/v1/ia/gpt-mini/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.response || d.resultado.text || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/gemini
Gemini 3 — texto e visão (manda url de imagem para analisar).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'gemini': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !gemini qual a capital do japao')
const r = await fetch('https://thekhempire.com/api/v1/ia/gemini/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.response || d.resultado.text || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/groq
Llama via Groq — ultra-rápido (280 tokens/s).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'groq': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !groq faz um poema curto')
const r = await fetch('https://thekhempire.com/api/v1/ia/groq/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.response || d.resultado.text || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/musica
Gera uma música original a partir de uma descrição.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'musica': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !musica lo-fi triste com piano, 30s')
const r = await fetch('https://thekhempire.com/api/v1/ia/musica/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(JSON.stringify(d.resultado).slice(0, 400))
break
}
/api/v1/ia/ocr
Extrai o texto de uma imagem (OCR).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'ocr': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !ocr https://site.com/print.png')
const r = await fetch('https://thekhempire.com/api/v1/ia/ocr/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.texto || d.resultado.text || JSON.stringify(d.resultado).slice(0, 600))
break
}
/api/v1/ia/descrever
Descreve o que está numa imagem, em português.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'descrever': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !descrever https://site.com/foto.jpg')
const r = await fetch('https://thekhempire.com/api/v1/ia/descrever/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.descricao || d.resultado.caption || JSON.stringify(d.resultado).slice(0, 500))
break
}
/api/v1/ia/transcrever
Transcreve um áudio para texto.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'transcrever': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !transcrever https://site.com/audio.mp3')
const r = await fetch('https://thekhempire.com/api/v1/ia/transcrever/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.texto || d.resultado.text || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/video-resumo
Resume o que é falado num vídeo (YouTube/TikTok/Instagram).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'video-resumo': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !video-resumo https://youtu.be/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/ia/video-resumo/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resumo || d.resultado.summary || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/video-legendas
Transcrição completa de um vídeo (txt, srt, vtt ou json).
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'video-legendas': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !video-legendas https://youtu.be/xxxx')
const r = await fetch('https://thekhempire.com/api/v1/ia/video-legendas/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.texto || d.resultado.transcript || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/pdf
Lê um PDF (mesmo digitalizado) e resume.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pdf': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pdf https://site.com/doc.pdf')
const r = await fetch('https://thekhempire.com/api/v1/ia/pdf/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resumo || d.resultado.summary || JSON.stringify(d.resultado).slice(0, 800))
break
}
/api/v1/ia/pdf-perguntar
Faz uma pergunta sobre o conteúdo de um PDF.
📋 Cola no switch de comandos do teu bot (troca SUA_CHAVE pela tua):
case 'pdf-perguntar': {
const q = (text || '').trim() // o que vem depois do comando
if (!q) return reply('Uso: !pdf-perguntar qual o prazo do contrato?')
const r = await fetch('https://thekhempire.com/api/v1/ia/pdf-perguntar/' + encodeURIComponent(q), { headers: { 'X-API-Key': 'SUA_CHAVE' } })
const d = await r.json()
if (!d.ok) return reply('❌ ' + (d.erro || 'deu erro'))
await reply(d.resultado.resposta || d.resultado.answer || JSON.stringify(d.resultado).slice(0, 800))
break
}