Searching

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

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

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>"

Last updated