{
    "openapi": "3.0.3",
    "info": {
        "title": "RONAKAPI",
        "description": "Next-Gen Ultra High-Speed Developer API Gateway by Ronak — Full-Stack Engineer & Cyber Security Specialist",
        "version": "2.0.0",
        "contact": {
            "name": "Ronak",
            "url": "https://t.me/ronak_api"
        }
    },
    "servers": [
        {
            "url": "https://sarkariupdate.online/api",
            "description": "RONAK API Production Edge Server"
        }
    ],
    "paths": {
        "/api/socialdownloder": {
            "get": {
                "summary": "Universal Social Downloader",
                "description": "Download from YouTube, Instagram, Snapchat, Pinterest, Facebook and more — one endpoint for everything.",
                "tags": [
                    "Downloader"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "url",
                        "in": "query",
                        "required": true,
                        "description": "Direct social media video/post URL",
                        "schema": {
                            "type": "string",
                            "example": "https://www.youtube.com/watch?v=QIEkh9UNkoY"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "platform": "youtube",
                                    "title": "Universal Video Stream HD",
                                    "download_url": "https://download.ronakapi.dev/stream?v=QIEkh9UNkoY&format=mp4"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/instaapi": {
            "get": {
                "summary": "Instagram Profile Info",
                "description": "Fetch full public profile info for any Instagram username — bio, followers, posts, avatar, verification status.",
                "tags": [
                    "Social"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "username",
                        "in": "query",
                        "required": true,
                        "description": "Instagram account username",
                        "schema": {
                            "type": "string",
                            "example": "ronak.dev"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "status": true,
                                    "response": {
                                        "username": "ronak.dev",
                                        "full_name": "Ronak (RONE)",
                                        "biography": "Ronak | API Developer & Cloud Engineer",
                                        "followers": 1420,
                                        "following": 85,
                                        "post_count": 48,
                                        "is_private": false,
                                        "is_verified": true,
                                        "profile_pic": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=500"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/nano": {
            "get": {
                "summary": "Nano Banana Image Generator",
                "description": "Generate an ultra-crisp AI image from any text prompt within seconds.",
                "tags": [
                    "AI"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "prompt",
                        "in": "query",
                        "required": true,
                        "description": "Creative visual prompt",
                        "schema": {
                            "type": "string",
                            "example": "cyberpunk hacker city neon orange"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "prompt": "cyberpunk hacker city neon orange",
                                    "used_variant": "a high-detail photo of cyberpunk hacker city neon orange",
                                    "url": "http://localhost/ownapi/cdn/image?prompt=cyberpunk+hacker+city+neon+orange&seed=64260",
                                    "seed": 64260,
                                    "model": "nano-banana-ai-v2",
                                    "dimensions": "1024x1024",
                                    "author": "Ronak",
                                    "credit": "@ronak_api"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/snapdownloader": {
            "get": {
                "summary": "Snapchat Info API",
                "description": "Get public profile info, stories, and spotlight highlights for any Snapchat username.",
                "tags": [
                    "Social"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "username",
                        "in": "query",
                        "required": true,
                        "description": "Snapchat username handle",
                        "schema": {
                            "type": "string",
                            "example": "ronak_trio"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "status": "success",
                                    "data": {
                                        "profile": {
                                            "username": "ronak_trio",
                                            "title": "Ronak",
                                            "address": "India",
                                            "subscriberCount": 12500
                                        },
                                        "spotlightHighlights": [
                                            "https://cf-st.sc-cdn.net/d/spotlight_video_01.mp4"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/gpt4": {
            "get": {
                "summary": "GPT-4 Chat API",
                "description": "Send a prompt and receive a real-time, smart GPT-4 powered reasoning completion.",
                "tags": [
                    "AI"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "prompt",
                        "in": "query",
                        "required": true,
                        "description": "User message or prompt",
                        "schema": {
                            "type": "string",
                            "example": "hi, explain edge computing in 1 sentence"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "model": "gpt4",
                                    "prompt": "hi, explain edge computing in 1 sentence",
                                    "result": {
                                        "message": "Edge computing processes data closer to where it is generated rather than in a centralized cloud data center, reducing latency and bandwidth use."
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/gpt3": {
            "get": {
                "summary": "GPT-3 Chat API",
                "description": "Lightweight, ultra-fast GPT-3 powered conversational completion endpoint.",
                "tags": [
                    "AI"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "prompt",
                        "in": "query",
                        "required": true,
                        "description": "User message or prompt",
                        "schema": {
                            "type": "string",
                            "example": "hello world"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "model": "gpt3",
                                    "prompt": "hello world",
                                    "result": {
                                        "message": "Hello! How can I assist you with your project today?"
                                    },
                                    "credit": {
                                        "by": "@ronak_api",
                                        "telegram": "https://t.me/ronak_api"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/terabox": {
            "get": {
                "summary": "Terabox Downloader",
                "description": "Extract direct streaming and download links (multi-quality 360p, 480p, 720p, 1080p) from any Terabox share URL.",
                "tags": [
                    "Downloader"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "url",
                        "in": "query",
                        "required": true,
                        "description": "Share URL from Terabox / 1024terabox",
                        "schema": {
                            "type": "string",
                            "example": "https://1024terabox.com/s/1V4h1HjREcOG-EbwzwsfPAw"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "data": {
                                        "list": [
                                            {
                                                "title": "ronak_sample_video.mp4",
                                                "size": "432.76 MB",
                                                "resolution": "720p",
                                                "download_url": "https://stream.ronakapi.dev/download?token=rnk_9281a8c8",
                                                "streams": {
                                                    "360p": "https://stream.ronakapi.dev/fast_stream?res=360p&token=rnk_9281a8c8",
                                                    "480p": "https://stream.ronakapi.dev/fast_stream?res=480p&token=rnk_9281a8c8",
                                                    "720p": "https://stream.ronakapi.dev/fast_stream?res=720p&token=rnk_9281a8c8"
                                                }
                                            }
                                        ],
                                        "total_files": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/mobile": {
            "get": {
                "summary": "Mobile Number / Email Lookup",
                "description": "Lookup subscriber & telecom circle information for an Indian mobile number or email address across 14 regional circles.",
                "tags": [
                    "Lookup"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "mobile",
                        "in": "query",
                        "required": false,
                        "description": "10-digit Indian Mobile Number",
                        "schema": {
                            "type": "string",
                            "example": "9928370161"
                        }
                    },
                    {
                        "name": "email",
                        "in": "query",
                        "required": false,
                        "description": "Email address for reverse lookup",
                        "schema": {
                            "type": "string",
                            "example": "SANJIBDEB23@REDIFFMAIL.COM"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "circle": "Jodhpur",
                                    "query": {
                                        "mobile": "9928370161"
                                    },
                                    "result": {
                                        "name": "Ramesh Kumar Sharma",
                                        "father_name": "Suresh Sharma",
                                        "address": "House No. 12, Shastri Nagar, Jodhpur, Rajasthan - 342001",
                                        "id_number": "RJ14XXXXXXXX",
                                        "alt_mobile": "9928370162",
                                        "circle": "Jodhpur",
                                        "operator": "Airtel"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/new": {
            "get": {
                "summary": "Number Info Lookup",
                "description": "Instant lookup API for verified telecom registration info and state circles.",
                "tags": [
                    "Lookup"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "required": true,
                        "description": "Target mobile number",
                        "schema": {
                            "type": "string",
                            "example": "9889662072"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "num": "9889662072",
                                    "result": {
                                        "name": "Anita Devi",
                                        "address": "Sector 14, Faridabad, Haryana - 121007",
                                        "id_number": "HR27XXXXXXXX"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/punjab": {
            "get": {
                "summary": "Punjab Business Directory Lookup",
                "description": "Search Punjab's local business directory by phone number or keyword — shop details, wholesale category, location and contact.",
                "tags": [
                    "Lookup"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "phone",
                        "in": "query",
                        "required": true,
                        "description": "Business phone or query string",
                        "schema": {
                            "type": "string",
                            "example": "918699999997"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "data": [
                                        {
                                            "name": "Narang pharma distributors",
                                            "category": "Pharmaceutical Products Wholesaler",
                                            "address": "shop no 21-22 narang tower, pindi street, Ludhiana, Punjab 141008",
                                            "phone": "918699999997"
                                        }
                                    ],
                                    "query": "918699999997",
                                    "search_type": "phone",
                                    "success": true,
                                    "total_results": 1,
                                    "credit": "@ronak_api"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/printrest": {
            "get": {
                "summary": "Pinterest Search API",
                "description": "Search Pinterest by keyword and get HD image pins across multiple resolutions with metadata.",
                "tags": [
                    "Search"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "required": true,
                        "description": "Search query keywords",
                        "schema": {
                            "type": "string",
                            "example": "radha"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "data": {
                                        "ok": true,
                                        "query": "radha",
                                        "pins": [
                                            {
                                                "id": "693132198946283254",
                                                "title": "Radha Rani HD Wallpaper",
                                                "description": "Ultra HD devotional art portrait",
                                                "url": "https://www.pinterest.com/pin/693132198946283254/",
                                                "media_type": "image",
                                                "images": {
                                                    "236x": {
                                                        "url": "https://i.pinimg.com/236x/88/ab/cd/sample.jpg",
                                                        "width": 236,
                                                        "height": 295
                                                    },
                                                    "474x": {
                                                        "url": "https://i.pinimg.com/474x/88/ab/cd/sample.jpg",
                                                        "width": 474,
                                                        "height": 592
                                                    },
                                                    "736x": {
                                                        "url": "https://i.pinimg.com/736x/88/ab/cd/sample.jpg",
                                                        "width": 736,
                                                        "height": 920
                                                    },
                                                    "orig": {
                                                        "url": "https://i.pinimg.com/originals/88/ab/cd/sample.jpg",
                                                        "width": 1200,
                                                        "height": 1500
                                                    }
                                                },
                                                "author": {
                                                    "username": "ronak_art",
                                                    "full_name": "Ronak Art Studio"
                                                },
                                                "board": {
                                                    "name": "Divine Wallpapers",
                                                    "url": "https://www.pinterest.com/ronak_art/divine/"
                                                },
                                                "engagement": {
                                                    "reactions": 34,
                                                    "comment_count": 2
                                                }
                                            }
                                        ]
                                    },
                                    "operation": "search_pins",
                                    "timestamp": "2026-08-29T11:45:00.000000",
                                    "credit": "@ronak_api"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/truecaller": {
            "get": {
                "summary": "Truecaller Lookup",
                "description": "Reverse lookup a phone number via Truecaller — registered caller name, telecom carrier, and spam score.",
                "tags": [
                    "Lookup"
                ],
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "Your API authorization key",
                        "schema": {
                            "type": "string",
                            "example": "ronak"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "required": true,
                        "description": "10-digit phone number to lookup",
                        "schema": {
                            "type": "string",
                            "example": "9876543210"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "example": {
                                    "success": true,
                                    "num": "9876543210",
                                    "result": {
                                        "name": "Registered Caller Name",
                                        "carrier": "Jio",
                                        "location": "India",
                                        "spam_score": 0
                                    },
                                    "credit": "@ronak_api"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}