API for GBs

This small API should enable you to easily get the data about a LB, the patron shares and the bonus.

Get legendary building list

The first thing you should do is to get a list of possible Legendary Buildings. For this you use this URL:

The output looks something like this:


{
  "status": 200,
  "response": {
    "buildings": [
      {
        "id": "X_AllAge_EasterBonus4",
        "name": "Observatory"
      },
      {
        "id": "X_AllAge_Expedition",
        "name": "Temple of Relics"
      },
      {
        "id": "X_AllAge_Galata",
        "name": "Galata Tower"
      },
      {
        "id": "X_AllAge_Oracle",
        "name": "Oracle of Delphi"
      },
      {
        "id": "X_ArcticFuture_Landmark1",
        "name": "Gaea Statue"
      },
      {
        "id": "X_ArcticFuture_Landmark2",
        "name": "Arctic Orangery"
      },
      {
        "id": "X_ArcticFuture_Landmark3",
        "name": "Seed Vault"
      },
.
.

With the id you can now make queries.

Get single building

The URL is made up of several parameters.

Parameter Notwendig Typ Value
id true string An id from the list
Example: X_ArcticFuture_Landmark2
level true int A level between 1 - n
Example: 12

This could be a possible URL:

The output to this URL looks like this:


{
  "status": 200,
  "response": {
    "id": "X_ArcticFuture_Landmark2",
    "name": "Arctic Orangery",
    "era": "ArcticFuture",
    "total_fp": 3373,
    "level": 54,
    "rewards": {
      "critical_hit_chance": 16.08,
      "strategy_points": 54
    },
    "patron_bonus": [
      {
        "rank": 1,
        "forgepoints": 910,
        "blueprints": 11,
        "medals": 27444
      },
      {
        "rank": 2,
        "forgepoints": 455,
        "blueprints": 8,
        "medals": 13722
      },
      {
        "rank": 3,
        "forgepoints": 150,
        "blueprints": 6,
        "medals": 6861
      },
      {
        "rank": 4,
        "forgepoints": 40,
        "blueprints": 5,
        "medals": 2744
      },
      {
        "rank": 5,
        "forgepoints": 10,
        "blueprints": 4,
        "medals": 1372
      }
    ]
  }
}

Error response

If a level is not available, a possible message can be displayed:


{
  "status": 404,
  "response": {
    "error": "No data available"
  }
}