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": {...},
"perks": [...]
}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:i- Material ID (deprecated, useidinstead)id- Material IDa- Amount required (deprecated, useaminstead)am- Amount required
output- Resulting material:i- Material ID produced (deprecated, useidinstead)id- Material ID produceda- Amount produced (deprecated, useaminstead)am- Amount required
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)
perks
Array of all unlockable company perk types that players can invest perk points into to gain passive bonuses.
Fields:
id- Perk identifier (CompanyPerkIdEnum)c- Category ID the perk belongs to (1=Bases, 2=Workforce, 3=Logistics, 4=Missions)group- Exclusivity group ID; perks in the same group are mutually exclusive (0=no exclusivity, 1=Supervision, 2=MissionPreference)tier- Perk tier; tiers above 1 require a minimum number of perk points already allocated in the same category before they can be unlockedmaxLvl- Maximum level this perk can be upgraded tocostBase- Perk point cost for the first levelcostIncrement- Additional perk point cost per level; cost at a given level =costBase + costIncrement × (level - 1)bonuses- Array of bonuses this perk provides, each scaled by the current perk level:type- Bonus type identifier (BonusTypeenum, see details below)perLevel- Bonus value added per levelgrowth- Growth modifier applied to the bonus scaling
req(optional) - Requirement to unlock this perk; if set, the perk branches from another perk:id- Required perk IDlvl- Minimum level the required perk must be at
BonusType Enum Reference
| Value | Name | Description |
|---|---|---|
| 0 | None | No bonus |
| 1 | Ship Speed | +x% to ship speed. Additive with Guild Flight Center and Company Starting bonuses. |
| 2 | Overhead Reduction (Flat) | Reduces overhead by x%. Positive values reduce overhead, capped at 50% total. Applied after multiplicative overhead bonuses. |
| 3 | Exchange Warehouse Capacity | Flat +x tonnes to exchange warehouse capacity. |
| 4 | Base Warehouse Capacity | +x% to base warehouse capacity. |
| 5 | Housing Size | +x% to housing size (workers that can be housed). |
| 6 | Building Degradation | +x% to building degradation rate. Negative values reduce degradation. Only affects production buildings. |
| 7 | Production Speed | +x% to production speed. Additive with technology production speed bonus. |
| 8 | Production Speed (×) | ×(1 + x/100) to final production speed. |
| 9 | Workforce Consumption | +x% to workforce consumption. Negative values reduce consumption. |
| 10 | Overhead Reduction (×) | ×(1 − x/100) to raw expansion overhead, before flat reduction. Granted by Administrative Optimization. |
| 11 | Ship Cargo Capacity | +x% to ship cargo capacity. Does not affect base ship weight. |
| 12 | Ship Degradation (×) | ×(1 − x/100) to ship degradation rate. Multiplicative with all other degradation modifiers. |
| 13 | Ship Fuel Consumption | +x% to ship fuel consumption. Negative values reduce consumption. |
| 14 | Mission Cooldown | +x% to mission cooldown time. Negative values reduce cooldown. |
| 15 | Mission Reward | +x% to all mission rewards (Credits, Prestige, Stars, Salvage). |
| 16 | Donation Mission Chance (×) | ×(1 − x/100) to Donation mission roll chance. |
| 17 | Explore Mission Chance (×) | ×(1 − x/100) to Exploration mission roll chance. |
| 18 | Produce Mission Chance (×) | ×(1 − x/100) to Production mission roll chance. |
| 19 | Deliver Packages Chance (×) | ×(1 − x/100) to Deliver Packages mission roll chance. |
| 20 | Source & Deliver Chance (×) | ×(1 − x/100) to Source and Deliver mission roll chance. |
| 21 | Salvage Mission Chance (×) | ×(1 − x/100) to Salvage mission roll chance. |
| 22 | Mission Size | +x% to mission size. Increases both task size and rewards. |
| 23 | Extra Mission Choice | +x% chance for an additional choice when new missions are generated. |
| 24 | Contract Fee | +x% to contract sale fee. Negative values reduce the fee. |
| 25 | Base Permits | +x base permits (allows building or expanding additional bases). |
| 26 | Overhead Reduction B (×) | ×(1 − x/100) to raw expansion overhead, before flat reduction. Granted by Supervision perks. |
| 27 | Ship Speed (×) | ×(1 − x/100) to Company Flight Speed Multiplier (reduces travel time). Granted by Haul and Crawl perk. |
Notes
- All prices are in cents (divide by 100 for actual currency values)
- The gamedata.json is a static file that is regenerated when the game server restarts
- Data may vary between different game servers