Skip to main content
Select a tab to view the specific filter configurations and examples for that particular platform or brand.

Using filters in YouTube advanced search

Search for YouTube creators using various filter options.

Using subscribers as a filter

Filter YouTube creators by subscriber count.

Using average views as a filter

Filter YouTube creators by average views.

Using the country as a filter

Filter YouTube creators by country.

Using content as a filter

Filter YouTube creators by content.

Using the target audience as a filter

Filter YouTube creators by target audience.
This page lists the available filterKey options for the YouTube Advanced Search API, including the data types, examples, and notes on data sorting and availability. You can use multiple filterKey to narrow your search criteria to find the most relevant YouTube creators. By default, the API lists YouTube creator search results by their CreatorDB ranking score (ranking.score filter) in descending order.

Available filterKey and sortBy options

The table below lists the available filterKey options with the YouTube Advanced Search API. Each entry includes the expected data type and an example value and indicates whether the filterKey supports sorting or is only available for specific data APIs.

Column definitions:

Supports sorting

Indicates whether this field can also be used as a sortBy parameter. When the field is checkmarked, it supports sorting search results by that parameter in ascending or descending order.
The sorting behavior depends on the data type—— for example, strings are sorted alphabetically.

Returned only in youtubeDetail API

When this column is checkmarked, it indicates the field is only returned in the youtubeDetail API response.For example, when you use the mainLanguage filter to make an Advanced Search API call, it will return valid creator IDs. However, the mainLanguage field will only appear in the youtubeDetail API response and not in the youtubeBasic API response.
Available FilterTypeExampleDescriptionSupports sortingReturned only in youtubeDetail API
avgCommentReplyRatio1Ynumber0.001851851852The creator’s average reply rate to the top 20 comments on each video (up to 800 videos).
avgCommentReplyRatioR20number0The creator’s average reply rate to the top 20 comments on each of their most recent 20 videos.
avgComments1Ynumber6286The average comments per video, calculated from up to the creator’s most recent 800 videos.
avgCommentsR20number6328The average comments per video, calculated from the creator’s most recent 20 videos.
avgLength1Ynumber579The average video length (in seconds), calculated from up to the creator’s most recent 800 videos.
avgLengthR20number581.9444444The average video length (in seconds), calculated from the creator’s most recent 20 videos.
avgLikes1Ynumber75075The average likes per video, calculated from up to the creator’s most recent 800 videos.
avgLikesR20number61056The average likes per video, calculated from the creator’s most recent 20 videos.
avgSelfCommentRatio1Ynumber0.01925925926The creator’s average self-comment rate to the top 20 comments on each of their most recent videos (up to 800 videos).(A self-comment refers to a comment made by the creator on their own video.)
avgSelfCommentRatioR20number0.01388888889The creator’s average self-comment rate to the top 20 comments on each of their most recent 20 videos. (A self-comment refers to a comment made by the creator under their own video.)
avgViews1Ynumber2038892The average views per video, calculated from up to the creator’s most recent 800 videos.
avgViewsR20number1367115The average views per video, calculated from the creator’s most recent 20 videos.
countrystring or string [ ]USA or [country1, country2, …]The country associated with the YouTube creator, represented in ISO 3166-1 alpha-3 format. For details, see Country Codes.
creationDatenumber1499184000000The channel’s creation time, represented as a Unix timestamp in milliseconds. If the creator hides this information, the value will be shown as 0.
demographic.avgAgenumber30.15Average age of the YouTube creator’s audience.
demographic.genderFemaleRationumber0.44The proportion of females in the YouTube creator’s audience.
demographic.genderMaleRationumber0.52The proportion of males in the YouTube creator’s audience.
demographic.mainCountrystringUSAThe country that represents the largest proportion of the YouTube creator’s audience. For details, see Country Codes.
demographic.mainCountryRationumber0.55The percentage of the creator’s audience from the country with the highest audience share.
engageRate1Ynumber0.03990380683The average engagement rate per video, calculated from videos uploaded in the past year (up to 800 videos). Engagement rate is calculated as [ (likes + comments) / views].
engageRateR20number0.04928875159The average engagement rate per video, calculated from the creator’s most recent 20 videos. Engagement rate is calculated as \ [(likes + comments) / views].
gAvgViewsR20number0.1331395447The 30-day growth rate of avgViewsR20, which represents the average number of views per video calculated from the creator’s most recent 20 videos.
gEngageRateR20number-0.0174686013The 30-day growth rate of engageRateR20, which represents the average engagement rate per video calculated from the creator’s most recent 20 videos.
gSubscribersnumber0.007462686567The 30-day growth rate of the creator’s subscriber count.
gTotalViewsnumber0.005777711439The 30-day growth rate of the creator’s total channel views.
hasEmailbooleanTRUEIndicates whether an email address for the YouTube creator is available in the CreatorDB database. Returns TRUE if the creator’s email is available. Otherwise, it returns FALSE.
lastVideoUploadTimenumber1749875118000The upload time of the creator’s latest video, represented as a Unix timestamp in milliseconds.
mainCategorystringGamingThe most frequent video category (as defined by YouTube) among up to 800 videos. For details, see YouTube Channel Categories.
mainCategoryRationumber1The percentage of videos in the most frequent YouTube-defined category, calculated from up to the creator’s most recent 800 videos.
mainLanguagestring or string [ ]eng or [mainLanguage1, mainLanguage2, …]The main language used in the creator’s videos, represented in ISO 639-3 format. For details, see Language Codes.
nichestringid_roblox_Gaming or gamingRepresents unified content themes identified by CreatorDB’s AI model, which analyzes and groups keywords, hashtags, and tags used by creators. To get valid niche values for filters, call the Get Topic and Niche Table API.
ranking.avgViewsnumber0.996710917The percentile rank of this channel’s avgViews compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates better performance relative to others.
ranking.engagenumber0.7545818692The percentile rank of this channel’s engagement rate compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates stronger performance.
ranking.gAvgViewsnumber0.8751185946The percentile rank of this channel’s avgViews growth rate compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates faster growth relative to others.
ranking.gEngagenumber0.5036764884The percentile rank of this channel’s engagement rate growth compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates stronger growth performance.
ranking.gSubsnumber0.7108511926The percentile rank of this channel’s subscriber growth rate compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates faster subscriber growth.
ranking.scorenumber95.93343033The percentile rank based on a composite score calculated by CreatorDB, derived from six key metrics: engagement rate, engagement growth, average views, view growth, subscriber count, and subscriber growth. The score ranges from 0 to 100.
ranking.subsnumber0.9993448323The percentile rank of this channel’s subscriber count compared to all YouTube channels in CreatorDB’s database. A value closer to 1 indicates higher subscriber performance relative to others.
subscribersnumber13500000The current total number of subscribers for the YouTube channel.
topicstringid_freegames_Gaming or gamingContent categories generated by CreatorDB’s AI model, classifying creators into about 400 dynamic themes based on their content. To get valid topic values for filters, call the Get Topic and Niche Table API.
totalViewsnumber11814627540The total number of views across all videos uploaded on the creator’s channel.
videosnumber2665The total number of videos uploaded on the creator’s channel.
videosIn30Daysnumber13The number of videos the creator uploaded in the past 30 days.
videosIn90Daysnumber35The number of videos the creator uploaded in the past 90 days.
The examples below demonstrate some common YouTube subscriber filter configurations.
By default, CreatorDB will list search results in descending order.

