> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/rpc-methods/readme/das-api/getassetsbygroup.md).

# getAssetsByGroup

Returns the digital assets in a group such as a collection, by groupKey and groupValue, with sorting and pagination.

## Request

{% tabs %}
{% tab title="cURL" %}

```bash
curl "https://<your-endpoint>.mainnet.rpcpool.com/<your-token>" -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "123",
    "method": "getAssetsByGroup",
    "params": {
        "groupKey": "collection",
        "groupValue": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac",
        "page": 1,
        "limit": 50
    }
}'
```

{% endtab %}
{% endtabs %}

## Parameters

| Name       | Description                                                                                                                                                                                                                                                                                   | Required |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| groupKey   | The key of the group (e.g., `"collection"`).                                                                                                                                                                                                                                                  | Yes      |
| groupValue | The value of the group, such as the collection address.                                                                                                                                                                                                                                       | Yes      |
| sortBy     | Sorting criteria, as an object `{ sortBy: <value>, sortDirection: <value> }`. `sortBy` is one of `"id"` (the default), `"created"`, `"updated"`, `"recent_action"`, or `"none"`. `sortDirection` is `"asc"` (the default) or `"desc"`. Sorting by anything other than `"id"` requires `page`. | No       |
| limit      | The maximum number of assets to retrieve, up to 1000 (the default).                                                                                                                                                                                                                           | No       |
| page       | The index of the "page" to retrieve, starting at 1.                                                                                                                                                                                                                                           | No       |
| before     | Fetch assets before the given ID.                                                                                                                                                                                                                                                             | No       |
| after      | Fetch assets after the given ID.                                                                                                                                                                                                                                                              | No       |
| options    | Display options, as an object of flags that default to `false`: `showFungible`, `showCollectionMetadata`, `showUnverifiedCollections`, `showZeroBalance`, `showInscription`. Also accepted as `displayOptions`.                                                                               | No       |
| cursor     | Fetch the next page with the `cursor` value from the previous response.                                                                                                                                                                                                                       | No       |

Send parameters as a named object, or as an array in the order listed, with `null` for any you skip. Use one way to paginate per request: `page`, `cursor`, or `before` and `after`. `cursor`, `before`, and `after` need sorting by `id`.

***

*Adapted from the* [*Metaplex `getAssetsByGroup` reference*](https://www.metaplex.com/docs/dev-tools/das-api/methods/get-assets-by-group)*, maintained by the Metaplex Foundation.*

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
