-
-
Notifications
You must be signed in to change notification settings - Fork 20
API Keys
To download games, itch-dl uses a mix of webpage scraping and calling official itch APIs. Served web pages behave a little different when you're logged in (more details in infoboxes, less restrictions), and a valid API key is required to authenticate requests to the API to fetch available files, etc. Each key is roughly equivalent to full access to a single Itch account - do not share them with other people!
- You can create or look up existing API keys on itch.io.
- Only
webkeys can be used by itch-dl - do not use existingdesktoporwharfkeys. - You can save your key as
api_keyin the configuration file for easy access. - You can also provide it with the
--api-keyargument toitch-dl.
Note: Game sites downloaded with a cookie may contain the logged in user's details. Downloader tries to remove some of this info in page postprocessing, but it's not guaranteed to be 100% clear.
- Open a new private browser window and log into itch.io.
- Open your web browser devtools (F12) and go to Storage -> Cookies. (Screenshots below.)
- Copy the
itchiocookie (NOTitchio_token, justitchio) and pass that as the--cookieargument. - You can save your cookie as
cookiein the configuration file for easy access.
In all browsers, open dev tools with F12, Ctrl-Shift-I or Menu -> more Tools -> Web Developer Tools.
In Firefox:
In Chrome, Chromium, Edge, Brave, Opera, Vivaldi and Helium (UI might look a little different):