Skip to main content
The Reddit plugin syncs data locally. Use corsair.reddit.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.

Comments

Path: reddit.db.comments.search
const rows = await corsair.reddit.db.comments.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
bodystringequals, contains, startsWith, endsWith, in
authorstringequals, contains, startsWith, endsWith, in
scorenumberequals, gt, gte, lt, lte, in
depthnumberequals, gt, gte, lt, lte, in
parent_idstringequals, contains, startsWith, endsWith, in
link_idstringequals, contains, startsWith, endsWith, in
created_utcnumberequals, gt, gte, lt, lte, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.

Posts

Path: reddit.db.posts.search
const rows = await corsair.reddit.db.posts.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
selftextstringequals, contains, startsWith, endsWith, in
authorstringequals, contains, startsWith, endsWith, in
subredditstringequals, contains, startsWith, endsWith, in
scorenumberequals, gt, gte, lt, lte, in
upsnumberequals, gt, gte, lt, lte, in
downsnumberequals, gt, gte, lt, lte, in
upvote_rationumberequals, gt, gte, lt, lte, in
num_commentsnumberequals, gt, gte, lt, lte, in
urlstringequals, contains, startsWith, endsWith, in
permalinkstringequals, contains, startsWith, endsWith, in
thumbnailstringequals, contains, startsWith, endsWith, in
over_18booleanequals
spoilerbooleanequals
stickiedbooleanequals
created_utcnumberequals, gt, gte, lt, lte, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.

Subreddits

Path: reddit.db.subreddits.search
const rows = await corsair.reddit.db.subreddits.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
display_namestringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
public_descriptionstringequals, contains, startsWith, endsWith, in
subscribersnumberequals, gt, gte, lt, lte, in
active_user_countnumberequals, gt, gte, lt, lte, in
over18booleanequals
created_utcnumberequals, gt, gte, lt, lte, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.

Users

Path: reddit.db.users.search
const rows = await corsair.reddit.db.users.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
link_karmanumberequals, gt, gte, lt, lte, in
comment_karmanumberequals, gt, gte, lt, lte, in
total_karmanumberequals, gt, gte, lt, lte, in
is_suspendedbooleanequals
created_utcnumberequals, gt, gte, lt, lte, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.