{
  "openapi": "3.1.0",
  "info": {
    "title": "Zapi — Games",
    "description": "Every Games endpoint on Zapi. Rendered catalog: https://preview.zapi.ink/category/games",
    "version": "1.0.0",
    "license": {
      "name": "Zapi Terms of Service",
      "url": "https://preview.zapi.ink/terms"
    }
  },
  "servers": [
    {
      "url": "https://api-preview.zapi.ink"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "Envelope": {
        "type": "object",
        "required": [
          "status",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "content": {}
        }
      }
    },
    "responses": {
      "Error": {
        "description": "Invalid key, rate limit, or upstream failure",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://preview.zapi.ink/category/games/llms.txt"
  },
  "paths": {
    "/v1/games:aov/profile": {
      "get": {
        "operationId": "games_aov_profile",
        "summary": "Get User Profile",
        "description": "Cek username akun Arena of Valor (AoV) berdasarkan Player ID. Game MOBA 5v5 dari TiMi Studio yang dikenal sebagai Honor of Kings di pasar global.",
        "tags": [
          "Arena of Valor Stalker"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/games/aov#reference-profile"
        },
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": true,
            "description": "ID akun dalam game",
            "schema": {
              "type": "string",
              "example": "123456789"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": null
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/games:free-fire/profile": {
      "get": {
        "operationId": "games_free_fire_profile",
        "summary": "Get User Profile",
        "description": "Cek username akun Free Fire berdasarkan Player ID. Battle royale mobile dari Garena dengan 50 pemain per match selama 10 menit.",
        "tags": [
          "Free Fire Stalker"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/games/free-fire#reference-profile"
        },
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": true,
            "description": "ID akun dalam game",
            "schema": {
              "type": "string",
              "example": "987654321"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": null
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/games:genshin-impact/profile": {
      "get": {
        "operationId": "games_genshin_impact_profile",
        "summary": "Get User Profile",
        "description": "Cek username akun Genshin Impact berdasarkan UID. Open-world action-RPG gacha dari HoYoverse — multi-platform (mobile/PC/PS).",
        "tags": [
          "Genshin Impact Stalker"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/games/genshin-impact#reference-profile"
        },
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": true,
            "description": "ID akun dalam game",
            "schema": {
              "type": "string",
              "example": "800000001"
            }
          },
          {
            "name": "serverId",
            "in": "query",
            "required": true,
            "description": "Server ID akun (wajib)",
            "schema": {
              "type": "string",
              "example": "os_asia"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": null
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/games:mlbb/profile": {
      "get": {
        "operationId": "games_mlbb_profile",
        "summary": "Get User Profile",
        "description": "Cek username akun Mobile Legends: Bang Bang berdasarkan User ID dan Zone ID. Game MOBA 5v5 mobile terpopuler di Asia Tenggara dari Moonton.",
        "tags": [
          "Mobile Legends Stalker"
        ],
        "externalDocs": {
          "url": "https://preview.zapi.ink/api/games/mlbb#reference-profile"
        },
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": true,
            "description": "ID akun dalam game",
            "schema": {
              "type": "string",
              "example": "123456789"
            }
          },
          {
            "name": "zoneId",
            "in": "query",
            "required": true,
            "description": "Zone ID akun (wajib)",
            "schema": {
              "type": "string",
              "example": "1234"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "status": "success",
                  "message": "Success",
                  "content": null
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  }
}