
/v4/opportunities/{id}/apr-records
Get historical APR records for an opportunity.
Path parameters
idstringOpportunity ID (path-only). Two accepted forms: (1) internal numeric hash, ≤20 digits (e.g. 7673870997270712040), or (2) composite {chainId}-{type}-{identifier} (e.g. 1-ERC20LOGPROCESSOR-0x35Cbe8542E70fa2f7F9cDF129F19e593F4b4f560). The composite form is path-only — query filters (?id=, ?opportunityId=) only accept the numeric form. NOT a campaign ID. See ID types.
Query parameters
pagenumber | stringdefault: 00-indexed page number
itemsnumber | stringdefault: 100Number of items returned by page
fromnumberLower bound (inclusive) for the record's unix timestamp, in seconds.
tonumberUpper bound (inclusive) for the record's unix timestamp, in seconds.
grainenumdefault: DAYResolution of the returned records. DAY (the default) is one point per UTC day and is kept indefinitely. RAW (one point per sample) and HOUR are kept for a limited window.
https://api.merkl.xyz/v4/opportunities//apr-records?page=&items=&grain=curl -X GET "https://api.merkl.xyz/v4/opportunities/11521673201667687989/apr-records?page=0&items=100&grain=DAY"