Merkl Developer Portal logo
get

/v4/protocols/count

Get the number of protocols corresponding to the query. Use query parameters to filter the count.

Query parameters

pagenumber | stringdefault: 0

0-indexed page number

itemsnumber | stringdefault: 20

Number of items returned by page

idstring

Filter by protocol slug (e.g. aave, morpho, uniswap). NOT a numeric ID. See ID types.

testbooleandefault: false

Includes protocols that have only test opportunities

idsstring[]

Filter by multiple protocol slugs (e.g. aave, morpho).

namestring

Search protocols by name

tagsstring[]

Filter by tags

opportunityTagstring

Filter by underlying tag opportunities

opportunityChainnumber | string

Filter by underlying opportunity chains

statusstring

A comma separated list of campaign statuses used to filter campaigns counted in numberOfLiveCampaigns and dailyRewards. Legal values: LIVE, PAST, SOON. Defaults to LIVE.

tokenTypesenum[]

Filter campaigns counted in numberOfLiveCampaigns and dailyRewards by reward token type. Default: no filter.

TOKENPRETGEPOINT
excludeSubCampaignsbooleandefault: false

Exclude sub-campaigns from the campaigns counted in numberOfLiveCampaigns and dailyRewards. Default: false.