{
    "message": "Welcome to RedGifs Downloader API",
    "provided_by": "https://redgifsdownloader.net/",
    "disclaimer": "Not affiliated with RedGifs (redgifs.com)",
    "documentation": {
        "v1_legacy_endpoints": {
            "/v1/download": {
                "description": "Legacy downloader processing logic script.",
                "params": {
                    "url": "Direct URL to download"
                },
                "example": "/v1/download?url=https://redgifs.com/watch/hotuser"
            }
        },
        "v2_endpoints": {
            "/v2/search": {
                "description": "Search for GIFs and get user profile details (avatar, stats, etc.).",
                "params": {
                    "username": "RedGifs username (e.g. \"hotuser\")",
                    "url": "Full RedGifs profile URL",
                    "limit": "Max GIFs to return (default: 500)"
                },
                "example": "/v2/search?username=hotuser&limit=10"
            },
            "/v2/links": {
                "description": "Get a direct list of GIF URLs and basic profile info.",
                "params": {
                    "username": "RedGifs username (e.g. \"hotuser\")",
                    "url": "Full RedGifs profile URL",
                    "limit": "Max URLs to return (default: 500)"
                },
                "example": "/v2/links?url=https://www.redgifs.com/users/hotuser&limit=50"
            },
            "/v2/download": {
                "description": "Proxy download a RedGifs file directly.",
                "example": "/v2/download?url=https://www.redgifs.com/watch/someid"
            }
        }
    }
}