# Roboflow API - how to use filters | download list of images per project

**URL:** <https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585>\
**Category:** 🤝  Community Help\
**Created:** [November 6, 2024, 10:10am UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585 "2024-11-06T10:10:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKonopelski](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@MKonopelski](https://discuss.roboflow.com/u/MKonopelski)\
**Post date:** [November 6, 2024, 10:10am UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585/1 "2024-11-06T10:10:21Z")

</div>

In general I have 5 projects under my private workspace. I want to download the list of files which were uploaded to Dataset and those in annotating process.

The problem is I can’t get Roboflow API to work.

For this example let’s use those VARs:

```auto
WORKSPACE=private-workspace-123
PROJECT=example-project
PROJECT_URL_1=https://app.roboflow.com/private-workspace-123/example-project
PROJECT_URL_2=app.roboflow.com/private-workspace-123/example-project
PROJECT_URL_3=private-workspace-123/example-project
PROJECT_URL_4=example-project

API_TOKEN=3j5hj534h5j

```

Based on documentation: [Workspace Image Query | Roboflow Docs](https://docs.roboflow.com/api-reference/workspace-image-query) I tried to create my own query:

```auto
curl --location 'https://api.roboflow.com/private-workspace-123/search/v1?api_key= 3j5hj534h5j' --header 'Content-Type: application/json' --data '{"query": "project: PROJECT_URL_{no}", "pageSize": 100, "fields": ["filename", "tags"]}

```

Results in (I also tried other versions of that url like /browse or with http://):

```auto
Internal Server Error%                                                                                                                     

curl --location 'https://api.roboflow.com/private-workspace-123/search/v1?api_key= 3j5hj534h5j' --header 'Content-Type: application/json' --data '{"query": "project:example-project", "pageSize": 100, "fields": ["filename", "tags"]}

```

Results in always full list of images in all projects:

```auto
  ],
    "total": 10775,
    "continuationToken": "WzE3Mjg5NDEyODdd"
}%    

```

And I cannot find any possible key added to fields that would return the name of project (so I could post process results for only project I’m interested in)

I found out also a second API:

```auto
curl --location 'https://api.roboflow.com/private-workspace-123/example-project/search?api_key= 3j5hj534h5j' --header 'Content-Type: application/json' --data '{"in_dataset": "true","pageSize": 500, "fields": ["name", "tags"]}'

```

it returns perfectly images from that project but ONLY 50 max and the response doesn’t have e.g. `{"continuationToken": "WzE3Mjg5NDEyODdd"}` so I cannot get to the second page.

In general, is it a bug or it’s a feature?

---

<div class="post-metadata">

**Author:** ![isaacrob](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/isaacrob/32/5638_2.png) [@isaacrob](https://discuss.roboflow.com/u/isaacrob)\
**Post date:** [November 6, 2024, 5:08pm UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585/2 "2024-11-06T17:08:28Z")

</div>

Hi, looking into it, will report back! 🙂

---

<div class="post-metadata">

**Author:** ![isaacrob](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/isaacrob/32/5638_2.png) [@isaacrob](https://discuss.roboflow.com/u/isaacrob)\
**Post date:** [November 6, 2024, 5:13pm UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585/3 "2024-11-06T17:13:25Z")

</div>

Try removing the space between project: and PROJECT\_URL\_{no}

---

<div class="post-metadata">

**Author:** ![MKonopelski](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@MKonopelski](https://discuss.roboflow.com/u/MKonopelski)\
**Post date:** [November 7, 2024, 7:03pm UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585/4 "2024-11-07T19:03:07Z")

</div>

But I never had any space between key “project:project\_url” in original requests.

Could you give me please example based on my real project URL?

> **[Sign in to Roboflow](https://app.roboflow.com/truebuilt-software-sxnvw/tagsearch-detection)**
>
> Even if you're not a machine learning expert, you can use Roboflow train a custom, state-of-the-art computer vision model on your own data.

```auto
curl --location 'https://api.roboflow.com/truebuilt-software-sxnvw/search/v1?api_key=3j5hj534h5j' --header 'Content-Type: application/json' --data '{"query": "project:tagsearch-detection", "pageSize": 100, "fields": ["filename", "tags"]}'

```

or

```auto
curl --location 'https://api.roboflow.com/truebuilt-software-sxnvw/search/v1?api_key=3j5hj534h5j' --header 'Content-Type: application/json' --data '{"query": "project:app.roboflow.com/truebuilt-software-sxnvw/tagsearch-detection", "pageSize": 100, "fields": ["filename", "tags"]}'

```

or

```auto
curl --location 'https://api.roboflow.com/truebuilt-software-sxnvw/search/v1?api_key=3j5hj534h5j' --header 'Content-Type: application/json' --data '{"query": "project:https://app.roboflow.com/truebuilt-software-sxnvw/tagsearch-detection", "pageSize": 100, "fields": ["filename", "tags"]}'

```

because I’m losing my mind and nothing is working. Always it return the full list of files

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [November 28, 2024, 7:04pm UTC](https://discuss.roboflow.com/t/roboflow-api-how-to-use-filters-download-list-of-images-per-project/7585/5 "2024-11-28T19:04:00Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
