--- title: "How to get filter or view objects using tags in a Bucket (1)" slug: "how-to-get-filter-or-view-objects-using-tags-in-a-bucket-1" updated: 2026-07-29T17:16:57Z published: 2026-07-29T17:16:57Z canonical: "docs.wasabi.com/how-to-get-filter-or-view-objects-using-tags-in-a-bucket-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.wasabi.com/llms.txt > Use this file to discover all available pages before exploring further. # API/SDK to Filter/Search Objects Based on Object Tags To filter and search objects based on tags: 1. Install [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). 2. Configure [the AWS CLI profile for Wasabi](https://knowledgebase.wasabi.com/hc/en-us/articles/115001910791-How-do-I-use-AWS-CLI-with-Wasabi-) account using the Wasabi keys. 3. Install [Python 3+](https://www.python.org/downloads/release/python-380/) version to run this script. 4. Install the [AWS SDK for Python using pip](https://aws.amazon.com/sdk-for-python/). If you are specifying a prefix, be sure to enter the **FULL PREFIX PATH** (bucket name NOT included), and the prefix should not start with a forward slash (/). For example, folder1/sub-folder. ## Script to Filter all Objects Using Tags in a Prefix/Bucket Enter your bucket name and prefix, the tag key and value, and the bucket region. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/script-3.png) ## Script to View All Object Tags in a Prefix/Bucket Enter your bucket name, prefix, and the bucket region. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/script-4.png) The Python scripts are attached to this article. [ListObjectTags.py](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/ListObjectTags.py)[FilterObjectsUsingTags.py](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/FilterObjectsUsingTags.py)