Count Campaigns
campaigns-countCount Merkl campaigns by applying filters such as status, chain, APR, TVL, tokens, tags, and time range to gauge available opportunities.
Instructions
GET /v4/campaigns/count
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filter by name | |
| tags | No | Filter by tag | |
| test | No | Include test campaigns | |
| type | No | A comma separated list of Campaign type | |
| point | No | Include point campaigns | |
| action | No | A comma separated list actions. Legal values: POOL,HOLD,DROP,LEND,BORROW,LONG,SHORT,SWAP,INVALID | |
| search | No | Search amongst multiple values (token, protocols, tags, campaigns) | |
| status | No | A comma separated list of status. Legal values: LIVE,PAST,SOON | |
| tokens | No | A comma separated list of token symbol. Use to filter by token | |
| chainId | No | A comma separated list of chain ids. Example: ?chainId=1,42161 | |
| chainName | No | A comma separated list of chain names. Example: ?chainName=ethereum,arbitrum | |
| campaignId | No | Search the campaign by campaignId | |
| identifier | No | Filter by identifier (mainParameter) | |
| maximumApr | No | Maximum APR threshold | |
| maximumTvl | No | Maximum TVL threshold in USD | |
| minimumApr | No | Minimum APR threshold | |
| minimumTvl | No | Minimum TVL threshold in USD | |
| tokenTypes | No | Filter by token type. Use POINT to include point campaigns and PRETGE to include preTGE campaigns. | |
| creatorSlug | No | ||
| endTimestamp | No | Filter campaigns ending before this timestamp | |
| programSlugs | No | A comma separated list of program ids or slugs. See GET /v4/programs | |
| opportunityId | No | Filter by opportunity ID | |
| rewardTokenId | No | Filter by reward token ID | |
| computeChainId | No | Filter by compute chain ID | |
| creatorAddress | No | Filter by creator address | |
| mainProtocolId | No | A comma separated list of protocol ids. See GET /v4/protocols | |
| startTimestamp | No | Filter campaigns starting after this timestamp | |
| distributionTypes | No | Filter by distribution type. Legal values: FIX_REWARD, MAX_REWARD, DUTCH_AUCTION | |
| rewardTokenSymbol | No | Filter by campaign with reward token having this symbol | |
| distributionChainId | No | Filter by distribution chain ID | |
| excludeSubCampaigns | No | Exclude sub-campaigns from the results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of campaigns matching the filters |