Filtering subscribers with a minimum value

By specifying greater than (> ) as the operation value, you can search for YouTube creators with a minimum number of subscribers. The following example will search the CreatorDB database for five creators with at least 100 subscribers and list their YouTube ID in descending order.
curl --request POST \
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apiId: YOUR_API_KEY' \
--data '{
"offset": 0,
"sortBy": "subscribers"
"maxResults": 5,
"desc": true,
"filters": [
   {
       "filterKey": "subscribers",
       "op": ">",
       "value": 100
   }
]
}'

Filtering subscribers with a maximum value

By specifying less than (< ) as the operation value, you can search for YouTube creators with a maximum number of subscribers. The following example will search the CreatorDB database for five creators with less than 1,000 subscribers and list their YouTube ID in descending order.
curl --request POST \
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apiId: YOUR_API_KEY' \
--data '{
{
"offset": 0,
"sortBy": "subscribers"
"maxResults": 5,
"desc": true,
"filters": [
   {
       "filterKey": "subscribers",
       "op": "<",
       "value": 1000
   }
],     
}
}

Filtering subscribers within a range

You can specify the range in advanced search filters by using the filter operations greater than (>) and less than (<). For example, the request sample below will return 5 YouTube IDs with 10,000 to 100,000 subscribers.
curl --request POST \
--url https://dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apiId: YOUR_API_KEY' \
--data '{
"offset": 0,
"sortBy": "subscribers",
"maxResults": 5,
"desc": true,
"filters": [
{
  "filterKey": "subscribers",
  "op": ">",
  "value": 10000
}
,
 {
  "filterKey": "subscribers",
  "op": "<",
  "value": 100000
}
]
}'
CreatorDB provides two average views filter options, avgViews1Y and avgViewsR20. The examples below use avgViews1Y to demonstrate common settings.

