In other languages:

Download API

From Official Factorio Wiki
Revision as of 18:38, 21 February 2017 by Lexxy Fox (talk | contribs) (Created page with "This API allows you to download official releases of stand-alone Factorio from the Factorio servers. It's not so much of an API as it is web scraping, but it's documented here...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This API allows you to download official releases of stand-alone Factorio from the Factorio servers. It's not so much of an API as it is web scraping, but it's documented here for completeness. Please note that's there's a separate, (semi)official API for upgrading between releases, which should be used when possible to lighten load on the Factorio servers. (I'll document that later, promise!)

Downloading Factorio requires an authenticated session with the web server, which is different than the typical authentication mechanism. To log in, create an HTTP session and GET https://www.factorio.com/login. There's a CSRF token you'll need to grab which can be found using the CSS selector input[name=csrf_token] or alternatively XPATH TODO.