Search recipes
search_recipesSearch Ptitchef recipes by dish or ingredient in French to find matching recipe results, including category and guide pages.
Instructions
Search recipes on Ptitchef by dish or ingredient. The site answers in one of two ways and the answer says which: it either sends the search to a category page of its own, whose total counts what that category holds, or it answers on its own terms on a single page whose total is the number of rows served. When a category answered, 'topic_slug' names it and browse_recipes reads its further pages. Some topics come back as a guide the site wrote instead, grouped under headings of its own and carrying no total; browse_recipes on the same 'topic_slug' reads their full listing. A search the site matched nothing for comes back with no row and a total of zero, which is an absence the site stated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to render, 20 by default. 'rows_seen' states what the page served. | |
| query | Yes | A dish or an ingredient, in French, as a reader of the site would type it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The address the listing was read from. | |
| kind | Yes | How the listing came to be, which decides what its total counts. 'topic' means the site answered a search from a page of its own; 'free_text' means it answered on its own terms. | |
| page | Yes | The page that was read, which is the one the site served. | |
| asked | Yes | What was asked for: a search, a category, or a list of ingredients. 'query' carries the same value under the name every source of recipes publishes it in. | |
| notes | Yes | What qualifies this answer: what its total counts, what it left out, and where the site answered from an address other than the one asked for. Read these before quoting a figure. | |
| query | Yes | What was asked for, under the name a search publishes it in. | |
| title | Yes | The site's own heading for the listing. | |
| folded | Yes | Rows naming a recipe already held. A guide lists one recipe under two headings where it belongs to both; such a row is counted in 'rows_seen' and rendered once. | |
| source | Yes | The site this answer was read from. Credit it when showing a row. | |
| results | Yes | ||
| rows_seen | Yes | Rows the site served on this page, before any were set aside. | |
| topic_slug | Yes | The category page this listing was served from. Pass it to browse_recipes as 'category' to read the topic's further pages, and its total where this answer carries none. | |
| single_page | Yes | True when the site serves this listing on one page and offers no further one. | |
| result_count | Yes | Rows rendered here. | |
| total_available | Yes | Recipes the site says this listing holds. Null when it published no figure. |