Retrieve claim events for a specific token. This endpoint supports two query modes to give you flexibility in how you fetch claim data.
Query Modes
Offset Mode (Default)
Use offset-based pagination to retrieve claim events in batches. This is the default mode and is backward compatible with previous API versions.
curl --request GET \
--url 'https://public-api-v2.bags.fm/api/v1/fee-share/token/claim-events?tokenMint=YOUR_TOKEN_MINT&mode=offset&limit=50&offset=0' \
--header 'x-api-key: YOUR_API_KEY'
Set to offset or omit entirely for pagination mode.
Maximum number of events to return (1-100).
Number of events to skip for pagination.
Time Mode
Use time-based filtering to retrieve all claim events within a specific time range. Useful for analytics dashboards, scheduled reports, or syncing historical data.
curl --request GET \
--url 'https://public-api-v2.bags.fm/api/v1/fee-share/token/claim-events?tokenMint=YOUR_TOKEN_MINT&mode=time&from=1704067200&to=1706745600' \
--header 'x-api-key: YOUR_API_KEY'
Must be set to time for time-based filtering.
Start unix timestamp (inclusive). Must be greater than or equal to 0.
End unix timestamp (inclusive). Must be greater than or equal to from.
When using time mode, the from timestamp must be less than or equal to to. The API will return an error if this constraint is violated.
Use Cases
- Offset Mode: Best for building paginated UIs, real-time feeds, or when you need the most recent events.
- Time Mode: Best for analytics, generating reports for specific periods, auditing, or syncing claim history.
For a complete implementation example, see the Get Token Claim Events how-to guide.API key authentication. Provide your API key as the header value.
Public key of the token mint
mode
enum<string>
default:offset
Query mode: 'offset' for pagination (default), 'time' for time-based filtering
Available options:
offset,
time
Maximum number of events to return (1-100, default: 100). Only used with mode=offset
Required range: 1 <= x <= 100
Number of events to skip for pagination (default: 0). Only used with mode=offset
Required range: x >= 0
Start unix timestamp (inclusive). Required when mode=time
Required range: x >= 0
End unix timestamp (inclusive). Required when mode=time. Must be greater than or equal to 'from'
Required range: x >= 0
Successfully retrieved token claim events