{
    "creator": "Dayy",
    "openapi": "3.0.0",
    "info": {
        "version": "2.0.0",
        "title": "Dayy API - RESTful Service Documentation",
        "description": "Modern developer utility APIs by Dayy. Simple, reliable, & high-performance REST API services built with Next.js 16, Hono.js, & NJS Engine.",
        "contact": {
            "name": "Dayy",
            "url": "https://whatsapp.com/channel/0029Vb7gcbuLdQelWzrTzD3D"
        }
    },
    "servers": [
        {
            "url": "https://api.kyzzz.xyz",
            "description": "Production Server"
        },
        {
            "url": "http://localhost:3000",
            "description": "Local Server"
        }
    ],
    "components": {
        "schemas": {},
        "parameters": {}
    },
    "paths": {
        "/api/stats": {
            "get": {
                "summary": "System Statistics",
                "description": "Get detailed server system information (CPU, RAM, OS, etc)",
                "tags": [
                    "System Info"
                ],
                "x-status": "ONLINE",
                "parameters": [
                    {
                        "schema": {
                            "type": "string",
                            "example": "your-api-key",
                            "description": "Valid API Key (or use the x-api-key header)"
                        },
                        "required": false,
                        "description": "Valid API Key (or use the x-api-key header)",
                        "name": "apikey",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieve detailed server statistics",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "creator": {
                                            "type": "string",
                                            "example": "Dayy"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "online"
                                        },
                                        "system": {
                                            "type": "object",
                                            "properties": {
                                                "platform": {
                                                    "type": "string"
                                                },
                                                "release": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "arch": {
                                                    "type": "string"
                                                },
                                                "hostname": {
                                                    "type": "string"
                                                },
                                                "uptime": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "platform",
                                                "release",
                                                "type",
                                                "arch",
                                                "hostname",
                                                "uptime"
                                            ]
                                        },
                                        "cpu": {
                                            "type": "object",
                                            "properties": {
                                                "model": {
                                                    "type": "string"
                                                },
                                                "speed": {
                                                    "type": "string"
                                                },
                                                "cores": {
                                                    "type": "number"
                                                },
                                                "load_avg": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "number"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "model",
                                                "speed",
                                                "cores",
                                                "load_avg"
                                            ]
                                        },
                                        "memory": {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": "string"
                                                },
                                                "free": {
                                                    "type": "string"
                                                },
                                                "used": {
                                                    "type": "string"
                                                },
                                                "active_process_rss": {
                                                    "type": "string"
                                                },
                                                "heap_total": {
                                                    "type": "string"
                                                },
                                                "heap_used": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "free",
                                                "used",
                                                "active_process_rss",
                                                "heap_total",
                                                "heap_used"
                                            ]
                                        },
                                        "network": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "address": {
                                                            "type": "string"
                                                        },
                                                        "netmask": {
                                                            "type": "string"
                                                        },
                                                        "family": {
                                                            "type": "string"
                                                        },
                                                        "mac": {
                                                            "type": "string"
                                                        },
                                                        "internal": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "address",
                                                        "netmask",
                                                        "family",
                                                        "mac",
                                                        "internal"
                                                    ]
                                                }
                                            }
                                        },
                                        "process": {
                                            "type": "object",
                                            "properties": {
                                                "pid": {
                                                    "type": "number"
                                                },
                                                "node_version": {
                                                    "type": "string"
                                                },
                                                "uptime": {
                                                    "type": "string"
                                                },
                                                "title": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "pid",
                                                "node_version",
                                                "uptime",
                                                "title"
                                            ]
                                        },
                                        "time": {
                                            "type": "string"
                                        },
                                        "date": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "creator",
                                        "status",
                                        "system",
                                        "cpu",
                                        "memory",
                                        "network",
                                        "process",
                                        "time",
                                        "date"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/random/cosplay": {
            "get": {
                "summary": "Random Cosplay Image",
                "description": "Returns a random cosplay image directly as binary stream (image/jpeg)",
                "tags": [
                    "Random"
                ],
                "x-status": "ONLINE",
                "parameters": [
                    {
                        "schema": {
                            "type": "string",
                            "example": "your-api-key",
                            "description": "Valid API Key (or use the x-api-key header)"
                        },
                        "required": false,
                        "description": "Valid API Key (or use the x-api-key header)",
                        "name": "apikey",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Binary Image Stream",
                        "content": {
                            "image/jpeg": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Failed to fetch image"
                    }
                }
            }
        },
        "/api/downloader/tiktok": {
            "get": {
                "summary": "TikTok Downloader",
                "description": "Download TikTok videos without watermark by providing a video URL.",
                "tags": [
                    "Downloader"
                ],
                "x-status": "ONLINE",
                "parameters": [
                    {
                        "schema": {
                            "type": "string",
                            "example": "https://vt.tiktok.com/ZSVDcGXTk/",
                            "description": "TikTok Video URL"
                        },
                        "required": false,
                        "description": "TikTok Video URL",
                        "name": "url",
                        "in": "query"
                    },
                    {
                        "schema": {
                            "type": "string",
                            "example": "your-api-key",
                            "description": "Valid API Key (or use the x-api-key header)"
                        },
                        "required": false,
                        "description": "Valid API Key (or use the x-api-key header)",
                        "name": "apikey",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "TikTok video metadata and download links",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "creator": {
                                            "type": "string",
                                            "example": "Dayy"
                                        },
                                        "status": {
                                            "type": "boolean",
                                            "example": true
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "TikTok Video Title"
                                        },
                                        "duration": {
                                            "type": "number",
                                            "example": 18
                                        },
                                        "author": {
                                            "type": "object",
                                            "properties": {
                                                "nickname": {
                                                    "type": "string"
                                                },
                                                "unique_id": {
                                                    "type": "string"
                                                },
                                                "avatar": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "nickname",
                                                "unique_id",
                                                "avatar"
                                            ]
                                        },
                                        "video": {
                                            "type": "object",
                                            "properties": {
                                                "noWatermark": {
                                                    "type": "string"
                                                },
                                                "watermark": {
                                                    "type": "string"
                                                },
                                                "cover": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "noWatermark",
                                                "watermark",
                                                "cover"
                                            ]
                                        },
                                        "music": {
                                            "type": "object",
                                            "properties": {
                                                "title": {
                                                    "type": "string"
                                                },
                                                "author": {
                                                    "type": "string"
                                                },
                                                "playUrl": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "title",
                                                "author",
                                                "playUrl"
                                            ]
                                        },
                                        "stats": {
                                            "type": "object",
                                            "properties": {
                                                "views": {
                                                    "type": "number"
                                                },
                                                "likes": {
                                                    "type": "number"
                                                },
                                                "comments": {
                                                    "type": "number"
                                                },
                                                "shares": {
                                                    "type": "number"
                                                }
                                            },
                                            "required": [
                                                "views",
                                                "likes",
                                                "comments",
                                                "shares"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "creator",
                                        "status",
                                        "title",
                                        "duration",
                                        "author",
                                        "video",
                                        "music",
                                        "stats"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Missing or invalid URL parameter"
                    },
                    "500": {
                        "description": "Failed to fetch TikTok video"
                    }
                }
            }
        }
    }
}