Cross-Platform PC Power Supply (PSU) & Hardware Wattage Calculator API (Android, iOS, Windows, macOS, Linux, Web)

# Cross-Platform PC Power Supply (PSU) & Hardware Wattage Calculator API A complete, production-ready guide for mobile application developers (Android, iOS, Flutter, React Native) and web engineers to implement Pixahunt's **PC Power Supply (PSU) & Hardware Wattage Calculator**. All endpoints are unified and synchronize dynamically with Pixahunt's live hardware catalog. As the admin team uploads new processors, graphics cards, and power supplies into the database, the mobile app automatically receives the updated catalog without requiring app updates. --- ### Canonical Web Routes - **Primary Canonical Web Route:** `https://pixahunt.com/gadget/power-supply-calculator` - **Legacy Redirect:** `https://pixahunt.com/gadget/power-supply-calculator` (HTTP 301 Permanent Redirect) --- ### Base API Configuration - **Base Endpoint:** `https://pixahunt.com/api/apps/v1/tools/psu-calculator` - **Standard Alias:** `https://pixahunt.com/api/v1/tools/psu-calculator` - **Authentication Header:** ```http X-App-Key: {MASTER_APP_API_KEY} Accept: application/json Content-Type: application/json ``` - **Language Localization:** Send header `Accept-Language: bn` for Bengali or `Accept-Language: en` for English responses. --- ### 1. Fetch Processor Brands Retrieve the list of supported CPU manufacturers with database-driven product counts and official CDN logos. - **Endpoint:** `GET /brands` - **Response:** ```json { "status": "success", "data": [ { "name": "Intel", "slug": "intel", "full_name": "Intel Core Series", "badge": "12th - 14th Gen & Ultra", "logo_url": "https://pixahunt.b-cdn.net/assets/brands/intel.png", "product_count": 86 }, { "name": "AMD", "slug": "amd", "full_name": "AMD Ryzen Series", "badge": "Ryzen 5000 - 9000 Series", "logo_url": "https://pixahunt.b-cdn.net/assets/brands/amd.png", "product_count": 64 } ] } ``` --- ### 2. Fetch Processor Series by Brand - **Endpoint:** `GET /series?brand=intel` (or `brand=amd`) - **Response:** ```json { "status": "success", "brand": "intel", "data": [ {"name": "All Series", "slug": "all"}, {"name": "Core i9", "slug": "core-i9"}, {"name": "Core i7", "slug": "core-i7"}, {"name": "Core i5", "slug": "core-i5"}, {"name": "Core i3", "slug": "core-i3"}, {"name": "Core Ultra", "slug": "core-ultra"} ] } ``` --- ### 3. Fetch Processors Filtered by Brand & Series - **Endpoint:** `GET /processors?brand=intel&series=core-i7` - **Response:** ```json { "status": "success", "count": 14, "data": [ { "id": 1420, "name": "Intel Core i7-14700K", "brand": "intel", "series": "Core i7", "tdp": 125, "boost_tdp": 253, "cores": 20, "threads": 28, "slug": "intel-core-i7-14700k" } ] } ``` --- ### 4. Fetch Calculator Hardware Presets Fetch complete preset dictionaries for GPUs, Motherboards, RAM, and Coolers. - **Endpoint:** `GET /config` --- ### 5. Calculate Wattage & PSU Recommendations - **Endpoint:** `POST /calculate` - **Payload:** ```json { "build_title": "Dream Gaming Rig 2026", "cpu_name": "Intel Core i7-14700K", "cpu_tdp": 253, "cpu_oc": false, "gpu_name": "NVIDIA GeForce RTX 4070 Super", "gpu_tdp": 220, "gpu_count": 1, "gpu_oc": false, "mobo_power": 45, "ram_sticks": 2, "ram_power_per_stick": 6, "storage_nvme_count": 2, "storage_sata_count": 1, "storage_hdd_count": 0, "cooler_power": 22, "fans_count": 4, "rgb_strips_count": 2, "pcie_cards_count": 0, "workload": "gaming", "save": 1 } ``` - **Response:** ```json { "status": "success", "data": { "raw_peak_wattage": 586, "typical_load_wattage": 498, "recommended_wattage": 750, "recommended_efficiency": "80 PLUS Gold", "requires_atx3": true, "transient_risk": true, "headroom_percent": 28, "sweet_spot_load": 56, "breakdown": [ {"label": "Processor (CPU)", "category": "cpu", "watts": 253, "percentage": 43.2, "color": "#3B82F6"}, {"label": "Graphics Card (GPU)", "category": "gpu", "watts": 220, "percentage": 37.5, "color": "#F97316"} ] }, "recommended_psus": [ { "name": "Corsair RM750e 750W 80 PLUS Gold Fully Modular ATX 3.0", "brand": "Corsair", "wattage": 750, "rating": "80 PLUS Gold", "modular": "Fully Modular", "atx3": true, "price_formatted": "৳ 12,500", "url": "https://pixahunt.com/gadget/power-supply-calculator" } ], "share_url": "https://pixahunt.com/gadget/power-supply-calculator?calc=uuid-12345" } ``` --- ### 6. Hardware Support Engineer (AI Technician) Consultation - **Endpoint:** `POST /technician-consult` - **Requires Auth:** Bearer Token or Authenticated Session - **Payload:** ```json { "message": "আমার এই বিল্ডে কি কোনো Bottleneck বা পাওয়ার ড্রপ হবে?", "components": { ... } } ``` - **Response:** ```json { "status": "success", "reply": "আপনার নির্বাচিত Intel Core i7-14700K এবং RTX 4070 Super কনফিগারেশনের পিক পাওয়ার ড্র প্রায় ৫৮৬ ওয়াট...", "agent": { "name": "আরিফুল ইসলাম", "title": "সিনিয়র হার্ডওয়্যার স্পেশালিস্ট, পিক্সাহান্ট ল্যাব", "badge": "Pixahunt Lab Support", "avatar": "https://pixahunt.b-cdn.net/assets/images/technician-avatar.png" }, "share_url": "https://pixahunt.com/gadget/power-supply-calculator?calc=uuid-12345" } ```