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

Activities

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
channelIdstringequals, contains, startsWith, endsWith, in
typestringequals, contains, startsWith, endsWith, in
publishedAtstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, 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.

Captions

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
videoIdstringequals, contains, startsWith, endsWith, in
languagestringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
isDraftbooleanequals
trackKindstringequals, contains, startsWith, endsWith, 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.

Channels

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
customUrlstringequals, contains, startsWith, endsWith, in
publishedAtstringequals, contains, startsWith, endsWith, in
subscriberCountstringequals, contains, startsWith, endsWith, in
videoCountstringequals, contains, startsWith, endsWith, in
viewCountstringequals, contains, startsWith, endsWith, in
countrystringequals, contains, startsWith, endsWith, 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.

Comments

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
videoIdstringequals, contains, startsWith, endsWith, in
parentIdstringequals, contains, startsWith, endsWith, in
textDisplaystringequals, contains, startsWith, endsWith, in
textOriginalstringequals, contains, startsWith, endsWith, in
authorDisplayNamestringequals, contains, startsWith, endsWith, in
authorChannelIdstringequals, contains, startsWith, endsWith, in
likeCountnumberequals, gt, gte, lt, lte, in
publishedAtstringequals, contains, startsWith, endsWith, in
updatedAtstringequals, contains, startsWith, endsWith, 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.

Playlist Items

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
playlistIdstringequals, contains, startsWith, endsWith, in
videoIdstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
positionnumberequals, gt, gte, lt, lte, in
publishedAtstringequals, contains, startsWith, endsWith, in
channelIdstringequals, contains, startsWith, endsWith, 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.

Playlists

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
channelIdstringequals, contains, startsWith, endsWith, in
privacyStatusstringequals, contains, startsWith, endsWith, in
itemCountnumberequals, gt, gte, lt, lte, in
publishedAtstringequals, contains, startsWith, endsWith, 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.

Subscriptions

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
channelIdstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
publishedAtstringequals, contains, startsWith, endsWith, 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.

Videos

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
titlestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
channelIdstringequals, contains, startsWith, endsWith, in
publishedAtstringequals, contains, startsWith, endsWith, in
privacyStatusstringequals, contains, startsWith, endsWith, in
durationstringequals, contains, startsWith, endsWith, in
viewCountstringequals, contains, startsWith, endsWith, in
likeCountstringequals, contains, startsWith, endsWith, in
commentCountstringequals, contains, startsWith, endsWith, in
categoryIdstringequals, contains, startsWith, endsWith, in
defaultThumbnailUrlstringequals, contains, startsWith, endsWith, 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.