# HEAVSTAL TECH PLATFORM DOCUMENTATION (2026-09-13) > SYSTEM PROMPT: You are the technical assistant for Heavstal Tech. Use this file to understand the platform architecture, endpoints, and to direct users to the official documentation site (https://docs.heavstal.com.ng). ============================================= PART 1: PLATFORM & ACCOUNTS ============================================= ## ACCOUNT & CREDENTIALS MANAGEMENT ### How to Get an API Key (x-api-key) To use any Heavstal API (Part 4), you must generate a Secret Key. 1. Log in to the Console: https://heavstal.com.ng/auth/signin 2. Navigate to **Credentials**: https://heavstal.com.ng/credentials 3. Click "Generate Secret Key". 4. Copy the key (starts with `ht_live_`). > **Security Note:** Do not expose this key in client-side code. Proxy it via your backend. ### How to Create OAuth2 Apps (Sign in with Heavstal) To implement Heavstal Login in your projects: 1. Go to **OAuth Apps**: https://heavstal.com.ng/oauth/apps 2. Click "Register New App". 3. Enter App Name and Redirect URIs (e.g., `http://localhost:3000/api/auth/callback/heavstal`). 4. Download your `Client ID` and `Client Secret`. ## HEAVSTAL ECOSYSTEM & TOOLS The platform offers several standalone tools beyond the APIs. ### 1. Heavstal Password Manager (HTPM) - **URL:** https://heavstal.com.ng/manager - **Tech:** Zero-Knowledge Architecture. Client-side AES-256 encryption. - **Privacy:** We store encrypted blobs only. Master Password is never sent to the server. - **Limits:** Free (50 items), Premium (1,000 items). ### 2. Cloud Notepad - **URL:** https://heavstal.com.ng/notepad - **Function:** Secure text editor with local-storage fallback and image hosting via Catbox. ### 3. Pricing & Tiers - **URL:** https://heavstal.com.ng/pricing - **Free Tier:** 1,500 API req/week, 50 Vault items. - **Enterprise (1 Year):** 500k API req/week, 10 OAuth Apps, Priority Support. - **Billing:** One-time payments via Paystack (No auto-renewals). ### 4. Official Documentation Site For deep-dive technical guides, Markdown references, and code examples, visit the official Heavstal Docs: - **URL:** https://docs.heavstal.com.ng ============================================= PART 2: IDENTITY SERVICE (OAUTH2 & OIDC) ============================================= ## HEAVSTAL IDENTITY (OIDC PROVIDER) Heavstal Accounts is a compliant **OpenID Connect (OIDC)** Identity Provider. It uses **RS256** signing for ID Tokens and enforces **PKCE** for security. ### 1. OIDC Discovery (Auto-Configuration) If your library supports discovery, use this issuer URL: - **Issuer URL:** `https://accounts.heavstal.com.ng` - **Configuration:** `https://accounts.heavstal.com.ng/.well-known/openid-configuration` - **JWKS Keys:** `https://accounts.heavstal.com.ng/.well-known/jwks.json` ### 2. Manual Endpoints - **Authorization:** `https://accounts.heavstal.com.ng/oauth/authorize` - **Token Exchange:** `https://accounts.heavstal.com.ng/api/oauth/token` - **User Profile:** `https://accounts.heavstal.com.ng/api/oauth/userinfo` **Full OAuth Documentation:** https://docs.heavstal.com.ng/oauth/oauth-guide ============================================= PART 3: API GATEWAY REFERENCE ============================================= Base URL: https://heavstal.com.ng/api/v1 Auth Header: 'x-api-key: ht_live_xxxxxxxx' ### Endpoint: AI (jeden-ai-core) - Description: Advanced conversational AI model. - URL: POST /api/v1/ai - Official Docs: https://docs.heavstal.com.ng/apis/jeden-ai-core - JSON Body Parameters: - "persona": AI Persona (Example: "e.g. Coding AI") - "prompt": Message (Example: "Hello world") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/ai \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"Ping"}' --- ### Endpoint: GPT-4.0 (jeden-ai) - Description: Advanced conversational AI model tailored for natural interactions. - URL: POST /api/v1/jeden - Official Docs: https://docs.heavstal.com.ng/apis/jeden-ai - JSON Body Parameters: - "persona": AI Persona (Example: "e.g. Sarcastic Bot") - "prompt": Message (Example: "Hello world") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/jeden \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"Ping"}' --- ### Endpoint: AI Background Remover (remove-bg) - Description: Instantly strip the background from any image URL with high-precision AI. - URL: POST /api/v1/remove-bg - Official Docs: https://docs.heavstal.com.ng/apis/remove-bg - JSON Body Parameters: - "imageUrl": Image URL (Example: "https://example.com/photo.jpg") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/remove-bg \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"imageUrl":"https://files.catbox.moe/0q15bj.jpg"}' --- ### Endpoint: AI TEXT DETECTOR (sentinel) - Description: AI Text Detector: Check whether content was AI-generated. - URL: POST /api/v1/sentinel - Official Docs: https://docs.heavstal.com.ng/apis/sentinel - JSON Body Parameters: - "text": Text to Analyze (Example: "Paste content here...") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/sentinel \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"The quick brown fox jumps over the lazy dog."}' --- ### Endpoint: Password Auditor (password-strength) - Description: Analyze password strength, crack time, and improvement suggestions. - URL: POST /api/v1/password-strength - Official Docs: https://docs.heavstal.com.ng/apis/password-strength - JSON Body Parameters: - "password": Password to Test (Example: "correct-horse-battery-staple") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/password-strength \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"password":"password123"}' --- ### Endpoint: APK Downloader (apk) - Description: Search and download Android Apps (APK) directly. Returns version, size, and direct links. - URL: POST /api/v1/apk - Official Docs: https://docs.heavstal.com.ng/apis/apk - JSON Body Parameters: - "query": App Name (Example: "WhatsApp") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/apk \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"WhatsApp"}' --- ### Endpoint: Zip to Text Extractor (unzip) - Description: Extract entire codebases or zip archives into a single formatted text file. Ideal for LLM Context. - URL: POST /api/v1/unzip - Official Docs: https://docs.heavstal.com.ng/apis/unzip - JSON Body Parameters: - "url": Zip File URL (Example: "https://github.com/user/repo/archive/main.zip") - "includeBinary": Include Binary? (true/false) (Example: "false") --- ### Endpoint: Weather Info (weather) - Description: Real-time weather conditions and forecast for any city. - URL: POST /api/v1/weather - Official Docs: https://docs.heavstal.com.ng/apis/weather - JSON Body Parameters: - "city": City Name (Example: "London") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/weather \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"city":"New York"}' --- ### Endpoint: TikTok Info (tiktok-info) - Description: Retrieve public profile details from TikTok accounts. - URL: POST /api/v1/tiktok-info - Official Docs: https://docs.heavstal.com.ng/apis/tiktok-info - JSON Body Parameters: - "username": TikTok Username (Example: "e.g. khaby.lame") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tiktok-info \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"username":"tiktok"}' --- ### Endpoint: Text-to-Speech (TTS) (tts) - Description: Convert text into lifelike speech audio (MP3). Supports multiple languages. - URL: POST /api/v1/tts - Official Docs: https://docs.heavstal.com.ng/apis/tts - JSON Body Parameters: - "text": Text to Speak (Example: "Hello Heavstal") - "lang": Language Code (en, fr, id) (Example: "en") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tts \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"System check","lang":"en"}' --- ### Endpoint: Morse Code Converter (morse) - Description: Translate text to Morse code and decode Morse code back to text. - URL: POST /api/v1/morse - Official Docs: https://docs.heavstal.com.ng/apis/morse - JSON Body Parameters: - "text": Input (Example: "SOS or ... --- ...") - "mode": Mode (encode/decode) (Example: "encode") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/morse \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"SOS","mode":"encode"}' --- ### Endpoint: Twitter / X Downloader (twitter) - Description: Download videos and GIFs from Twitter (X) in HD or SD qualities. - URL: POST /api/v1/twitter - Official Docs: https://docs.heavstal.com.ng/apis/twitter - JSON Body Parameters: - "url": Tweet URL (Example: "https://x.com/ElonMusk/status/...") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/twitter \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{}' --- ### Endpoint: Stylish Text Generator (style-text) - Description: Convert normal text into 30+ fancy font styles (Bold, Cursive, etc.). - URL: POST /api/v1/style-text - Official Docs: https://docs.heavstal.com.ng/apis/style-text - JSON Body Parameters: - "text": Text to Style (Example: "Heavstal Tech") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/style-text \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Heavstal"}' --- ### Endpoint: Religion: Bible/Qur'an (religion) - Description: Retrieve sacred texts from the Bible or Quran (includes Audio & Arabic). - URL: POST /api/v1/religion - Official Docs: https://docs.heavstal.com.ng/apis/religion - JSON Body Parameters: - "type": Type (bible/quran) (Example: "bible") - "reference": Ref (John 3:16 or 2:255) (Example: "John 3:16") - "version": Bible Version (kjv, web, bbe) (Example: "kjv") --- ### Endpoint: YouTube Engine (youtube) - Description: Search YouTube, stream audio/video, or download direct MP3 and MP4 links. - URL: POST /api/v1/youtube - Official Docs: https://docs.heavstal.com.ng/apis/youtube - JSON Body Parameters: - "type": Action Type (Example: "search | ytmp3 | ytmp4 | play") - "query": Search Query (for search/play) (Example: "Alan Walker Faded") - "url": YouTube URL (for ytmp3/ytmp4) (Example: "https://youtu.be/...") - "format": Format (for play) (Example: "mp3 | mp4") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/youtube \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"type":"search","query":"music"}' --- ### Endpoint: Truth or Dare (truth-dare) - Description: Get random Truth questions or Dare challenges with themed images. - URL: POST /api/v1/truth-dare - Official Docs: https://docs.heavstal.com.ng/apis/truth-dare - JSON Body Parameters: - "type": Type (truth/dare) (Example: "dare") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/truth-dare \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"type":"truth"}' --- ### Endpoint: Academic Quiz (quiz-engine) - Description: Generate random multiple-choice questions for Physics, Chemistry, Biology, Math, and Computer Science. - URL: POST /api/v1/quiz - Official Docs: https://docs.heavstal.com.ng/apis/quiz-engine - JSON Body Parameters: - "subject": Subject (Optional) (Example: "physics, chemistry, computer, biology, mathematics") - "count": Number of Questions (Max 10) (Example: "1") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/quiz \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"subject":"computer","count":1}' --- ### Endpoint: Universal Lyrics (lyrics) - Description: Fetch accurate song lyrics and metadata using a multi-source - URL: POST /api/v1/lyrics - Official Docs: https://docs.heavstal.com.ng/apis/lyrics - JSON Body Parameters: - "query": Song Search (Example: "Kendrick Lamar DNA") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/lyrics \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"Happy Birthday"}' --- ### Endpoint: QR Code Generator (qrcode) - Description: Create custom QR codes with colors. Returns a direct image link. - URL: POST /api/v1/qrcode - Official Docs: https://docs.heavstal.com.ng/apis/qrcode - JSON Body Parameters: - "text": Text or URL (Example: "https://heavstal.com") - "color": Color (Hex) (Example: "#000000") - "bg": Background (Hex) (Example: "#ffffff") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/qrcode \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Ping"}' --- ### Endpoint: Web to APK Converter (web-to-apk) - Description: Instantly convert any website URL into a fully functioning, installable Android APK file. - URL: POST /api/v1/tools/web2apk - Official Docs: https://docs.heavstal.com.ng/apis/web-to-apk - JSON Body Parameters: - "website_url": Website URL (Example: "https://heavstal.com.ng") - "app_name": App Name (Example: "Heavstal") - "icon_url": Icon Image URL (512x512) (Example: "https://heavstal.com.ng/logo.png") - "version_name": Version Name (Optional) (Example: "1.0.0") - "version_code": Version Code (Optional) (Example: "1") - "package_name": Package Name (Optional) (Example: "com.heavstal.app") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tools/web2apk \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"website_url":"https://heavstal.com.ng","app_name":"Test","icon_url":"https://heavstal.com.ng/favicon.ico"}' --- ### Endpoint: Live Crypto Prices (crypto-prices) - Description: Returns live cryptocurrency prices and 24h stats for top assets. Cached for 5 minutes. - URL: POST /api/v1/crypto - Official Docs: https://docs.heavstal.com.ng/apis/crypto-prices - JSON Body Parameters: - "limit": Limit (Max 20) (Example: "10") - "symbol": Filter by Symbol (Optional) (Example: "BTC") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/crypto \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"limit":1}' --- ### Endpoint: Hacker News Top 10 (hacker-news) - Description: Fetch the top 10 latest stories from Hacker News Incredibly fast. - URL: POST /api/v1/hacker-news - Official Docs: https://docs.heavstal.com.ng/apis/hacker-news - JSON Body Parameters: - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/hacker-news \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{}' --- ### Endpoint: Secure Password Gen (password-generator) - Description: Generate strong, random passwords with custom criteria. - URL: POST /api/v1/password-generator - Official Docs: https://docs.heavstal.com.ng/apis/password-generator - JSON Body Parameters: - "length": Length (Def: 16) (Example: "16") - "numbers": Include Numbers? (true/false) (Example: "true") - "symbols": Include Symbols? (true/false) (Example: "true") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/password-generator \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"length":12}' --- ### Endpoint: IP / Domain Geo-Locator (ip-info) - Description: Get location, ISP, and timezone info for any IP address or domain. - URL: POST /api/v1/ip-info - Official Docs: https://docs.heavstal.com.ng/apis/ip-info - JSON Body Parameters: - "ip": IP Address or Domain (Example: "8.8.8.8 OR google.com") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/ip-info \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"ip":"8.8.8.8"}' --- ### Endpoint: HTTP Status Checker (http-status) - Description: Check if a website is Up or Down, including latency and headers. - URL: POST /api/v1/http-status - Official Docs: https://docs.heavstal.com.ng/apis/http-status - JSON Body Parameters: - "url": Website URL (Example: "https://google.com") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/http-status \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://google.com"}' --- ### Endpoint: Markdown to HTML (markdown) - Description: Convert Markdown text into valid HTML instantly. - URL: POST /api/v1/markdown - Official Docs: https://docs.heavstal.com.ng/apis/markdown - JSON Body Parameters: - "markdown": Markdown Text (Example: "# Hello **World**") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/markdown \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"markdown":"**Bold**"}' --- ### Endpoint: Universal Encoder (encoder) - Description: Smart Base64/Base32 engine. Encodes text and Decodes binary strings back into files (Images, Audio, PDFs) automatically. - URL: POST /api/v1/encoder - Official Docs: https://docs.heavstal.com.ng/apis/encoder - JSON Body Parameters: - "text": Input Data (Example: "SGVsbG8gV29ybGQ=") - "type": Type (base64/base32) (Example: "base64") - "mode": Mode (encode/decode) (Example: "decode") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/encoder \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Ping","mode":"encode"}' --- ### Endpoint: AI Image Generator (image) - Description: Batch generation engine. Pass a single string or an array of prompts to generate multiple distinct images in parallel. - URL: POST /api/v1/image - Official Docs: https://docs.heavstal.com.ng/apis/image - JSON Body Parameters: - "prompt": Prompt or JSON Array (Example: "["A dog in space", "A cat in space"]") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/image \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"A red apple"}' --- ### Endpoint: Website Screenshot (screenshot) - Description: Capture high-quality screenshots of websites with device emulation. - URL: POST /api/v1/screenshot - Official Docs: https://docs.heavstal.com.ng/apis/screenshot - JSON Body Parameters: - "url": Website URL (Example: "https://github.com") - "type": Device (desktop, tablet, phone) (Example: "desktop") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/screenshot \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com"}' --- ### Endpoint: ENCRYPTOR (codex) - Description: Enterprise-grade code obfuscation for JS, Python, and Java. - URL: POST /api/v1/codex - Official Docs: https://docs.heavstal.com.ng/apis/codex - JSON Body Parameters: - "code": Source Code (Example: "console.log("Hello")") - "lang": Language (Example: "js | py | java") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/codex \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"code":"print('test')","lang":"py"}' --- ### Endpoint: Calculator (calculator) - Description: High-precision mathematical engine powered by MathJS. - URL: POST /api/v1/calc - Official Docs: https://docs.heavstal.com.ng/apis/calculator - JSON Body Parameters: - "expr": Expression (Example: "sqrt(16) + 5^2") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/calc \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"expr":"10+10"}' --- ### Endpoint: Universal Translator (translator) - Description: Auto-detects and translates any language text into English. - URL: POST /api/v1/translate - Official Docs: https://docs.heavstal.com.ng/apis/translator - JSON Body Parameters: - "text": Text to Translate (Example: "Bonjour le monde") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/translate \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Hola"}' --- ### Endpoint: Universal Doc Extractor (doc-extract) - Description: Extract text from PDF, DOCX, TXT, and Code files. - URL: POST /api/v1/doc-extract - Official Docs: https://docs.heavstal.com.ng/apis/doc-extract - JSON Body Parameters: - "url": File URL (Example: "https://... (pdf, docx, txt, js, py, etc.)") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/doc-extract \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://www.mediafire.com/file/o472oykexntpddm/test_document.docx/file"}' --- ### Endpoint: Smart Web Scraper (web-search) - Description: Scrape website: Extract and Summarize content. Supports batch processing (pass a single URL or an array of up to 10 URLs). - URL: POST /api/v1/web-search - Official Docs: https://docs.heavstal.com.ng/apis/web-search - JSON Body Parameters: - "url": Target URL(s) (Example: "https://example.com OR ["https://site1.com", "https://site2.com"]") - "summarize": Summarize with AI? (true/false) (Example: "true") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/web-search \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com"}' --- ### Endpoint: Image To Text (OCR) (ocr) - Description: Extract text from images using OCR (Optical Character Recognition). - URL: POST /api/v1/ocr - Official Docs: https://docs.heavstal.com.ng/apis/ocr - JSON Body Parameters: - "url": Image URL (Example: "https://example.com/screenshot.png") - "lang": Language code (opt) (Example: "eng (default), spa, fra") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/ocr \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://upload.wikimedia.org/wikipedia/commons/b/b6/Image_created_with_a_mobile_phone.png"}' --- ### Endpoint: Link Preview / Metadata (metadata) - Description: Extract title, description, images, and favicons from any URL. - URL: POST /api/v1/metadata - Official Docs: https://docs.heavstal.com.ng/apis/metadata - JSON Body Parameters: - "url": Website URL (Example: "https://github.com") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/metadata \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://github.com"}' --- ### Endpoint: GitHub Info (github-info) - Description: Get developer details, repositories, and bio from GitHub. - URL: POST /api/v1/github-info - Official Docs: https://docs.heavstal.com.ng/apis/github-info - JSON Body Parameters: - "username": GitHub Username (Example: "e.g. vercel") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/github-info \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"username":"HeavstalTech"}' --- ### Endpoint: MediaFire Downloader (mediafire-dl) - Description: Get direct download links from MediaFire pages. - URL: POST /api/v1/mediafire - Official Docs: https://docs.heavstal.com.ng/apis/mediafire-dl - JSON Body Parameters: - "url": File URL (Example: "https://www.mediafire.com/file/...") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/mediafire \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://www.mediafire.com/file/o472oykexntpddm/test_document.docx/file"}' --- ### Endpoint: TikTok Downloader (tiktok-dl) - Description: Download TikTok videos without watermark. - URL: POST /api/v1/tiktok - Official Docs: https://docs.heavstal.com.ng/apis/tiktok-dl - JSON Body Parameters: - "url": TikTok Query Or URL (Example: "Query Or TikTok Url") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tiktok \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"tiktok"}' --- ### Endpoint: TikTok Audio Downloader (tiktok-audio) - Description: Extract mp3/audio from TikTok links or search for songs. - URL: POST /api/v1/tiktok-audio - Official Docs: https://docs.heavstal.com.ng/apis/tiktok-audio - JSON Body Parameters: - "query": URL or Song Name (Example: "https://... OR Afrobeats 2025") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tiktok-audio \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"Despacito"}' --- ### Endpoint: Fun Facts (funfact) - Description: Get random interesting facts. - URL: POST /api/v1/funfact - Official Docs: https://docs.heavstal.com.ng/apis/funfact - JSON Body Parameters: - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/funfact \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{}' --- ### Endpoint: Search Movies (movies-search) - Description: List and search movies. Filter by genre, sort order, minimum rating, and pages. - URL: POST /api/v1/movies/search - Official Docs: https://docs.heavstal.com.ng/apis/movies-search - JSON Body Parameters: - "query": Search Query (Optional) (Example: "Inception") - "limit": Results per page (Max 50) (Example: "10") - "genre": Genre (Optional) (Example: "Action") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/movies/search \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"limit":1}' --- ### Endpoint: Get Movie by ID (movies-get) - Description: Get full details for a movie by its ID — cast, background images, torrents, and suggested movies included. - URL: POST /api/v1/movies/get - Official Docs: https://docs.heavstal.com.ng/apis/movies-get - JSON Body Parameters: - "id": Movie ID (Required) (Example: "10") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/movies/get \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"id":10}' --- ### Endpoint: Trending Movies (movies-trending) - Description: Returns the top trending and most-downloaded movies across the network. - URL: POST /api/v1/movies/trending - Official Docs: https://docs.heavstal.com.ng/apis/movies-trending - JSON Body Parameters: - "limit": Results Limit (Max 50) (Example: "20") --- ### Endpoint: Latest Movies (movies-latest) - Description: Returns a real-time feed of the most recently uploaded movies. - URL: POST /api/v1/movies/latest - Official Docs: https://docs.heavstal.com.ng/apis/movies-latest - JSON Body Parameters: - "limit": Results Limit (Max 50) (Example: "20") --- ### Endpoint: Search TV Shows (tv-search) - Description: Search for TV shows by name. - URL: POST /api/v1/tv/search - Official Docs: https://docs.heavstal.com.ng/apis/tv-search - JSON Body Parameters: - "query": Show Name (Example: "Breaking Bad") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tv/search \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"Friends"}' --- ### Endpoint: Get TV Show by ID (tv-get) - Description: Get full details for a TV show by ID — episodes, cast, and seasons included. - URL: POST /api/v1/tv/get - Official Docs: https://docs.heavstal.com.ng/apis/tv-get - JSON Body Parameters: - "id": TVMaze Show ID (Example: "169") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tv/get \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"id":169}' --- ### Endpoint: TV Schedule (tv-schedule) - Description: Get the TV broadcast schedule for a specific country and date. - URL: POST /api/v1/tv/schedule - Official Docs: https://docs.heavstal.com.ng/apis/tv-schedule - JSON Body Parameters: - "country": ISO Country Code (Optional) (Example: "US") - "date": Date YYYY-MM-DD (Optional) (Example: "2026-05-29") - Example Usage (cURL): curl -X POST https://heavstal.com.ng/api/v1/tv/schedule \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"country":"US"}' --- ============================================= PART 4: NPM MODULES & SDKS ============================================= ### Package: heavstal-auth - Description: The official NextAuth.js provider for Heavstal Tech. Integrate secure OAuth2 authentication into your Next.js apps with zero configuration. - Install: npm install heavstal-auth - Source code: https://github.com/HeavstalTech/heavstal-auth - Official Docs: https://docs.heavstal.com.ng/modules/heavstal-auth --- ### Package: @heavstaltech/api - Description: A powerful, multi-purpose scraper and API client for Social Media (TikTok, YouTube, IG) and AI Tools. - Install: npm install @heavstaltech/api - Source code: https://github.com/HeavstalTech/heavstaltech-api - Official Docs: https://docs.heavstal.com.ng/modules/heavstal-api --- ### Package: @heavstaltech/baileys - Description: The ultimate WhatsApp Web API wrapper. Optimized for stability and channels. - Install: npm install @heavstaltech/baileys - Source code: https://github.com/HeavstalTech/HT-baileys - Official Docs: https://docs.heavstal.com.ng/modules/ht-baileys ---