OnePunya GitHub Profile ↗
Code Hub/onepunya-API
⌘
onepunya /

onepunya-API

The need for a rest api for developers, we provide features (downloader, ai, pixiv, hololive, nsfw, and others) we are still developing and multiplying features!

★ 0 stars⑂ 0 forksUpdated 13 Mar 2026Public
‹›Source code
Belum ada file source code yang dapat ditampilkan.
GitHub sourcemain
▤README.mdDOCUMENTATION
View on GitHub ↗
 ██████╗ ███╗   ██╗███████╗██████╗ ██╗   ██╗███╗   ██╗██╗   ██╗ █████╗ 
██╔═══██╗████╗  ██║██╔════╝██╔══██╗██║   ██║████╗  ██║╚██╗ ██╔╝██╔══██╗
██║   ██║██╔██╗ ██║█████╗  ██████╔╝██║   ██║██╔██╗ ██║ ╚████╔╝ ███████║
██║   ██║██║╚██╗██║██╔══╝  ██╔═══╝ ██║   ██║██║╚██╗██║  ╚██╔╝  ██╔══██║
╚██████╔╝██║ ╚████║███████╗██║     ╚██████╔╝██║ ╚████║   ██║   ██║  ██║
 ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝

Free Multi-Purpose API — AI · Downloader · Search · Hololive · +more

Live Playground Free Tier Docs


✨ Apa itu Onepunya?

Onepunya adalah REST API publik gratis yang menyediakan berbagai endpoint mulai dari AI generation, downloader media sosial, pencarian konten, hingga data Hololive/VTuber — semuanya bisa diakses dengan satu API key.

Daftar gratis → dapat API Key instan → langsung pakai. Tidak perlu kartu kredit.


🚀 Quick Start

1. Daftar & Ambil API Key

Buka onepunya.qzz.io → Login dengan Google atau GitHub → API Key langsung tersedia di dashboard.

2. Coba di Playground

Tidak mau langsung coding? Coba semua endpoint langsung di browser: 👉 onepunya.qzz.io/playground

3. Mulai Request

curl -X GET "https://onepunya.qzz.io/api/search/youtube?q=lofi+hip+hop" \
  -H "x-api-key: YOUR_API_KEY"
{
  "status": true,
  "result": [
    {
      "title": "lofi hip hop radio - beats to relax/study to",
      "url": "https://youtube.com/watch?v=...",
      "thumbnail": "https://...",
      "duration": "LIVE",
      "views": "..."
    }
  ]
}

📦 Endpoints

Semua endpoint butuh header x-api-key: YOUR_API_KEY.

🤖 AI Tools

Method Endpoint Deskripsi
POST /api/ai-chat/generation Chat AI (ChatGPT, dll) dengan support streaming
POST /api/ai-images/generation Generate gambar dari teks (text-to-image)
POST /api/ai-voice/tts-generation Text-to-Speech 400+ suara via Edge TTS
GET /api/ai-voice/tts-voice Daftar semua voice TTS yang tersedia
POST /api/ai-voice/anime_speech Suara anime Jepang via VoiceVox
GET /api/ai-voice/anime_get_sid Daftar speaker ID VoiceVox

Contoh — AI Chat:

curl -X POST "https://onepunya.qzz.io/api/ai-chat/generation" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chatgpt",
    "messages": [{"role": "user", "content": "Jelaskan apa itu API dalam 1 kalimat"}]
  }'

Contoh — Text to Speech:

curl -X POST "https://onepunya.qzz.io/api/ai-voice/tts-generation" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Halo dunia!", "voice": "id-ID-GadisNeural"}'

📥 Downloader

Method Endpoint Deskripsi
POST /api/download/youtube Download video/audio YouTube
POST /api/download/tiktok Download video TikTok (no watermark)
POST /api/download/insta Download foto/video Instagram
POST /api/download/douyin Download video Douyin

Contoh — YouTube Download:

curl -X POST "https://onepunya.qzz.io/api/download/youtube" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://youtube.com/watch?v=dQw4w9WgXcQ", "format": "mp4"}'

🔍 Search Tools

Method Endpoint Deskripsi
GET /api/search/youtube?q=... Cari video YouTube
GET /api/search/pixiv?q=... Cari ilustrasi Pixiv
POST /api/search/pixiv18 Cari ilustrasi Pixiv (R-18, khusus 18+)

🎌 Hololive / VTuber

Method Endpoint Deskripsi
GET /api/hololive/live Livestream yang sedang berjalan
GET /api/hololive/video Video terbaru Hololive
GET /api/hololive/video_by_id?video_id=... Detail video by ID
GET /api/hololive/channel Daftar channel Hololive
GET /api/hololive/channel_by_id?channel_id=... Detail channel by ID
GET /api/hololive/search?q=... Cari video VTuber

💰 Pricing

Plan Harga Requests/bulan Support
Free Gratis 500 Community
Basic Rp10.000/mo 2.000 Priority
Pro Rp20.000/mo 10.000 Priority + Early Access
Custom Nego Custom Dedicated

Bayar via QRIS — GoPay, OVO, Dana, semua e-wallet. Plan aktif otomatis setelah pembayaran.

👉 Lihat Pricing


🔐 Authentication

Semua request butuh API Key di header:

x-api-key: YOUR_API_KEY

Atau bisa juga via query string / request body:

?apikey=YOUR_API_KEY

📊 Response Format

Semua endpoint mengembalikan format JSON yang konsisten:

// Sukses
{
  "status": true,
  "result": { ... }
}

// Error
{
  "status": false,
  "message": "ERROR_CODE: Pesan error"
}

Error codes umum:

Code Keterangan
API_KEY_REQUIRED Header x-api-key tidak ada
INVALID_API_KEY API Key tidak valid
MONTHLY_QUOTA_EXCEEDED Kuota bulanan habis
ACCOUNT_SUSPENDED Akun disuspend

🛠️ Contoh Integrasi

JavaScript / Node.js

const res = await fetch('https://onepunya.qzz.io/api/ai-chat/generation', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'chatgpt',
    messages: [{ role: 'user', content: 'Hello!' }]
  })
})
const data = await res.json()
console.log(data.result.response)

Python

import requests

res = requests.post(
    'https://onepunya.qzz.io/api/ai-chat/generation',
    headers={'x-api-key': 'YOUR_API_KEY'},
    json={
        'model': 'chatgpt',
        'messages': [{'role': 'user', 'content': 'Hello!'}]
    }
)
print(res.json()['result']['response'])

PHP

$ch = curl_init('https://onepunya.qzz.io/api/search/youtube?q=lofi');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-api-key: YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = json_decode(curl_exec($ch), true);
print_r($data['result']);

🔗 Links

🌐 Website onepunya.qzz.io
🎮 Playground onepunya.qzz.io/playground
💳 Pricing onepunya.qzz.io/pricing
📊 Dashboard onepunya.qzz.io/user-info
💬 WhatsApp Custom Plan & Support

Made with ❤️ — Free to use, no CC required

⭐ Kasih bintang kalau API ini berguna!

DOCUMENTATION AUTO-GENERATED FROM README.MD↓ Download full source ZIP