Search the Cookbook
search_recipesSearch the Wikibooks Cookbook to find recipes by dish name or ingredient, with full-text or title matching to locate relevant pages.
Instructions
Search the Wikibooks Cookbook for a recipe, by dish name or by an ingredient it uses. 'text' searches the whole of each page, which is what finds a dish from an ingredient inside it; 'title' matches the page name only, which is exact and misses a dish the Cookbook names differently. The Cookbook also holds reference pages on ingredients, techniques and cuisines, and those rank alongside recipes: a row is a page, and only get_recipe can say whether it carries an ingredient list. A full-text row can be a page that merely names the dish: when the titles do not say the words searched for, the notes say so, because the Cookbook links to dishes it does not hold. 'total_available' is null because the search route reports no total and offers no second page. Narrow the query rather than asking for more. Every row carries an 'id', which get_recipe takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | A dish, such as 'carbonara', or an ingredient, such as 'guanciale'. | |
| search | No | 'text' reads the whole page; 'title' matches the page name only. | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| query | Yes | ||
| source | Yes | ||
| results | Yes | ||
| result_count | Yes | Rows returned by this call. | |
| total_available | Yes | Always null: the search route publishes no total and no paging. |