Game Data API Documentation
The Game Data API provides public access to static game configuration data for Galactic Tycoons. This endpoint returns a comprehensive JSON file containing all materials, recipes, buildings, and other game data.
Endpoint
GET https://api.g2.galactictycoons.com/gamedata.jsonResponse Structure
The JSON file contains the following root-level properties:
{
"materials": [...],
"recipes": [...],
"buildings": [...],
"workers": [...],
"systems": [...],
"baseBuildingCost": [...],
"shipEmitters": [...],
"shipReactors": [...],
"achievements": [...],
"medalTypes": [...],
"buildProjects": [...],
"galaxyConfig": {...}
}Data Structure
materials
Array of all material types available in the game.
Fields:
id- Unique material identifiersName- Short display namenamedescriptiontype- Material category enumweight- Weight per unit in tonnessource- 1=extraction, 2=crafting/farmingreqTech- Required technology level to produce (0=none)tiercp- Calculated base price in cents (price of material calculated by internal algorithm, the actual market price may vary)
recipes
Array of all crafting recipes.
Fields:
idproducedIn- Building type ID where this recipe can be craftedtype- Recipe category enum (1=Extraction, 2=Production, 3=Farming)reqTech- Technology level required to producetimeMinutes- Production time in minutesinputs- Array of required input materials:id- Material IDam- Amount required
output- Resulting material:id- Material ID producedam- Amount produced
buildings
Array of all buildings in the game.
Fields:
idnamedescriptioncost- UnusedconstructionMaterials- Array of materials required to buildworkersNeeded- Worker requirements by type [Worker, Technician, Engineer, Scientist]workersHousing- Housing capacity by typespecialization- Building specialization enum (Construction = 1, Manufacturing = 2, Agriculture = 3, ResourceExtraction = 4, Metallurgy = 5, Chemistry = 6, Electronics = 7, FoodProduction = 8, Science = 10)tierrequiredResearch- UnusedrecipesIds- Array of recipe IDs this building can produce
workers
Array of worker types.
Fields:
type- 1=Worker, 2=Technician, 3=Engineer, 4=ScientistadminCost- Administration overhead (Expansion Burden) per 100 workersconsumables- Array of daily consumable requirements:matId- Material ID consumedamount- Daily consumption per 1,000 workersessential
systems
Array of star systems.
Fields:
idname- System namex, y- Galaxy map coordinatesv- Visual variation identifierplanets- Array of planets (null for empty systems):id- Planet IDsId- Parent system IDname- Planet nametype- Planet classification enum (visual only)mats- Available materials with abundance:id- Material IDab- Abundance rating (affects extraction speed: 50=half speed, 200=double)
fert- Fertility (100 is standard, 0=no farming)x, y- Coordinatessize- Planet size (visual only)tier- Planet tier
baseBuildingCost
Array of materials required to establish a new base. Each entry contains material ID and amount.
shipEmitters
Array of FTL emitters for ships.
Fields:
type- Emitter identifieracceleration- ly/h² at full powermaxSpeed- ly/hfieldCapacity- Warp field capacity for cargoweight- Component weightenergyDraw- Power consumption requirementscost- Construction material ID
shipReactors
Array of reactor types ships.
Fields:
type- Reactor identifiername- Reactor nameweight- Reactor weightenergy- Power outputfuelConsumption- Fuel usage per hourfuelCapacity- Base Fuel CapacityfuelTanksUsed- Fuel tanks cost per one reactorfuelId- Fuel material IDcost- Construction material ID
achievements
Array of achievement definitions with progression milestones.
Fields:
typeotherIdnamedescriptionmilestones- Array of progression thresholds:milestone- Target value to reachrewardAmount- Reward quantitypr- Prestige points earned
rewardType- Reward category enum (1=stars, 2=Cash, 3=Material)
medalTypes
Array of competitive ranking medals for leaderboards.
Fields:
eventTypeotherIdperiodpe- Array of prestige rewards by rank (unscaled)
buildProjects
Array of large-scale construction projects for communities.
Fields:
idnamedescriptionownerType- (4=Guild)cost- Array of costs for level ranges:from- From levelto- To levelcost- Material required for this level range ({id, am})
cons- Array of consumables for level ranges; same format as costmaxLevel- Maximum levelbuff- Bonus effect per levelpr- (not used)
Notes
- All prices are in cents (divide by 100 for actual currency values)
- The file is regenerated when the games server restarts
- Data may vary between different game servers