Collect subreddit posts every 15 minutes through your Reddit app. Datum stores activity without post text.
Connect Reddit
Reddit uses a reviewed Activepieces piece inside Datum. Each connection reads one subreddit through your Reddit OAuth app. It requests only identity and read, with a refreshable authorization grant.
Register a Reddit app
Sign in to Reddit. Open your app preferences. Create an app of type web app. Enter the redirect URI from What to do in Datum’s setup panel. Record the client ID and secret.
The URI combines your Datum address with
/connect/piece%3Areddit/callback, for examplehttps://ocmgr.example.com/connect/piece%3Areddit/callback.Open Sources
Open Sources → Connect a source → Reddit. Enter Subreddit name without r/. Enter OAuth client ID. Enter OAuth client secret.
Authorize it
Press Connect as a workspace owner. Approve the app on Reddit’s consent page. Press Verify after the panel displays Authorization received. Verify to check access.
Datum saves the connection and opens the consent page in a new tab. Only a workspace owner can authorize it.
Import recent history
Datum checks new posts every 15 minutes. Press Run now on the source’s page to import older posts that Reddit still lists. Alternatively, run the following command from your terminal or agent:
ocmgr ingest <connectionId>Check the result
Check the Verify result. Check Members for imported Reddit usernames.
Verification makes one read request without importing records.
Data Datum imports
| Accounts | The poster’s Reddit username |
| Activity | One post for each new submission in the subreddit, at its original posting time |
| Skipped | Posts by deleted accounts and by AutoModerator |
| Not collected | Comments, post text, titles, votes and email addresses |
Reddit supplies no email addresses, so accounts cannot link automatically. Matching usernames can produce candidates for your review queue. They do not cause automatic merges.
When thread tone is on, Datum reads each post’s text once. Datum never stores the text.
Troubleshooting
Older posts are missing
Reddit limits how far its list of new posts extends into history. A busy subreddit can therefore have an incomplete historical import. The 15-minute check collects posts after you connect.
The connection stops reading
Reddit revoked the authorization grant, or someone deleted the app. Open the Reddit row’s menu on Sources. Select Reconnect. Approve the app again.
From your terminal or agent
ocmgr connection create --kind piece:reddit --config '{"subreddit":"mycommunity"}' \
--secret clientId=<client-id> --secret clientSecret=<client-secret> --json
ocmgr connection connect <connectionId> --json
ocmgr connection verify <connectionId> --json
ocmgr ingest <connectionId> --json{ "name": "create_connection", "arguments": { "kind": "piece:reddit", "config": { "subreddit": "mycommunity" }, "credentials": { "clientId": "<client-id>", "clientSecret": "<client-secret>" } } }
{ "name": "connect_connection", "arguments": { "id": "<connectionId>" } }curl -X POST "$OCMGR_URL/v1/connections/<connectionId>/connect" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' -d '{}'connect_connection returns an approval link for a workspace owner. See create_connection and connect_connection for every parameter.
FAQ
Can one connection read several subreddits?
No. Each connection reads one subreddit. Create another connection for each additional subreddit.
Does Datum read comments?
No. Datum reads new submissions to the subreddit. It does not read their comments.