Filtering by avgViews1Y with a minimum value

Use the > operator to search for YouTube creators with a minimum average view count for up to 800 videos uploaded in the past year. For example, the API request below finds five creators with at least 10,000 average views in the last year and lists their YouTube IDs in descending order of subscribers.
curl --request POST \  
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \\  
--header 'Accept: application/json' \\  
--header 'Content-Type: application/json' \\  
--header 'apiId: YOUR\_API\_KEY' \\  
--data '{  
  "desc": true,  
  "filters": [  
      {  
          "filterKey": "avgViews1Y",  
          "op": ">",  
          "value": 10000  
      }  
  ],  
  "maxResults": 5,  
  "offset": 0,  
  "sortBy": "subscribers"  
}

Filtering by avgViews1Y with a maximum value

Use the < operator to search for YouTube creators with a maximum average view count for up to 800 videos uploaded in the past year. For example, the API request below finds five creators with less than 100,000 average views in the last year and lists their YouTube IDs in descending order of subscribers.
curl --request POST \ 
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \ 
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \
--data '{  
   "desc": true,  
   "filters": [  
       {  
           "filterKey": "avgViews1Y",  
           "op": "<",  
           "value": 100000  
       }  
   ],  
   "maxResults": 5,  
   "offset": 0,  
   "sortBy": "subscribers"  
}

Filtering by avgViews1Y within a range

Use the < and > operators in two avgViews1Y filterKeys to find YouTube creators with average views within a specified range for up to 800 videos uploaded in the past year. For example, the API request below returns five creators with average views between 10,000 and 100,000 in the last year and lists their YouTube IDs in descending order of subscribers.
curl --request POST \  
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \ 
--data '{  
"desc": true,  
"filters": [  
   {  
       "filterKey": "avgViews1Y",  
       "op": ">",  
       "value": 10000  
   },  
   {  
       "filterKey": "avgViews1Y",  
       "op": "<",  
       "value": 100000  
   }  
],  
"maxResults": 5,  
"offset": 0,  
"sortBy": "subscribers"  
}
Keep related content organized into groups. ou can search for YouTube creators by their channel’s country with the ISO three-letter country code. For details, see Country Codes.

Filtering by country with a single value

Use the = operator to specify a single country value. For example, the API request below will return five YouTube creators in the U.S. and list them in descending followers order.
curl --request POST \ 
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \  
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \  
--data '{  
"desc": true,  
"filters": [  
    {  
        "filterKey": "country",  
        "op": "=",  
        "value": "USA"  
    }  
],  
"maxResults": 5,  
"offset": 0,  
"sortBy": "subscribers"  
}

