# Single Assets Download

**URL:** <https://community.sonatype.com/t/single-assets-download/1295>\
**Category:** Sonatype Nexus Repository\
**Tags:** asset-download\
**Created:** [February 14, 2019, 9:36am UTC](https://community.sonatype.com/t/single-assets-download/1295 "2019-02-14T09:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwivedipawan212](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@dwivedipawan212](https://community.sonatype.com/u/dwivedipawan212)\
**Post date:** [February 14, 2019, 9:36am UTC](https://community.sonatype.com/t/single-assets-download/1295/1 "2019-02-14T09:36:17Z")

</div>

Hi There,

I am trying to download a single asset from nexus repository manager 3.14 through nexus web-api. I am using below api  
curl -u userName:password -X GET “[https://serverName](https://serverName):port/nexus/service/rest/v1/search/assets/download?repository=test&group=com.test&name=testApp&version=1.0.1”

so its giving me message like’search returned multiple assets. Please refine search criteria’

Here I am trying to download a .jar file from NXRM3 so what extra search criteria I can specify or is there any other way to download asset (through scripts)?

After some hours of surfing and testing I came to know that the API I mentioned above won’t download the assets instead it will just provide me URL of asset and by using that URL I can download the asset. Is there any other way to download the asset? Why you all are giving url and not the downloadable file directly?

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [February 14, 2019, 5:23pm UTC](https://community.sonatype.com/t/single-assets-download/1295/2 "2019-02-14T17:23:31Z")

</div>

You need to narrow the search down to a single file for this to work. Assuming this is a maven repository, try adding these parameters: maven.extension=jar&maven.classifier

So it will match an artifact with jar extension and no classifier.
