---
title: "AssetQuery"
description: "AssetQuery"
url: "https://www.contentstack.com/docs/developers/sdks/content-delivery-sdk/dart/reference/assetquery"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-22"
---

# AssetQuery

## AssetQuery

The AssetQuery provides query on assets

## includeBranch

Included branch in the response.

```
import contentstack
final var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');
final asset = stack.assetQuery()..includeBranch();
```

## version

Specify the version number of the asset that you wish to retrieve.

```
import contentstack
final var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');
final asset = stack.assetQuery()..version(3);
```

## relativeUrls

includes the relative URLs of the assets in the response

```
import contentstack
final var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');final asset = stack.assetQuery()..relativeUrls();
```

## includeFallback

Retrieve the published content of the fallback locale if an entry is not localized in specified locale.

```
import contentstack

final var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');
final asset = stack.assetQuery()..includeFallback();
```

## includeDimension

include the dimensions (height and width) of the image in the response.

```
import contentstack

final var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');final asset = stack.assetQuery()..includeCount();
```

## includeCount

To retrieve the count of entries.

```
import contentstack
var stack = contentstack.Stack('apiKey', 'deliveryToken', 'environment');final asset = stack.assetQuery()..includeCount();
```

## environment

Enter the name of the \[environment\] if you wish to retrieve the assets published in a particular environment.

```
import Contentstack

final stack = final contentType = stack.contentType(“content_type_uid”);
final asset = stack.assetQuery()..environment();
```

The Environment

## AssetQuery | Dart Delivery SDK | Contentstack

AssetQuery provides querying on assets in the Dart Delivery SDK, letting you filter and retrieve media files stored in Contentstack.