# Query Project Assets Using REST API

**URL:** <https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717>\
**Category:** Pipeline Integrations\
**Tags:** rest-api\
**Created:** [March 14, 2020, 2:38am UTC](https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717 "2020-03-14T02:38:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JokerMartini](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/jokermartini/32/2084_2.png) [@JokerMartini](https://community.shotgridsoftware.com/u/JokerMartini)\
**Post date:** [March 14, 2020, 2:38am UTC](https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717/1 "2020-03-14T02:38:15Z")

</div>

I’m trying to query the Asset’s for a specific Project Name. Why does it return all Assets in the database no matter what I do? I’m guessing it has something to do with the filter  
_[‘project.Project.name’,‘is’,‘VFXP’]_

```
$.ajax({
            url: url + '/api/v1/entity/assets',
            method: 'get',
            headers: headers,
            data: {
                fields: 'code,project',
                filters: [
                    ['sg_category', 'is', 'Tool'],
                    ['project.Project.name','is','VFXP']
                ]
            },
            success: function (data) {
                console.log(JSON.stringify(data));
                document.getElementById("queryConsole").value = JSON.stringify(data, null, 3);
                $('#queryConsole').value = JSON.stringify(data, null, 3);
            },
            error: function () {
                $('#queryOutput').html('Bummer: there was an error!');
            },
        })
```

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [March 14, 2020, 9:17am UTC](https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717/2 "2020-03-14T09:17:56Z")

</div>

Have you tried `["project", "name_is", "VFXP"]` ?  
It shouldn’t be any different though…

---

<div class="post-metadata">

**Author:** ![JokerMartini](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/jokermartini/32/2084_2.png) [@JokerMartini](https://community.shotgridsoftware.com/u/JokerMartini)\
**Post date:** [March 14, 2020, 12:14pm UTC](https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717/3 "2020-03-14T12:14:07Z")

</div>

Yeah that didnt change anything. Still does not actual filter the items to a specific project

---

<div class="post-metadata">

**Author:** ![jing.liu](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/jing.liu/32/888_2.png) [@jing.liu](https://community.shotgridsoftware.com/u/jing.liu)\
**Post date:** [March 16, 2020, 3:04am UTC](https://community.shotgridsoftware.com/t/query-project-assets-using-rest-api/7717/4 "2020-03-16T03:04:28Z")

</div>

Hi John,

It should work with `post`. Here is the reference [Search all records](https://developer.shotgunsoftware.com/rest-api/#search-all-records).

Loney
