Feed
The feed returns the most relevant datasets for the authenticated user profile. Member interactions with datasets are scored, determining their position within the feed.
User and member interactions that affect a dataset’s score:
- Creating or modifying a dataset
- Viewing a dataset
- Liking a dataset
- Commenting on a dataset
Requests
See Also
View the feed of a workspace
GET
/api/workspaces/{workspace-id}/feed
Returns the feed of the workspace {workspace-id}
.
Prerequisites
- Workspace
{workspace-id}
must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/fa9104b5-686a-4ced-8ae5-19bee6fb4c1c/feed' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/workspaces/fa9104b5-686a-4ced-8ae5-19bee6fb4c1c/feed"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataset collection with HAL links.
{
"_embedded" : {
"datasets" : [ {
"id" : "8ba241fd-2c8f-48f7-88f1-250a384e7f29",
"published" : "2024-12-16T09:53:42.642752",
"alias" : "simple-bar-chart",
"workspaceId" : "fa9104b5-686a-4ced-8ae5-19bee6fb4c1c",
"source" : "matatika-limited",
"title" : "How many people have visited our website?",
"description" : "# Some Markdown\n- point 1\n- point 2\n- point 3\n",
"questions" : "[''This is my question'', ''this is second question'']",
"visualisation" : "{\"google-chart\": {\"chartType\": \"BarChart\",\"options\": {\"title\": \"Website visitors\"}}}",
"query" : "SELECT to_char(date(report_date),'YYYYMM') as year_month, SUM(sessions) \n FROM\n \"google_analytics_website_overview\"\n WHERE\n \"google_analytics_website_overview\".\"report_date\" >= DATE(NOW()) - INTERVAL '365 DAY'\n GROUP BY year_month\n ORDER BY year_month ASC;",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2024-12-16T09:53:42.642752",
"score" : 5.999979,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29"
},
"delete dataset" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29",
"type" : "DELETE"
},
"edit dataset" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29",
"type" : "PATCH"
},
"data" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/data",
"type" : "GET"
},
"source" : {
"href" : "https://app.matatika.com/api/channels/3a3c84ee-7c92-41b2-b664-e881c32d80ea",
"type" : "GET"
},
"new comment" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/comments",
"type" : "POST"
},
"add like" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/like",
"type" : "PUT"
},
"add view" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/view",
"type" : "PUT"
},
"new alert" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/alerts"
},
"add subscription" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/subscriptions"
},
"new message" : {
"href" : "https://app.matatika.com/api/datasets/8ba241fd-2c8f-48f7-88f1-250a384e7f29/messages"
}
},
"_embedded" : {
"source" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
}
}
}, {
"id" : "31bad226-aeb3-496f-bec0-2c06dfad7d29",
"published" : "2024-12-16T09:53:42.641941",
"alias" : "analytics-tables",
"workspaceId" : "fa9104b5-686a-4ced-8ae5-19bee6fb4c1c",
"source" : "no-picture",
"title" : "What tables are in our #fantastic data warehouse?",
"description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific. The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'uevwzko'```",
"visualisation" : "{\"google-chart\": {\"chartType\": \"Table\", \"options\": {\"title\": \"Tables\"}}}",
"metadata" : " { \"name\":\"table_model\", \"label\":\"Analytics Tables\", \"related_table\":{ \"columns\":[ { \"name\":\"schemaname\", \"label\":\"Schema Name\" } ] } }",
"query" : "SELECT schemaname \"table_model.schemaname\",tablename \"table_model.tablename\",tableowner \"table_model.tableowner\"FROM pg_tables where schemaname = 'uevwzko'",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2024-12-16T09:53:42.641936",
"score" : 5.999979,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29"
},
"delete dataset" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29",
"type" : "DELETE"
},
"edit dataset" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29",
"type" : "PATCH"
},
"data" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/data",
"type" : "GET"
},
"source" : {
"href" : "https://app.matatika.com/api/channels/76e370bc-927a-4046-8ab1-abbbd7bb1225",
"type" : "GET"
},
"new comment" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/comments",
"type" : "POST"
},
"add like" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/like",
"type" : "PUT"
},
"add view" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/view",
"type" : "PUT"
},
"new alert" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/alerts"
},
"add subscription" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/subscriptions"
},
"new message" : {
"href" : "https://app.matatika.com/api/datasets/31bad226-aeb3-496f-bec0-2c06dfad7d29/messages"
}
},
"_embedded" : {
"source" : {
"name" : "no-picture",
"description" : "No picture",
"picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/fa9104b5-686a-4ced-8ae5-19bee6fb4c1c/feed?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 2,
"totalPages" : 1,
"number" : 0
}
}