Download Mod File (v1)
download_fileDownload a Nexus Mods mod file to a local folder. Specify game, mod ID, and file ID; premium users get direct download, non-premium uses nxm link credentials.
Instructions
Download a mod file to a local directory (dest_dir, else NEXUS_DOWNLOAD_DIR). Premium: direct. Non-premium: pass key + expires from an nxm:// link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Non-premium only: `key` from an nxm:// link (Mod Manager Download button on the site) | |
| game | Yes | Game domain name as in site URLs, e.g. "skyrimspecialedition", "fallout4", "stardewvalley" | |
| mod_id | Yes | Mod ID (number in the mod page URL /mods/<id>) | |
| expires | No | Non-premium only: `expires` from the same nxm:// link | |
| file_id | Yes | File ID (from get_mod_files) | |
| dest_dir | No | Absolute target directory (created if missing) |