Help Documents API?

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

DocHoss333
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Jan 23, 2025 4:25 pm
Contact:

Help Documents API?

Post by DocHoss333 »

Hi Factorio devs, you've devoured a ton of my life over the past few years and I thank you for it! I work in tech and would like to use the new (well, new-ish at this point) AI craze to build a mod or standalone site to use an LLM to help Factorio players build better factories. I would love to have either a structured set of data for all the craftable items in the game, or even an API that may have that information exposed as REST endpoints. The wiki is great, but not easily digestible by a model...certainly doable, but if that data already exists (as it does in the game), perhaps there's an easier way. Does that data set exist? If not, is there any hope of an API?
eugenekay
Fast Inserter
Fast Inserter
Posts: 165
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Help Documents API?

Post by eugenekay »

All of the Lua prototype data is available on GitHub. The Lua API itself offers necessary context for what each property does.

You may also want to investigate the Blueprint string format as the easiest way to get Designs in/out of the game.

Good luck!
robot256
Smart Inserter
Smart Inserter
Posts: 1063
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Help Documents API?

Post by robot256 »

Run factorio with the command line argument "--dump-data". The game will create a json file with all the prototype data at the end of the loading process for the currently enabled set of mods.

There are also mods on the mod portal that can produce customized data dumps.
Post Reply

Return to “Ideas and Suggestions”