Feed
agent-data call d7ac1bae-c5c2-496b-bcfc-2c984b83ff5b get-feed --source <source> [--subreddit <subreddit>] [--q <q>] [--user elonmusk] [--trend <trend>] [--limit <limit>] [--page_token <page_token>] [--since_token <since_token>]curl "https://xeef9bctfb.execute-api.us-east-2.amazonaws.com/api/v1/feed" -H "Authorization: Bearer <YOUR_API_KEY>"Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Exactly one of hackernews, lobsters, reddit, or x — one source per request. Comma-separated lists and all are rejected. When source=x, also provide exactly one of q, user, or trend. When source=reddit, also provide subreddit. Reuse the same source with any returned cursor.
Exactly one of hackernews, lobsters, reddit, or x — one source per request. Comma-separated lists and all are rejected. When source=x, also provide exactly one of q, user, or trend. When source=reddit, also provide subreddit. Reuse the same source with any returned cursor.
Return at most this many feed items in the current response. Omit this parameter to use the source-aware route default (20 for x, since it pages at ~20 items per rate-limited op; 100 for the firehose sources). Increase it only when you need a larger page and can process more rows in one call.
Fetch only items newer than a previously saved checkpoint by passing the opaque token returned in meta.next_since_token. Omit this parameter when requesting the newest page. Use it for monitoring-style polling rather than for the first page of the feed, and reuse it only with the same source selection and subreddit selection that produced it. For source=x it is supported only with user=.
Responses
Section titled “ Responses ”Successful Response
object
object
object
object
Example
{ "data": [ { "source": "x", "engagement": { "quote_count": 0, "comment_count": 0, "retweet_count": 0, "bookmark_count": 0, "poll_option_count": 0 } } ], "meta": { "source": "x", "has_more": false, "result_direction": "desc", "checkpoint_status": "ok" }}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "loc": [ "example" ], "msg": "example", "type": "example", "input": "example" } ]}