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

# AssetQuery

## AssetQuery

Retrieves Assets

## find

This call fetches the list of all the assets of a particular stack. It also returns the content of each asset in dict format.

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
response = stack.asset_query().find()
```

## locale

Enter locale code. e.g., en-us

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
stack.asset_query().locale("locale_code")
```

## include_fallback

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

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
stack.asset_query().include_fallback()
```

## include_metadata

Includes AssetQuery metadata along with response body.

```
import contentstack

stack = contentstack.Stack('api_key', 'delivery_token', 'environment')
result = stack.assetQuery().include_metadata().find()
print(result)
```

## relative_url

include the relative URLs of the assets in the response

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
stack.asset_query().relative_url()
```

## include_branch

Includes branch in the response

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
stack.asset_query().include_branch()
```

## version

Specify the version number of the asset that you wish to retrieve. If the version is not specified, the details of the latest version will be retrieved. To retrieve a specific version, keep the environment parameter blank

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
asset_query.version(version)
```

## environment

Provide the name of the environment if you wish to retrieve the assets published in a particular environment

```
import contentstack;

stack = contentstack.Stack(api_key, delivery_token, environment);
asset_query = stack.asset_query()
asset_query.environment('production')
```

Readonly property to get data of entry.

## AssetQuery | Python Delivery SDK | Contentstack

The AssetQuery class in the Python Delivery SDK retrieves and filters assets stored in your Contentstack stack through configurable queries.