Filtering by country with multiple values

Use the in operator to specify multiple country values. For example, the API request below will return five YouTube creators that are in the U.S. or the UK and list them in descending subscribers order.
curl --request POST \ 
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \
--header 'Accept: application/json' \ 
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \ 
--data '{  
   "desc": true,  
   "filters": [  
       {  
           "filterKey": "country",  
           "op": "in",  
           "value": [  
               "USA",  
               "GBR"  
           ]  
       }  
   ],  
   "maxResults": 5,  
   "offset": 0,  
   "sortBy": "subscribers"  
}
CreatorDB provides two types of content categorization filters, topics and niches. Topics are a list of subjects compiled by CreatorDB’s proprietary system for categorizing a YouTube channel. While as niches are content keywords labeled by YouTube creators that are cleaned and aggregated by CreatorDB proprietary system to categorize the creator’s content type. You need the topics and niches IDs to look up a topic or niche name. To get a YouTube channel’s topics and niches IDs, call the Get the topic table API. For details, see the API Reference.

Filtering by topic with a single value

Use the = operator to find YouTube creators who match a certain topic. For example, the API request below finds five creators with the topic value id_roblox_Gaming and lists their YouTube IDs in descending order of subscribers.
curl --request POST \  
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \  
--header 'Accept: application/json' \ 
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \ 
--data '{  
   "desc": true,  
   "filters": [  
       {  
           "filterKey": "topic",  
           "op": "=",  
           "value": "id_roblox_Gaming"  
       }  
   ],  
   "maxResults": 5,  
   "offset": 0,  
   "sortBy": "subscribers"  
}
You can search for YouTube creators based on their target audience metrics. The following are available demographic filters:
You will be charged 1 API credit for every 10 filter objects included in a single request. For example, 1–10 filters = 1 credit, 11–20 filters = 2 credits, and so on.

Filtering by audience country and female viewer ratio with single values

You can combine multiple demographic filters to limit the YouTube creator’s search scope to a specific target audience. For example, the API request below shows how you can find creators whose main audience is from the U.S. and has less than 40 percent of female viewers. The request below will return five YouTube creators that meet the filter conditions and list them in descending order of subscribers.
curl --request POST \  
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \  
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \  
--data '{  
   "desc": true,  
   "filters": [  
       {  
           "filterKey": "demographic.mainCountry",  
           "op": "=",  
           "value": "USA"  
       },  
       {  
           "filterKey": "demographic.genderFemaleRatio",  
           "op": "<",  
           "value": 0.4  
       }  
   ],  
   "maxResults": 5,  
   "offset": 0,  
   "sortBy": "subscribers"  
}

Filtering by audience country and female viewer ratio within a specific range

You can use multiple values to set a range or additional target audience search conditions. For example, the API request below shows how to find creators with audiences from multiple countries and a female viewer ratio within a specific range. The API request below will return five YouTube creators that have viewers from Argentina and Brazil, with between 10 percent to 40 percent female viewers. The creator’s YouTube IDs will be listed by the number of channel subscribers in descending order.
curl --request POST \ 
--url https: //dev.creatordb.app/v2/youtubeAdvancedSearch \ 
--header 'Accept: application/json' \  
--header 'Content-Type: application/json' \  
--header 'apiId: YOUR_API_KEY' \  
--data '{  
   "desc": true,  
   "filters": [  
       {  
           "filterKey": "demographic.mainCountry",  
           "op": "in",  
           "value": [  
               "BRA",  
               "ARE"  
           ]  
       },  
       {  
           "filterKey": "demographic.genderFemaleRatio",  
           "op": ">",  
           "value": 0.1  
       },  
       {  
           "filterKey": "demographic.genderFemaleRatio",  
           "op": "<",  
           "value": 0.4  
       }  
   ],  
   "maxResults": 5,  
   "offset": 0,  
   "sortBy": "subscribers"  
}
Last modified on March 16, 2026