{
 "openapi": "3.1.0",
 "info": {
  "title": "Umbral Market WoW Forever auction house price API",
  "version": "1",
  "summary": "Free JSON prices of every WoW Forever auction house in EU and US, updated hourly. Attribution required: a visible link \"Data by Umbral Market\" to https://umbralmarket.com/forever.",
  "description": "Prices are read from Blizzard about once an hour. Free, no key, no account; GET only. Prices are copper per unit (10000 copper = 1 gold).\n\nTerms of use (keep them in anything built with this API):\n1. Credit: wherever these prices are shown, show a visible link \"Data by Umbral Market\" to https://umbralmarket.com/forever (HTML: <a href=\"https://umbralmarket.com/forever\">Data by Umbral Market</a>). Every JSON answer repeats this as \"attribution\".\n2. Link item names to the item's page: https://umbralmarket.com/forever/item/{id}. Answers about one item carry it as \"url\", lists carry the pattern as \"item_url\".\n3. Be gentle: one request per house per hour is enough. For many items ask for the whole house (/items, /history) instead of one request per item.\n4. Limit: 200 requests per minute per IP address and endpoint, then HTTP 429 with Retry-After.\n5. Send a User-Agent that names your tool.\n6. Do not sell the data or re-publish it as your own price feed or API.\n\nPlain-text reference with every endpoint: https://umbralmarket.com/forever/developers.txt",
  "license": {
   "name": "Free with attribution: a visible link \"Data by Umbral Market\" to https://umbralmarket.com/forever",
   "url": "https://umbralmarket.com/forever/developers#terms"
  },
  "contact": {
   "name": "Umbral Market",
   "url": "https://umbralmarket.com/feedback"
  }
 },
 "externalDocs": {
  "description": "Documentation, terms and embeds",
  "url": "https://umbralmarket.com/forever/developers"
 },
 "servers": [
  {
   "url": "https://umbralmarket.com"
  }
 ],
 "x-attribution": {
  "required": true,
  "text": "Data by Umbral Market",
  "url": "https://umbralmarket.com/forever",
  "html": "<a href=\"https://umbralmarket.com/forever\">Data by Umbral Market</a>",
  "item_url": "https://umbralmarket.com/forever/item/{id}",
  "terms": "https://umbralmarket.com/forever/developers#terms"
 },
 "paths": {
  "/api/forever/v1/houses": {
   "get": {
    "operationId": "getHouses",
    "summary": "Auction houses of a region",
    "description": "Every server group (realm type) of a region with the house id of its Alliance, Horde and Blackwater auction house, listings and items per house, and when Blizzard last published them.",
    "parameters": [
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `sets[].set`: A–E: our key for the realm type; default_set is the one the site opens\n- `sets[].label / ruleset`: PvE, PvP, Roleplay, Roleplay PvP (slug normal, pvp, rp, rppvp)\n- `sets[].houses`: house id per faction: alliance, horde, neutral (= Blackwater)\n- `sets[].listings / n_items`: auctions and distinct items in the last scan\n- `sets[].empty`: true for a set Blizzard lists without any auctions (C today)\n- `updated / scanned`: Blizzard's publish time / our read time, unix seconds\n- `credit / home`: the credit line and where it links\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/items": {
   "get": {
    "operationId": "getHouseItems",
    "summary": "Every price of one auction house",
    "description": "The whole latest scan of one auction house: every item and variant with its prices. Compact: a field list and one array per row (about 30,000 rows, 0.5 MB gzipped; send Accept-Encoding: gzip).",
    "parameters": [
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     },
     {
      "name": "set",
      "in": "query",
      "required": false,
      "description": "realm type from /houses: A PvP, B PvE, D Roleplay, E Roleplay PvP (C has no auctions)",
      "schema": {
       "type": "string",
       "enum": [
        "A",
        "B",
        "C",
        "D",
        "E"
       ],
       "default": "B"
      }
     },
     {
      "name": "faction",
      "in": "query",
      "required": false,
      "description": "neutral is the Blackwater auction house",
      "schema": {
       "type": "string",
       "enum": [
        "alliance",
        "horde",
        "neutral"
       ],
       "default": "alliance"
      }
     },
     {
      "name": "loc",
      "in": "query",
      "required": false,
      "description": "de: German item names in name, the English one in name_en",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "de"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `fields`: names of the columns in each row\n- `rows[]`: id, bkey, sfx, name, q, icon, cls, sub, ilvl, req, minp, mkt, med, qty, n, chg24, inv, sold_per_day, sale_rate, avg_sale\n- `minp / mkt / med`: lowest buyout, market value (cheapest 15 % of units), median; copper per unit\n- `qty / n`: units listed / number of auctions\n- `chg24`: change of the market value against 24 h ago, percent\n- `sold_per_day / sale_rate / avg_sale`: TSM's region values (whole region, per item id)\n- `bkey / sfx`: bonus-list key and suffix name of a variant (\"of the Bear\"); \"\" = plain item\n- `loc=de`: German item names in name, the English one in name_en\n- `credit / home / item_url`: the credit line, where it links, the address pattern of an item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/item/{id}": {
   "get": {
    "operationId": "getItem",
    "summary": "One item in every auction house of a region",
    "description": "One item in every auction house of the region: one price row per house and variant, plus TSM's sales values.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "minimum": 1
      },
      "description": "item id (the number in a Wowhead or Umbral Market item address)"
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     },
     {
      "name": "loc",
      "in": "query",
      "required": false,
      "description": "de: German item names in name, the English one in name_en",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "de"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `item`: id, name, q (quality 0–7), ilvl, req, cls, sub, inv, icon\n- `prices[]`: set, label, faction, house, bkey, sfx, ts, scanned, minp, mkt, med, qty, n\n- `tsm`: sold_per_day, sale_rate, avg_sale, market, historical, ts (or null)\n- `credit / home / url`: the credit line, where it links, this item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/search": {
   "get": {
    "operationId": "searchItems",
    "summary": "Find an item id by name",
    "description": "Find an item's id by its name. Items that are new in Forever have ids above 200,000, so an id from another game version or database often does not exist here. Searches every item that is listed in an auction house right now: the exact name first, then names that start with the text, then names that contain it; the most sold first.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "item name, part of it, or an item id (at least 2 characters)",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 80
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "how many hits at most",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `items[]`: id, name, q (quality 0–7), url (the item's page)\n- `q`: the text you searched for\n- `credit / home / item_url`: the credit line, where it links, the address pattern of an item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/recipes": {
   "get": {
    "operationId": "getRecipes",
    "summary": "Profession recipes with products, reagents and skill levels",
    "description": "Every profession recipe of WoW Forever in one call: what it makes, how many, the reagents and the skill levels. Join it with /items for crafting costs and profits. recipe is the recipe id of Blizzard's profession API (the id a character's known recipes carry), product is the item id the prices use: the two are different numbers (recipe 54827 makes item 250615, Thorium Poleaxe).",
    "parameters": [
     {
      "name": "profession",
      "in": "query",
      "required": false,
      "description": "only this profession",
      "schema": {
       "type": "string",
       "enum": [
        "alchemy",
        "blacksmithing",
        "cooking",
        "enchanting",
        "engineering",
        "first-aid",
        "fishing",
        "herbalism",
        "leatherworking",
        "mining",
        "skinning",
        "tailoring"
       ]
      }
     },
     {
      "name": "product",
      "in": "query",
      "required": false,
      "description": "only recipes that make this item id",
      "schema": {
       "type": "integer",
       "minimum": 1
      }
     },
     {
      "name": "reagent",
      "in": "query",
      "required": false,
      "description": "only recipes that use this item id",
      "schema": {
       "type": "integer",
       "minimum": 1
      }
     },
     {
      "name": "loc",
      "in": "query",
      "required": false,
      "description": "de: German item names in name, the English one in name_en",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "de"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `recipes[].recipe`: Blizzard's recipe id (/data/wow/recipe/{id}), or null\n- `recipes[].spell`: the spell that crafts it\n- `recipes[].name`: name of the recipe (loc=de: German, the English one in name_en)\n- `recipes[].profession`: alchemy, blacksmithing, cooking, enchanting, engineering, first-aid, fishing, herbalism, leatherworking, mining, skinning, tailoring\n- `recipes[].product / qty`: item id it makes and how many per craft; product is null for recipes that make no item (enchants)\n- `recipes[].reagents`: [item id, quantity] per reagent\n- `recipes[].taught_by`: item ids of the recipe items that teach it ([] = from a trainer)\n- `recipes[].skill / yellow / grey`: skill its recipe item needs (null without one), and the skill at which it turns yellow and grey\n- `professions{}`: profession key -> name, for the recipes in the answer\n- `credit / home / item_url`: the credit line, where it links, the address pattern of an item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/history/{id}": {
   "get": {
    "operationId": "getItemHistory",
    "summary": "Price history of one item in one house",
    "description": "Price history of one item in one house: hourly points for 24h and 7d, daily points for 30d and all. For many items, ask once for the whole house instead (next endpoint).",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "minimum": 1
      },
      "description": "item id (the number in a Wowhead or Umbral Market item address)"
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     },
     {
      "name": "house",
      "in": "query",
      "required": true,
      "description": "house id from /api/forever/v1/houses",
      "schema": {
       "type": "integer",
       "minimum": 1
      }
     },
     {
      "name": "period",
      "in": "query",
      "required": false,
      "description": "24h and 7d: hourly points, 30d and all: daily points",
      "schema": {
       "type": "string",
       "enum": [
        "24h",
        "7d",
        "30d",
        "all"
       ],
       "default": "7d"
      }
     },
     {
      "name": "bkey",
      "in": "query",
      "required": false,
      "description": "bonus-list key of a variant from /items; empty for the plain item",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `fields`: ts, minp, mkt, med, qty\n- `points[]`: one array per hour or day, oldest first\n- `res`: 1h or 1d\n- `credit / home / url`: the credit line, where it links, this item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/history": {
   "get": {
    "operationId": "getHouseHistory",
    "summary": "Daily price history of every item of one house",
    "description": "The daily price history of every item of one auction house in a single call: one row of values per item and day, up to 90 days back, today included. Use it instead of looping over history/{id}: about 6,000 items in one answer of roughly 1 MB gzipped (send Accept-Encoding: gzip). It changes when Blizzard publishes the house, about once an hour.",
    "parameters": [
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     },
     {
      "name": "house",
      "in": "query",
      "required": true,
      "description": "house id from /api/forever/v1/houses",
      "schema": {
       "type": "integer",
       "minimum": 1
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `days[]`: the days covered, as unix seconds of 00:00 UTC, oldest first\n- `fields`: the values of one day: minp, mkt, med, qty (copper per unit, units listed)\n- `items{}`: item id -> one entry per day in days[]: [minp, mkt, med, qty], or null for a day without listings\n- `a day's values`: lowest minp of the day; mkt, med and qty averaged over its hourly scans\n- `which items`: items listed in the house's latest scan, without variants (\"of the Bear\"); variants keep their own history under history/{id}?bkey=\n- `credit / home / item_url`: the credit line, where it links, and the address pattern of an item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/api/forever/v1/item/{id}/tooltip": {
   "get": {
    "operationId": "getItemTooltip",
    "summary": "Item tooltip with the price of one house",
    "description": "The item's tooltip as lines (what the game shows), with the lowest buyout and market value of one house when you pass region and house.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "minimum": 1
      },
      "description": "item id (the number in a Wowhead or Umbral Market item address)"
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "with house: add that house's price",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ]
      }
     },
     {
      "name": "house",
      "in": "query",
      "required": false,
      "description": "house id from /api/forever/v1/houses (with region)",
      "schema": {
       "type": "integer",
       "minimum": 1
      }
     },
     {
      "name": "loc",
      "in": "query",
      "required": false,
      "description": "language of the tooltip lines",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "de"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Fields:\n- `name / q / icon`: name, quality, icon name for wow.zamimg.com/images/wow/icons/large/<icon>.jpg\n- `lines[]`: t = text, c = colour key (y, g, gr, r, b), r = right-hand text, k = sp|hr|money|desc|set\n- `price`: minp, mkt, qty, ts in that house (only with region + house)\n- `notes[]`: how sure the values are (client estimates are marked)\n- `credit / home / url`: the credit line, where it links, this item's page\n- `attribution / terms`: the credit rule in one sentence and where the terms are",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     },
     "404": {
      "description": "unknown item or house"
     },
     "429": {
      "description": "more than 200 requests per minute per IP address and endpoint: wait for Retry-After"
     }
    }
   }
  },
  "/forever/data/prices.csv": {
   "get": {
    "operationId": "getPricesCsv",
    "summary": "CSV for spreadsheets (Google Sheets IMPORTDATA, Excel)",
    "description": "Lowest buyout per faction for up to 50 items. Google Sheets: =IMPORTDATA(\"<the address>\", \",\", \"en_US\")",
    "parameters": [
     {
      "name": "ids",
      "in": "query",
      "required": true,
      "description": "item ids, comma separated, up to 50",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "eu or us",
      "schema": {
       "type": "string",
       "enum": [
        "eu",
        "us"
       ],
       "default": "eu"
      }
     },
     {
      "name": "realm",
      "in": "query",
      "required": false,
      "description": "realm type",
      "schema": {
       "type": "string",
       "enum": [
        "pve",
        "pvp",
        "rp",
        "rppvp"
       ],
       "default": "pve"
      }
     },
     {
      "name": "unit",
      "in": "query",
      "required": false,
      "description": "gold (decimals) or copper (whole numbers)",
      "schema": {
       "type": "string",
       "enum": [
        "gold",
        "copper"
       ],
       "default": "gold"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "one row per item: item_id, name, region, realm, alliance_gold, horde_gold, blackwater_gold, lowest_gold, sold_per_day, scanned_utc, url, source (with unit=copper: _copper instead of _gold)",
      "content": {
       "text/csv": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "400": {
      "description": "a parameter is missing or wrong"
     }
    }
   }
  }
 }
}