# Mega.nz Downloader โ€” Zapi reference > Mega.nz file downloader โ€” retrieve direct download link and file metadata from any public Mega.nz share URL. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/downloader/mega-nz - Endpoint catalog: https://zpi.web.id/category/downloader - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Mega.nz Downloader **Category:** downloader ยท **Slug:** `mega-nz` **Detail page:** https://zpi.web.id/api/downloader/mega-nz Mega.nz file downloader โ€” retrieve direct download link and file metadata from any public Mega.nz share URL. **Tags:** downloader, file, storage ### Download - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/downloader:mega-nz/download` - **Cache TTL:** 360s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `url` | string | query | yes | URL file Mega.nz (format /file/ atau /#!) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/downloader:mega-nz/download?url=https%3A%2F%2Fmega.nz%2Ffile%2FEntxADbJ%23UCXeVEZbEo0ci9xKBFJzgMPol39MfFecwoB-TXfp1yc" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/downloader:mega-nz/download?url=https%3A%2F%2Fmega.nz%2Ffile%2FEntxADbJ%23UCXeVEZbEo0ci9xKBFJzgMPol39MfFecwoB-TXfp1yc", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/downloader:mega-nz/download?url=https%3A%2F%2Fmega.nz%2Ffile%2FEntxADbJ%23UCXeVEZbEo0ci9xKBFJzgMPol39MfFecwoB-TXfp1yc", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "fileId": "8soDySiQ", "fileName": "libvirt-4.5.0.tar.xz", "fileSize": "14.06 MB", "mimeType": "application/x-xz", "downloadUrl": "https://gfs270n367.userstorage.mega.co.nz/dl/rATNmAse8-iWVgJqXUC330yO-h_7s3ZfWMlbHu4zWYYMQeQvyUFnVfqNryw-CXAgNAGIK2N2glJTHGkLYUWFzzDd-wNovqhwCNc7EH0ricRyMPRkNyXa5pAKB5JzjA", "fileSizeBytes": 14743956, "downloadUrlMirrors": [ "https://gfs270n367.userstorage.mega.co.nz/dl/rATNmAse8-iWVgJqXUC330yO-h_7s3ZfWMlbHu4zWYYMQeQvyUFnVfqNryw-CXAgNAGIK2N2glJTHGkLYUWFzzDd-wNovqhwCNc7EH0ricRyMPRkNyXa5pAKB5JzjA", "https://gfs262n301.userstorage.mega.co.nz/dl/t_vX0tOikzh58QKRZb4HTsbyEOb3ntE8Jz5mVHOd1hERYJuxF2BJrj4jmj2ughRx23nhSV6i6EO2Sa5n0NCGqcXG7J4Cdq07rmi5-gw0Pl6LWE9TznkcfKVodNKp3A", "https://gfs214n109.userstorage.mega.co.nz/dl/dhGvvPFZvim0hQKw4Lo_FFii6TRWEB5Pp0l6R13it0zQTrhxTxrJS_cybtLgwga4tdXcYr8lxioOxonBj5OGsUReejLeShYJNVeGIEOt9tjrbX8cVGpwIx9rI5m-Pw", "https://gfs204n119.userstorage.mega.co.nz/dl/a4MWwx_nV-GteAL-j5c2gVD40Djupd6IpKy3sCBd6YmFPVS6PUlhxsjJby2uTXliQFyj7Up1EW_1zuckMlgemRljDEUNYtVBHAvySCryVHOqHdSaxH579Pb8Dd9UuQ", "https://gfs208n109.userstorage.mega.co.nz/dl/7gFSbMtTTIC2dAI6KmxSfdPfwXQMX2VR7QDkNld799fNvKS8M0BATl-IQh2Z305iynV7-2fX1KAzMCf2HPKKq8rm66WIkMOaIoxA96MwbtoUEQEIKDkl4-dzx_MThQ", "https://gfs302n109.userstorage.mega.co.nz/dl/FP3ZcaXE13wdrgJms0kP-CJVzJWxzT9o8x1FsqUfEGX3bKDecZW8lubZx37jwJ0bYZsLi3YwjuCWMz09GuMHW_vOqP1CpxrzNCGdJE9ajq8-miXtgZtpr_vcp72oxQ" ] } ``` --- _Generated: 2026-08-02T14:28:06.305Z_