> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.wynncraft.com/modules/item-recipe/search-recipes/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.wynncraft.com/_mcp/server. # Search recipe database POST https://api.wynncraft.com/v3/item/recipe/search Content-Type: application/json This endpoint is cached for 1 hour in the SHARED cache source. See [Caching](/welcome#caching). This endpoint belongs to the ITEMS rate-limit bucket. See [Throttling and Rate Limits](/welcome#throttling-and-rate-limits). `full_result` bypasses pagination and returns the full raw array instead of the paginated object. For range filters, an integer checks whether that value falls inside the stored recipe range. A one-value list behaves the same way. A two-value list matches any recipe whose stored range overlaps the requested range. Reference: https://docs.wynncraft.com/modules/item-recipe/search-recipes ## Request ### Query parameters - `page` (integer, optional) - `full_result` (enum, optional) — Presence-based flag that expands responses. Send it without a value as `?full_result`. Using `?full_result=true` or `?full_result=false` is not accepted. - Allowed values: `` ### Body (application/json) This endpoint expects a RecipeSearchRequest. - `query` (SearchScalarOrList, optional) — Match recipe `internalName` values by partial name, such as `1-3` or `Bow1-3`. - `xp` (SearchIntegerOrRange, optional) — Match an exact XP value or an inclusive XP range. - `type` (SearchScalarOrList, optional) - `skill` (SearchScalarOrList, optional) - `materials` (SearchScalarOrList, optional) — Match material item names, case-insensitive. - `level` (SearchIntegerOrRange, optional) - `durability` (SearchIntegerOrRange, optional) - `healthOrDamage` (SearchIntegerOrRange, optional) - `duration` (SearchIntegerOrRange, optional) - `basicDuration` (SearchIntegerOrRange, optional) ## Response ### 200 Paginated search results. - `controller` (PaginationController, required) - `results` (list of Recipe, required) ## Errors ### 400 Bad Request Error Invalid request payload. - `error` (string, required) - `detail` (string, required) - `code` (integer, required) ### 404 Not Found Error No recipes matched the request. - `error` (string, required) - `detail` (string, required) - `code` (integer, required) ## Types ### SearchScalarOrList ### SearchIntegerOrRange ### PaginationController - `count` (integer, required) - `current_count` (integer, required) - `pages` (integer, required) - `prev` (integer, required, nullable) - `current` (integer, required) - `next` (integer, required, nullable) ### Recipe - `internalName` (string, required) - `type` (string, required) - `skill` (string, required) - `level` (IntegerRange, required) - `materials` (list of RecipeMaterial, required) - `healthOrDamage` (IntegerRange, required) - `sprites` (map from string to RecipeSprite, required) - `xp` (integer, required) - `durability` (IntegerRange, optional) - `duration` (IntegerRange, optional) - `basicDuration` (IntegerRange, optional) ### IntegerRange - `minimum` (integer, required) - `maximum` (integer, required) ### RecipeMaterial - `item` (string, required) - `amount` (integer, required) ### RecipeSprite - `format` (string, required) - `value` (RecipeSpriteValue, required) - `name` (string, required) ### RecipeSpriteValue - `id` (string, required) - `customModelData` (integer, required) - `name` (string, required) ## Examples ### Search consumables by duration membership **Request** ```json { "type": "food", "duration": 1100 } ``` **Response** ```json { "controller": { "count": 1, "current_count": 1, "pages": 1, "prev": null, "current": 1, "next": null }, "results": [ { "internalName": "Food1-3", "type": "food", "skill": "cooking", "level": { "minimum": 1, "maximum": 3 }, "materials": [ { "item": "Refined Gudgeon Meat", "amount": 2 }, { "item": "Refined Wheat Grains", "amount": 1 } ], "healthOrDamage": { "minimum": 24, "maximum": 32 }, "sprites": { "default": { "format": "attribute", "value": { "id": "minecraft:rabbit_stew", "customModelData": 9, "name": "consumable.foodGeneric" }, "name": "fooddefault" } }, "xp": 20, "duration": { "minimum": 1080, "maximum": 1116 }, "basicDuration": { "minimum": 60, "maximum": 60 } } ] } ``` **SDK Code** ```python Search consumables by duration membership import requests url = "https://api.wynncraft.com/v3/item/recipe/search" payload = { "type": "food", "duration": 1100 } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Search consumables by duration membership const url = 'https://api.wynncraft.com/v3/item/recipe/search'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"type":"food","duration":1100}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Search consumables by duration membership package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.wynncraft.com/v3/item/recipe/search" payload := strings.NewReader("{\n \"type\": \"food\",\n \"duration\": 1100\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Search consumables by duration membership require 'uri' require 'net/http' url = URI("https://api.wynncraft.com/v3/item/recipe/search") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"type\": \"food\",\n \"duration\": 1100\n}" response = http.request(request) puts response.read_body ``` ```java Search consumables by duration membership import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.wynncraft.com/v3/item/recipe/search") .header("Content-Type", "application/json") .body("{\n \"type\": \"food\",\n \"duration\": 1100\n}") .asString(); ``` ```php Search consumables by duration membership request('POST', 'https://api.wynncraft.com/v3/item/recipe/search', [ 'body' => '{ "type": "food", "duration": 1100 }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Search consumables by duration membership using RestSharp; var client = new RestClient("https://api.wynncraft.com/v3/item/recipe/search"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"type\": \"food\",\n \"duration\": 1100\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Search consumables by duration membership import Foundation let headers = ["Content-Type": "application/json"] let parameters = [ "type": "food", "duration": 1100 ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/item/recipe/search")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Search by recipe type **Request** ```json { "type": "food" } ``` **Response** ```json { "controller": { "count": 1, "current_count": 1, "pages": 1, "prev": null, "current": 1, "next": null }, "results": [ { "internalName": "Food1-3", "type": "food", "skill": "cooking", "level": { "minimum": 1, "maximum": 3 }, "materials": [ { "item": "Refined Gudgeon Meat", "amount": 2 }, { "item": "Refined Wheat Grains", "amount": 1 } ], "healthOrDamage": { "minimum": 24, "maximum": 32 }, "sprites": { "default": { "format": "attribute", "value": { "id": "minecraft:rabbit_stew", "customModelData": 9, "name": "consumable.foodGeneric" }, "name": "fooddefault" } }, "xp": 20, "duration": { "minimum": 1080, "maximum": 1116 }, "basicDuration": { "minimum": 60, "maximum": 60 } } ] } ``` **SDK Code** ```python Search by recipe type import requests url = "https://api.wynncraft.com/v3/item/recipe/search" payload = { "type": "food" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Search by recipe type const url = 'https://api.wynncraft.com/v3/item/recipe/search'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"type":"food"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Search by recipe type package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.wynncraft.com/v3/item/recipe/search" payload := strings.NewReader("{\n \"type\": \"food\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Search by recipe type require 'uri' require 'net/http' url = URI("https://api.wynncraft.com/v3/item/recipe/search") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"type\": \"food\"\n}" response = http.request(request) puts response.read_body ``` ```java Search by recipe type import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.wynncraft.com/v3/item/recipe/search") .header("Content-Type", "application/json") .body("{\n \"type\": \"food\"\n}") .asString(); ``` ```php Search by recipe type request('POST', 'https://api.wynncraft.com/v3/item/recipe/search', [ 'body' => '{ "type": "food" }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Search by recipe type using RestSharp; var client = new RestClient("https://api.wynncraft.com/v3/item/recipe/search"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"type\": \"food\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Search by recipe type import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["type": "food"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/item/recipe/search")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Search by material and level range **Request** ```json { "materials": "refined wheat string", "level": [ 1, 3 ] } ``` **Response** ```json { "controller": { "count": 1, "current_count": 1, "pages": 1, "prev": null, "current": 1, "next": null }, "results": [ { "internalName": "Food1-3", "type": "food", "skill": "cooking", "level": { "minimum": 1, "maximum": 3 }, "materials": [ { "item": "Refined Gudgeon Meat", "amount": 2 }, { "item": "Refined Wheat Grains", "amount": 1 } ], "healthOrDamage": { "minimum": 24, "maximum": 32 }, "sprites": { "default": { "format": "attribute", "value": { "id": "minecraft:rabbit_stew", "customModelData": 9, "name": "consumable.foodGeneric" }, "name": "fooddefault" } }, "xp": 20, "duration": { "minimum": 1080, "maximum": 1116 }, "basicDuration": { "minimum": 60, "maximum": 60 } } ] } ``` **SDK Code** ```python Search by material and level range import requests url = "https://api.wynncraft.com/v3/item/recipe/search" payload = { "materials": "refined wheat string", "level": [1, 3] } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Search by material and level range const url = 'https://api.wynncraft.com/v3/item/recipe/search'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"materials":"refined wheat string","level":[1,3]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Search by material and level range package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.wynncraft.com/v3/item/recipe/search" payload := strings.NewReader("{\n \"materials\": \"refined wheat string\",\n \"level\": [\n 1,\n 3\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Search by material and level range require 'uri' require 'net/http' url = URI("https://api.wynncraft.com/v3/item/recipe/search") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"materials\": \"refined wheat string\",\n \"level\": [\n 1,\n 3\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Search by material and level range import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.wynncraft.com/v3/item/recipe/search") .header("Content-Type", "application/json") .body("{\n \"materials\": \"refined wheat string\",\n \"level\": [\n 1,\n 3\n ]\n}") .asString(); ``` ```php Search by material and level range request('POST', 'https://api.wynncraft.com/v3/item/recipe/search', [ 'body' => '{ "materials": "refined wheat string", "level": [ 1, 3 ] }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Search by material and level range using RestSharp; var client = new RestClient("https://api.wynncraft.com/v3/item/recipe/search"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"materials\": \"refined wheat string\",\n \"level\": [\n 1,\n 3\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Search by material and level range import Foundation let headers = ["Content-Type": "application/json"] let parameters = [ "materials": "refined wheat string", "level": [1, 3] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/item/recipe/search")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Search by recipe name fragment **Request** ```json { "query": "1-3" } ``` **Response** ```json { "controller": { "count": 1, "current_count": 1, "pages": 1, "prev": null, "current": 1, "next": null }, "results": [ { "internalName": "Food1-3", "type": "food", "skill": "cooking", "level": { "minimum": 1, "maximum": 3 }, "materials": [ { "item": "Refined Gudgeon Meat", "amount": 2 }, { "item": "Refined Wheat Grains", "amount": 1 } ], "healthOrDamage": { "minimum": 24, "maximum": 32 }, "sprites": { "default": { "format": "attribute", "value": { "id": "minecraft:rabbit_stew", "customModelData": 9, "name": "consumable.foodGeneric" }, "name": "fooddefault" } }, "xp": 20, "duration": { "minimum": 1080, "maximum": 1116 }, "basicDuration": { "minimum": 60, "maximum": 60 } } ] } ``` **SDK Code** ```python Search by recipe name fragment import requests url = "https://api.wynncraft.com/v3/item/recipe/search" payload = { "query": "1-3" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Search by recipe name fragment const url = 'https://api.wynncraft.com/v3/item/recipe/search'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"query":"1-3"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Search by recipe name fragment package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.wynncraft.com/v3/item/recipe/search" payload := strings.NewReader("{\n \"query\": \"1-3\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Search by recipe name fragment require 'uri' require 'net/http' url = URI("https://api.wynncraft.com/v3/item/recipe/search") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"query\": \"1-3\"\n}" response = http.request(request) puts response.read_body ``` ```java Search by recipe name fragment import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.wynncraft.com/v3/item/recipe/search") .header("Content-Type", "application/json") .body("{\n \"query\": \"1-3\"\n}") .asString(); ``` ```php Search by recipe name fragment request('POST', 'https://api.wynncraft.com/v3/item/recipe/search', [ 'body' => '{ "query": "1-3" }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Search by recipe name fragment using RestSharp; var client = new RestClient("https://api.wynncraft.com/v3/item/recipe/search"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"query\": \"1-3\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Search by recipe name fragment import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["query": "1-3"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/item/recipe/search")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Search by XP range **Request** ```json { "xp": { "0": 14, "1": 20 } } ``` **Response** ```json { "controller": { "count": 1, "current_count": 1, "pages": 1, "prev": null, "current": 1, "next": null }, "results": [ { "internalName": "Food1-3", "type": "food", "skill": "cooking", "level": { "minimum": 1, "maximum": 3 }, "materials": [ { "item": "Refined Gudgeon Meat", "amount": 2 }, { "item": "Refined Wheat Grains", "amount": 1 } ], "healthOrDamage": { "minimum": 24, "maximum": 32 }, "sprites": { "default": { "format": "attribute", "value": { "id": "minecraft:rabbit_stew", "customModelData": 9, "name": "consumable.foodGeneric" }, "name": "fooddefault" } }, "xp": 20, "duration": { "minimum": 1080, "maximum": 1116 }, "basicDuration": { "minimum": 60, "maximum": 60 } } ] } ``` **SDK Code** ```python Search by XP range import requests url = "https://api.wynncraft.com/v3/item/recipe/search" payload = { "xp": { "0": 14, "1": 20 } } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Search by XP range const url = 'https://api.wynncraft.com/v3/item/recipe/search'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"xp":{"0":14,"1":20}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Search by XP range package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.wynncraft.com/v3/item/recipe/search" payload := strings.NewReader("{\n \"xp\": {\n \"0\": 14,\n \"1\": 20\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Search by XP range require 'uri' require 'net/http' url = URI("https://api.wynncraft.com/v3/item/recipe/search") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"xp\": {\n \"0\": 14,\n \"1\": 20\n }\n}" response = http.request(request) puts response.read_body ``` ```java Search by XP range import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.wynncraft.com/v3/item/recipe/search") .header("Content-Type", "application/json") .body("{\n \"xp\": {\n \"0\": 14,\n \"1\": 20\n }\n}") .asString(); ``` ```php Search by XP range request('POST', 'https://api.wynncraft.com/v3/item/recipe/search', [ 'body' => '{ "xp": { "0": 14, "1": 20 } }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Search by XP range using RestSharp; var client = new RestClient("https://api.wynncraft.com/v3/item/recipe/search"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"xp\": {\n \"0\": 14,\n \"1\": 20\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Search by XP range import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["xp": [ "0": 14, "1": 20 ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.wynncraft.com/v3/item/recipe/search")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```