Get Recipes from a Community

This endpoint retrieves a list of recipes from a specific community using the community identifier and pagination filters.

Get Recipes by Community ID

GET https://api.whisk.com/community/v2/{community_id}/recipes

You can append the following path and query parameters to the base URL to pull recipes from a particular community:

Path Parameters

Query Parameters

Headers

{
  "recipes": [
    {
      "recipe": {
        "id": "string",
        "name": "string",
        "description": "string",
        "ingredients": [
          ...
        ],
        "instructions": {
          ...
        },
        "images": [
          ...
        ],
        "videos": [
          ...
        ],
        "source": {
          ...
        },
        "servings": 0,
        "servings_scaled": 0,
        "durations": {
          ...
        },
        "normalized_ingredients": [
          ...
        ],
        "nutrition": {
          ...
        },
        "labels": {
          ...
        },
        "constraints": {
          ...
        },
        "saved": {
          ...
        },
        "author": {
          ...
        },
        "language": "string",
        "custom_labels": [
          ...
        ]
      }
    }
  ],
  "paging": {
    "cursors": {
      "after": "string",
      "before": "string"
    },
    "total": "string"
  }
}

Sample Request and Response

curl -X GET "https://api.whisk.com/community/v2/39d539c738eb47debfb1a6319d34235a/recipes?fields=RECIPE_FIELD_NORMALIZED_INGREDIENTS&fields=RECIPE_FIELD_INSTRUCTIONS&fields=RECIPE_FIELD_INSTRUCTION_INTENTS&fields=RECIPE_FIELD_NUTRITION&fields=RECIPE_FIELD_NUTRITION_COVERAGE&fields=RECIPE_FIELD_SAVED&fields=RECIPE_FIELD_INGREDIENTS_LINKED_PRODUCTS"
    -H "Accept: application/json" 
    -H "Authorization: Bearer <YOUR-API-ACCESS-KEY>"

Whisk allows you to discover and understand its API capabilities on the Swagger interface with the ability to try out the API calls directly in your browser. You can call this endpoint here.

Last updated