get
/v4/campaigns/
Search for campaigns matching the criteria provided through query parameters.
Query parameters
pagenumber | stringdefault: 0itemsnumber | stringdefault: 20idstringcreatorTagstringcreatorAddressstringcreatorAddressesstring[]creatorIdstringchainIdnumber | stringsearchstringdistributionChainIdsnumber | string[]typestringtypesstring[]subTypenumbercampaignIdstringcampaignIdsstring[]mainParameterstringtokenSymbolstringtokenAddressstringtestbooleandefault: falsetokenTypesenum[]TOKENPRETGEPOINTpointbooleanopportunityIdstringopportunityIdsstring[]statusstringstartTimestampstringendTimestampstringwithOpportunitybooleandistributionTypesenum[]FIX_REWARDMAX_REWARDDUTCH_AUCTIONcreatedAfterDate | string (date-time) | string (date) | number | nullcreatedBeforeDate | string (date-time) | string (date) | number | nullexcludeSubCampaignsbooleandefault: falseonlySubCampaignsbooleandefault: falserootCampaignIdstringparentCampaignIdstringmainProtocolIdstringpauseComputestringshowPrivatebooleanlistOwnerstringcampaignListsstringResponses
200Response for status 200
Schema
object[]
idstringUnique campaign idcomputeChainIdnumberChain ID where campaign data is computeddistributionChainIdnumberChain ID where rewards are distributedcampaignIdstringA hash of the campaign, unique per chain. Can be used to identify campaigns across chainstypestringCampaign type identifiersubTypenumber | nullCampaign subtype for protocols like Silo, Radiant, Morpho, Dolomite, Compound, Ajna and EuleramountstringAmount of reward token units being distributed by the campaignstartTimestampstring | number | string | bigintUnix timestamp when the campaign startsendTimestampstring | number | string | bigintUnix timestamp when the campaign endscreatorAddressstringEthereum address of the campaign creatoraprnumberAnnual Percentage Rate for this campaigndailyRewardsnumberTotal daily rewards distributed in USDcreatorobjectCampaign creator information
addressstringrequired
Creator's Ethereum addresstagsstring[]Tag associated with the creatorcreatorIdstring | nullparamsanyCampaign-specific parametersdescriptionstringCampaign descriptionchainobjectChain
idintegerrequired
Chain Idnamestringrequired
Legible name of the chainiconstringrequired
URL to the icon of the chainliveCampaignsnumberrequired
Number of campaigns currently live on this chainendOfDisputePeriodnumberrequired
explorersobject[]
typeenumETHERSCANBLOCKSCOUTSOLSCANurlstringchainIdnumberlastClaimsOnchainFetchTimestampstring | nullrequired
Timestamp of the last claims onchain fetchrewardTokenIdstringInternal ID of the reward tokenrewardTokenobjectToken
idstringrequired
Unique identifier for the tokennamestring | nullrequired
Full name of the tokenchainIdintegerrequired
Chain Idaddressstringrequired
Addressdecimalsnumberrequired
Number of decimals for the tokensymbolstringrequired
Symbol of the tokeniconstringrequired
URL to the token icon imageverifiedbooleanrequired
Whether the token is verifiedisNativebooleanrequired
Whether this is a native blockchain tokenisTestbooleanrequired
Whether this is a test tokentypeenumrequired
Type of the token (TOKEN, PRETGE, POINT)TOKENPRETGEPOINTpricenumber | nullCurrent price of the token in USDupdatedAtnumber | nullUnix timestamp of last price updatepriceSourcestring | nullSource of the price informationdisplaySymbolstringCustom display symbol overrideunderlyingTokenIdstringIf this token is a wrapper, the ID of the underlying tokenpriceAlertDismissedAtnumberpriceAlertCountnumberopportunityIdstringID of the associated opportunitydistributionChainobjectChain
idintegerrequired
Chain Idnamestringrequired
Legible name of the chainiconstringrequired
URL to the icon of the chainliveCampaignsnumberrequired
Number of campaigns currently live on this chainendOfDisputePeriodnumberrequired
explorersobject[]
typeenumETHERSCANBLOCKSCOUTSOLSCANurlstringchainIdnumberlastClaimsOnchainFetchTimestampstring | nullrequired
Timestamp of the last claims onchain fetchdistributionTypeenumType of reward distribution mechanismDUTCH_AUCTIONFIX_REWARD_VALUE_PER_LIQUIDITY_VALUEFIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUEFIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNTFIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNTMAX_REWARD_VALUE_PER_LIQUIDITY_VALUEMAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUEMAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNTMAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNTAAVE_NET_APRERC4626_APRERC4626_SPREAD_CAPPEDAAVE_V4_NET_APRDEEL_DISTRIBUTIONSOFR_SPREAD_RATCHETERC4626_TARGET_APR_WITH_MERKLTARGET_APR_WITH_MERKLNET_APRBORROW_SUBSIDYNET_APR_WITH_MERKLYIELD_BASIS_PIDcampaignStatusobject
campaignIdstringrequired
computedUntilstring | number | stringrequired
processingStartedstring | number | stringrequired
statusstringrequired
preComputeProcessingStartedstring | number | stringrequired
preComputeStatusstringrequired
delaynumber | stringerrorstringdetailsanycreatedAtstring (date)ISO date when the campaign was createdrootCampaignIdstring | nullID of the root campaign for hierarchical campaignsparentCampaignIdstring | nullID of the parent campaign for sub-campaignschildCampaignIdsstring[]List of child campaign IDsdailyRewardsBreakdownobject[]Daily breakdown of rewards
campaignIdstringvaluenumbermaxValuenumbertimestampbigint | stringtokenobjectToken
idstringrequired
Unique identifier for the tokennamestring | nullrequired
Full name of the tokenchainIdintegerrequired
Chain Idaddressstringrequired
Addressdecimalsnumberrequired
Number of decimals for the tokensymbolstringrequired
Symbol of the tokeniconstringrequired
URL to the token icon imageverifiedbooleanrequired
Whether the token is verifiedisNativebooleanrequired
Whether this is a native blockchain tokenisTestbooleanrequired
Whether this is a test tokentypeenumrequired
Type of the token (TOKEN, PRETGE, POINT)TOKENPRETGEPOINTpricenumber | nullCurrent price of the token in USDupdatedAtnumber | nullUnix timestamp of last price updatepriceSourcestring | nullSource of the price informationdisplaySymbolstringCustom display symbol overrideunderlyingTokenIdstringIf this token is a wrapper, the ID of the underlying tokenpriceAlertDismissedAtnumberpriceAlertCountnumberamountbigint | stringdistributionTypeenumDUTCH_AUCTIONFIX_REWARD_VALUE_PER_LIQUIDITY_VALUEFIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUEFIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNTFIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNTMAX_REWARD_VALUE_PER_LIQUIDITY_VALUEMAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUEMAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNTMAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNTAAVE_NET_APRERC4626_APRERC4626_SPREAD_CAPPEDAAVE_V4_NET_APRDEEL_DISTRIBUTIONSOFR_SPREAD_RATCHETERC4626_TARGET_APR_WITH_MERKLTARGET_APR_WITH_MERKLNET_APRBORROW_SUBSIDYNET_APR_WITH_MERKLYIELD_BASIS_PIDonChainCampaignIdstringpauseComputestring | nullISO timestamp when computation was pausedpausePrecomputestring | nullReason for pausing precomputation, or null if not pausedhasOverridesbooleanWhether this campaign has previous config overridesisPrivatebooleanIndicates if the campaign is privatehiddenbooleanWhether the campaign is hidden from non-test API resultshideLeaderboardbooleanWhether leaderboard, ranks and reward breakdowns are hidden for this campaigncampaignEncodingHashstringHash of the campaign configuration encodingExample
[
{
"id": "string",
"computeChainId": 0,
"distributionChainId": 0,
"campaignId": "string",
"type": "string",
"subType": 0,
"amount": "string",
"startTimestamp": "string",
"endTimestamp": "string",
"creatorAddress": "string",
"apr": 0,
"dailyRewards": 0,
"creator": {
"address": "string",
"tags": [
"string"
],
"creatorId": "string"
},
"params": null,
"description": "string",
"chain": {
"id": 0,
"name": "string",
"icon": "string",
"liveCampaigns": 0,
"endOfDisputePeriod": 0,
"explorers": [
{
"type": null,
"url": null,
"chainId": null
}
],
"lastClaimsOnchainFetchTimestamp": "string"
},
"rewardTokenId": "string",
"rewardToken": {
"id": "string",
"name": "string",
"chainId": 0,
"address": "string",
"decimals": 0,
"symbol": "string",
"icon": "string",
"verified": false,
"isNative": false,
"isTest": false,
"type": "TOKEN",
"price": 0,
"updatedAt": 0,
"priceSource": "string",
"displaySymbol": "string",
"underlyingTokenId": "string",
"priceAlertDismissedAt": 0,
"priceAlertCount": 0
},
"opportunityId": "string",
"distributionChain": {
"id": 0,
"name": "string",
"icon": "string",
"liveCampaigns": 0,
"endOfDisputePeriod": 0,
"explorers": [
{
"type": null,
"url": null,
"chainId": null
}
],
"lastClaimsOnchainFetchTimestamp": "string"
},
"distributionType": "DUTCH_AUCTION",
"campaignStatus": {
"campaignId": "string",
"computedUntil": "string",
"processingStarted": "string",
"status": "string",
"preComputeProcessingStarted": "string",
"preComputeStatus": "string",
"delay": 0,
"error": "string",
"details": null
},
"createdAt": "date",
"rootCampaignId": "string",
"parentCampaignId": "string",
"childCampaignIds": [
"string"
],
"dailyRewardsBreakdown": [
{
"campaignId": "string",
"value": 0,
"maxValue": 0,
"timestamp": null,
"token": {
"id": null,
"name": null,
"chainId": null,
"address": null,
"decimals": null,
"symbol": null,
"icon": null,
"verified": null,
"isNative": null,
"isTest": null,
"type": null,
"price": null,
"updatedAt": null,
"priceSource": null,
"displaySymbol": null,
"underlyingTokenId": null,
"priceAlertDismissedAt": null,
"priceAlertCount": null
},
"amount": null,
"distributionType": null,
"onChainCampaignId": "string"
}
],
"pauseCompute": "string",
"pausePrecompute": "string",
"hasOverrides": false,
"isPrivate": false,
"hidden": false,
"hideLeaderboard": false,
"campaignEncodingHash": "string"
}
]get
https://api.merkl.xyz/v4/campaigns/curl -X GET "https://api.merkl.xyz/v4/campaigns/"