{
  "openapi": "3.0.3",
  "info": {
    "title": "WoW Forever Community Atlas API",
    "version": "1.1.0",
    "description": "Read the public game atlas. Each accepted call counts once, including batch lookups. A standard account shares 5,000 calls per UTC day across its keys. Use keys only on the issuing domain."
  },
  "servers": [
    {
      "url": "https://wowforeverfr.com/api/atlas/v1",
      "description": "FR"
    },
    {
      "url": "https://wowforeveren.com/api/atlas/v1",
      "description": "EN"
    }
  ],
  "security": [
    {},
    {
      "BearerKey": []
    },
    {
      "ApiKey": []
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "catalog",
        "summary": "Atlas edition and available collections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "search",
        "summary": "Search across collections",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Name fragment or record ID"
          },
          {
            "in": "query",
            "name": "zone_id",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Zone map ID"
          },
          {
            "in": "query",
            "name": "min_level",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "description": "Minimum level"
          },
          {
            "in": "query",
            "name": "max_level",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "description": "Maximum level"
          },
          {
            "in": "query",
            "name": "faction",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "horde",
                "alliance"
              ]
            },
            "description": "Includes neutral or shared records"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            },
            "description": "Page number"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Results per page (default 24)"
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "battlegrounds",
                "classes",
                "dungeons",
                "flights",
                "items",
                "itemsets",
                "professions",
                "quests",
                "recipes",
                "resources",
                "spellbook",
                "spells",
                "talents",
                "trainers",
                "training",
                "vendors",
                "zones"
              ]
            },
            "description": "Restrict to a collection"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/{collection}": {
      "get": {
        "operationId": "listRecords",
        "summary": "List a collection",
        "parameters": [
          {
            "in": "path",
            "name": "collection",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "battlegrounds",
                "classes",
                "dungeons",
                "flights",
                "items",
                "itemsets",
                "professions",
                "quests",
                "recipes",
                "resources",
                "spellbook",
                "spells",
                "talents",
                "trainers",
                "training",
                "vendors",
                "zones"
              ]
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Name fragment or record ID"
          },
          {
            "in": "query",
            "name": "zone_id",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Zone map ID"
          },
          {
            "in": "query",
            "name": "min_level",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "description": "Minimum level"
          },
          {
            "in": "query",
            "name": "max_level",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "description": "Maximum level"
          },
          {
            "in": "query",
            "name": "faction",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "horde",
                "alliance"
              ]
            },
            "description": "Includes neutral or shared records"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            },
            "description": "Page number"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Results per page (default 24)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/{collection}/{id}": {
      "get": {
        "operationId": "getRecord",
        "summary": "Read one record",
        "parameters": [
          {
            "in": "path",
            "name": "collection",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "battlegrounds",
                "classes",
                "dungeons",
                "flights",
                "items",
                "itemsets",
                "professions",
                "quests",
                "recipes",
                "resources",
                "spellbook",
                "spells",
                "talents",
                "trainers",
                "training",
                "vendors",
                "zones"
              ]
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/batch/{collection}": {
      "get": {
        "operationId": "batch",
        "summary": "Fetch up to 25 IDs in one call; returns unique IDs in request order",
        "parameters": [
          {
            "in": "path",
            "name": "collection",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "battlegrounds",
                "classes",
                "dungeons",
                "flights",
                "items",
                "itemsets",
                "professions",
                "quests",
                "recipes",
                "resources",
                "spellbook",
                "spells",
                "talents",
                "trainers",
                "training",
                "vendors",
                "zones"
              ]
            }
          },
          {
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "type": "string",
              "example": "783,7,15",
              "pattern": "^[a-z0-9-]{1,64}(,[a-z0-9-]{1,64}){0,24}$"
            },
            "description": "Comma-separated IDs"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/leveling": {
      "get": {
        "operationId": "levelZones",
        "summary": "Zones with relevant quests for a level",
        "parameters": [
          {
            "in": "query",
            "name": "level",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            },
            "description": "Character level"
          },
          {
            "in": "query",
            "name": "faction",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "alliance",
                "horde"
              ]
            },
            "description": "Faction, default all"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "map": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "low": {
                            "type": "integer"
                          },
                          "high": {
                            "type": "integer"
                          },
                          "total": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/upgrades/{item}": {
      "get": {
        "operationId": "gearUpgrades",
        "summary": "Equipment alternatives for an item and character level",
        "parameters": [
          {
            "in": "path",
            "name": "item",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "in": "query",
            "name": "level",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            },
            "description": "Character level"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/reperes": {
      "get": {
        "operationId": "communityMarkers",
        "summary": "Approved community map markers",
        "parameters": [
          {
            "in": "query",
            "name": "zone_id",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Zone map ID"
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Marker category"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            },
            "description": "Page number"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "zone_id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "source": {
                      "type": "string"
                    },
                    "build": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/meta": {
      "get": {
        "operationId": "metadata",
        "summary": "Current atlas edition and publication status",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful read",
            "headers": {
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid or revoked API key"
          },
          "404": {
            "description": "Unknown record, collection or path"
          },
          "422": {
            "description": "Invalid query parameters"
          },
          "429": {
            "description": "Quota reached",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerKey": {
        "type": "http",
        "scheme": "bearer"
      },
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "schemas": {
      "Record": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "battlegrounds",
              "classes",
              "dungeons",
              "flights",
              "items",
              "itemsets",
              "professions",
              "quests",
              "recipes",
              "resources",
              "spellbook",
              "spells",
              "talents",
              "trainers",
              "training",
              "vendors",
              "zones"
            ]
          },
          "name": {
            "type": "string"
          },
          "level": {
            "type": "integer",
            "nullable": true
          },
          "zone_id": {
            "type": "integer",
            "nullable": true
          },
          "faction": {
            "type": "string",
            "nullable": true
          },
          "details": {},
          "path": {
            "type": "string"
          },
          "api": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "next_page": {
            "type": "integer",
            "nullable": true
          }
        }
      }
    }
  }
}
