---
title: "GET /affiliates/snapshot"
method: GET
path: "/affiliates/snapshot"
---

# GET /affiliates/snapshot

`GET /affiliates/snapshot`

## Query parameters

- `addressFilter` string[]
- `offset` number, double
- `limit` number, double
- `sortByAffiliateEarning` boolean

## Response `200`

Ok

- AffiliateSnapshotResponse
  - `affiliateList` AffiliateSnapshotResponseObject[], required
    - `affiliateAddress` string, required
    - `affiliateReferralCode` string, required
    - `affiliateEarnings` number, double, required
    - `affiliateReferredTrades` number, double, required
    - `affiliateTotalReferredFees` number, double, required
    - `affiliateReferredUsers` number, double, required
    - `affiliateReferredNetProtocolEarnings` number, double, required
    - `affiliateReferredTotalVolume` number, double, required
    - `affiliateReferredMakerFees` number, double, required
    - `affiliateReferredTakerFees` number, double, required
    - `affiliateReferredMakerRebates` number, double, required
  - `total` number, double, required
  - `currentOffset` number, double, required

## Changes

- **2024-10-04** `f81ebb9580d6` — 1 info
  - added the required property `affiliateList/items/affiliateReferredMakerRebates` to the response with the `200` status
- **2024-10-03** `273cde23e867` — 2 info
  - added the required property `affiliateList/items/affiliateReferredMakerFees` to the response with the `200` status
  - added the required property `affiliateList/items/affiliateReferredTakerFees` to the response with the `200` status
- **2024-09-17** `7093d519c22f` — 1 warning, 2 info
  - deleted the `query` request parameter `sortByReferredFees`
  - added the new optional `query` request parameter `addressFilter`
  - added the new optional `query` request parameter `sortByAffiliateEarning`
- **2024-09-11** `c6022d6e0c75` — 1 info
  - added the required property `affiliateList/items/affiliateReferredTotalVolume` to the response with the `200` status
- **2024-08-27** `0500c83096af` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/dydxprotocol/apis/indexer-api/changes/affiliates/snapshot/get.md)

---

[API](https://skmtc.dev/dydxprotocol/apis/indexer-api.md) · [All operations](https://skmtc.dev/dydxprotocol/apis/indexer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dydxprotocol/indexer-api/revisions/5005547cef75/schema)
