# Nexus rest search for multiple groups in a repository

**URL:** https://community.sonatype.com/t/nexus-rest-search-for-multiple-groups-in-a-repository/10325
**Category:** Sonatype Nexus Repository
**Tags:** help, nexus-repository, api
**Created:** [March 17, 2023, 1:42pm UTC](https://community.sonatype.com/t/nexus-rest-search-for-multiple-groups-in-a-repository/10325 "2023-03-17T13:42:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sco1984](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sco1984](https://community.sonatype.com/u/sco1984)
#### Post date: [March 17, 2023, 1:42pm UTC](https://community.sonatype.com/t/nexus-rest-search-for-multiple-groups-in-a-repository/10325/1 "2023-03-17T13:42:10Z")

</div>

Hello All,

My goal is to get jar files from all groups inside a specific repository.

My query =

> curl -u admin:password -X GET ‘[https://mynexus3.internal/service/rest/v1/search?repository=maven-repo1&group=abc-workspace.modules&maven.extension=jar&maven.classifier](https://mynexus3.internal/service/rest/v1/search?repository=maven-repo1&group=abc-workspace.modules&maven.extension=jar&maven.classifier)’

> curl -u admin:password -sSl -X GET [https://mynexus3.internal/service/rest/v1/search/assets](https://mynexus3.internal/service/rest/v1/search/assets) -d repository=maven-repo1 -d maven.extension=jar

This commands are unable to show me the jar files under group1.subfolder.subfolder , group2.subfolder.subfolder and so on under group maven-repo1.

I tried multiple ways to get the jar files from all groups & subfolders inside my maven repo but it is not working.

I am on Sonatype Nexus Repository ManagerOSS 3.36.0-0 version.  
Any thoughts how can I achieve this using curl command? Thanks.

Regards,  
Amey.

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [March 22, 2023, 7:04pm UTC](https://community.sonatype.com/t/nexus-rest-search-for-multiple-groups-in-a-repository/10325/2 "2023-03-22T19:04:48Z")

</div>

Nested folders aren’t part of a Maven group so those search queries won’t include them.

You may be able to parse the HTML browse documents, i.e. `http://{nexus}/service/rest/repository/browse/{repositoryName}/`
