Feed
Signal feed — filterable by platform and search.
This is not the live API. This page documents an earlier, in-browser mock API (routes like /accounts, /messaging and /brand), kept for reference. The real, read-only API that runs today is described in The API.
Feed — unified signal stream
The feed is the mock of the platform clients' signal stream — each FeedItem has author, handle, community, title, body, sentiment. Two routes serve the Feed tab: a global list with optional ?platform + ?search (case-insensitive substring across author/handle/community/title/body), and a per-platform shortcut that also accepts ?search. Both validate isPlatform and return 400 otherwise. Code: apps/web/src/lib/feed/server.ts.
GET /feed — List feed
Optional ?platform ?search. Code: apps/web/src/lib/feed/server.ts:41
GET /feed/{platform} — List feed by platform
Code: apps/web/src/lib/feed/server.ts:49
List feed
Optional ?platform ?search. Code: apps/web/src/lib/feed/server.ts:41
/feedQuery Parameters
platformstring"facebook" | "x" | "reddit"searchstringResponse Body
Feed items.
TypeScript Definitions
Use the response body type in TypeScript.
itemsRequiredarray<object>Failure envelope returned with 4xx statuses.
TypeScript Definitions
Use the response body type in TypeScript.
errorRequiredstringHuman-readable failure reason, e.g. "A key needs a name".
curl -X GET "http://localhost:5174/feed?platform=facebook&search=string"fetch("http://localhost:5174/feed?platform=facebook&search=string")package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "http://localhost:5174/feed?platform=facebook&search=string" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}import requestsurl = "http://localhost:5174/feed?platform=facebook&search=string"response = requests.request("GET", url)print(response.text){
"items": [
{
"property1": null,
"property2": null
}
]
}{
"error": "string"
}List feed by platform
Code: apps/web/src/lib/feed/server.ts:49
/feed/{platform}Path Parameters
platformRequiredstring"facebook" | "x" | "reddit"Query Parameters
searchstringResponse Body
Feed items.
TypeScript Definitions
Use the response body type in TypeScript.
itemsRequiredarray<object>Failure envelope returned with 4xx statuses.
TypeScript Definitions
Use the response body type in TypeScript.
errorRequiredstringHuman-readable failure reason, e.g. "A key needs a name".
curl -X GET "http://localhost:5174/feed/facebook?search=string"fetch("http://localhost:5174/feed/facebook?search=string")package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "http://localhost:5174/feed/facebook?search=string" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}import requestsurl = "http://localhost:5174/feed/facebook?search=string"response = requests.request("GET", url)print(response.text){
"items": [
{
"property1": null,
"property2": null
}
]
}{
"error": "string"
}