Community
The Community API service offers you the ability to discover, search, and retrieve communities related to recipe content that exist on Whisk.
Let's first understand the Community object and its data structure before looking at its endpoints’ description.
Community Object
A Community object is a collection of arrays and attributes that defines the data structure for any given community.
This is how the data structure of a community looks:
Core Data
The following attributes define the core of a community:
Attribute | Type | Description |
| string | The community identifier. |
| string | The full name of the community. |
| object | The community's cover image details. |
Image
The image
object contains the following attributes that store details of the cover image added in the community.
Attribute | Type | Description |
| string | The cover image URL. |
| string | Image width. |
| string | Image height. |
| object | It contains the |
Optional Data
The community data structure may include extra information based on any additional parameters included in the API request.
Attribute | Type | Description |
| string | A summary describing the community. |
| array | A list of topics that include the community. For more information, see topics. |
| object | It contains the community's account on various social platforms like Facebook, Instagram, etc. For more information, see social settings. |
| object | It contains the different permissions configured for the community. For more information, see permissions. |
| object | It contains the count of members in the community. |
| object | It contains the count of recipes added to the community. |
| boolean | Indicates if the community is commercially sponsored or not. |
Topics
Topics are categories that appear on the home page of your Whisk app or website like - Featured Communities, 30 Minutes Meals, Quick and Healthy, etc. Each community is assigned a category at the time of its creation, and later we may also add it to the Featured Communities topic if we like it. The topics
array contains a list of such topics that include the community.
Each topic contains the following attributes:
Attribute | Type | Description |
| string | The topic identifier. |
| string | Topic's name as it appears on the Whisk website or app. |
Social Settings
This object contains details on the community's presence on different social platforms.
Attribute | Type | Description |
| string | The community's website. |
| string | The community's Instagram username. |
| string | The community channel on Youtube. |
| string | The community's TikTok username. |
Permissions
This object contains information on your role in the community and other details like the community's general visibility and contribution scope.
Attribute | Type | Description | Supported Values |
| enum | Indicates your role in the community. |
|
| enum | Indicates the contribution mode configured for the community. By default, it is set to |
|
| enum | Indicates the community's visibility on the Whisk's website or app. By default, it is set to |
|
Endpoints
Community API includes the following endpoints that you can use to pull, discover or search communities and their details.
Get your CommunitiesGet Communities from a TopicDiscover Recommended CommunitiesSearch CommunitiesGet a CommunityGet Recipes from a CommunityAdd Recipes to a CommunityRemove a Recipe from a CommunityJoin a CommunityLeave a CommunityLast updated