Use the /api/users/interactions/users endpoint to get aggregated counts of interactions between users. An interaction is defined as:
- Author commented under a post
- Author commented under a comment
- Someone replied to author's post
- Someone replied to author's comment
Use /api/users/interactions/users/list to list all individual interactions between users.
Warning: For very active users (e.g., bots), this endpoint may time out. If it does, try narrowing the time range using after and before parameters.
User to User Parameters
| Parameter | Type | Default | Notes |
|---|
author | string | | required |
subreddit | string | | |
after | Date | | |
before | Date | | |
min_count | int (>= 0) | | Minimum number of interactions |
limit | int (>= 1) | 100 | empty means no limit (limit=) |
User to Subreddit Parameters
Use /api/users/interactions/subreddits to see which subreddits a user has been active in. This combines post and comment activity with weighting options.
| Parameter | Type | Default | Notes |
|---|
author | string | | required |
weight_posts | float | 1.0 | |
weight_comments | float | 1.0 | |
before | Date | | |
after | Date | | |
min_count | int (>= 0) | | |
limit | int (>= 1) | 100 | empty means no limit (limit=) |
Examples
# Get all interactions of u/spez, with more than 10 interactions, up until 2017
/api/users/interactions/users?author=spez&before=2017-01-01&min_count=10