Get Communities from a Topic
This endpoint retrieves the list of communities from a specific topic using the topic identifier and pagination filters.
Get Communities by Topic ID
GET
https://api.whisk.com/community/v2/by_topic/{topic_id}
You can append the following path and query parameters to the base URL to pull communities from a particular topic:
Path Parameters
Name | Type | Description |
---|---|---|
topic_id | string | The topic identifier. |
Query Parameters
Name | Type | Description |
---|---|---|
paging.limit | string | The maximum number of communities to retrieve from the topic. |
paging.cursors.after | string | This parameter is used for cursor-based pagination. It takes a community ID as its value and retrieves only those communities that appear after it in the database. |
paging.cursors.before | string | This parameter is used for cursor-based pagination. It takes a community ID as its value and retrieves only those communities that appear before it in the database |
fields | array | Any additional community details to retrieve. You can choose one or more of these supported values:
- |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | User token to authorize the API usage. For more information, see Authentication. |
Sample Request and Response
Note: 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