01 Feed — list of live posts
1.1 Description
GET/feed
This call doesn't call the platforms; it only returns what's already stored. That makes it fast and it doesn't use platform quota. Fetching new data is handled by POST /feed.
1.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
limit | Optional | Number of entries to fetch (1–50). Defaults to 20. Out-of-range values are ignored and the default is used |
cursor | Optional | Continue reading. Pass the next from the previous response as is. It's our internal format, so don't try to interpret it |
1.3 Request
curl "https://moacast.com/api/moacast/v1/feed?workspace=a1b2c3d4&limit=20" \
-H 'Authorization: Bearer <ACCESS_TOKEN>'1.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"data": {
"workspace": "a1b2c3d4",
"items": [
{
"channel": "youtube",
"id": "dQw4w9WgXcQ",
"text": "새 영상을 올렸습니다",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"thumb": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mqdefault.jpg",
"type": "video",
"when": 1790420673,
"origin": "",
"stats": {
"likes": 12,
"comments": 3,
"views": 840
}
}
],
"next": "",
"fetched_at": 1790420673,
"stale": false
}
}1.5 Field
| Field | Type | Description |
|---|---|---|
workspace | string | Workspace code |
items | array | Post list, most recent first. Each entry has the shape below |
next | string | Cursor string for continuing. Empty string if there's nothing more |
fetched_at | int | As of when (Unix seconds). 0 if never fetched |
stale | bool | Whether the stored data is stale |
items entry
| Field | Type | Description |
|---|---|---|
channel | string | Channel key where the post was published |
id | string | Post identifier assigned by the platform |
text | string | Body |
url | string | Public URL of the post |
thumb | string | Featured image URL |
type | string | text · image · video · album |
when | int | Time posted (Unix seconds). The display format is up to the UI |
origin | string | Always an empty string for now. It will be filled once we have a way to identify posts published through us |
stats | object | Like, comment, and view counts. Values the platform doesn't provide are null, not 0 |
1.6 Failed
| Code | HTTP | When |
|---|---|---|
9912 | 400 | workspace was not provided |
1001 | 401 | Header is missing or the token is invalid |
2000 | 404 | The workspace doesn't exist, or this token can't access it |
