# Searching

You can search over multiple types with the `/search` endpoint:

```bash
curl "https://graph.whisk.com/v1/search?q=salmon&type=recipe&diet=paleo" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <Access-Token>"
```

We support query string syntax in our search functionality. So, when needed, you can use the following operators:

* `+`  signifies AND operation
* `|`  signifies OR operation
* `-`  negates a single token
* `"`  wraps a number of tokens to signify a phrase for searching
* `*`  at the end of a term signifies a prefix query
* `(`  `)` signify precedence
* `~N` after a word signifies edit distance (fuzziness)
* `~N` after a phrase signifies slop amount

Here in the following sample curl request, you can see the `q` path parameter is using the AND (`%2B` in UTF-8 format) operator to search recipes that include chicken and mushroom: `q=chicken%2Bmushroom`

```bash
curl "https://graph.whisk.com/v1/search?type=recipe&q=chicken%2Bmushroom&language=en&country=GB&limit=1" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <Access-Token>"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.whisk.com/master/tips/searching.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
