# How can i get a list of tags for a docker image akin to the docker hub list

**URL:** <https://community.sonatype.com/t/how-can-i-get-a-list-of-tags-for-a-docker-image-akin-to-the-docker-hub-list/3210>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [December 30, 2019, 9:56am UTC](https://community.sonatype.com/t/how-can-i-get-a-list-of-tags-for-a-docker-image-akin-to-the-docker-hub-list/3210 "2019-12-30T09:56:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve1](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@steve1](https://community.sonatype.com/u/steve1)\
**Post date:** [December 30, 2019, 9:56am UTC](https://community.sonatype.com/t/how-can-i-get-a-list-of-tags-for-a-docker-image-akin-to-the-docker-hub-list/3210/1 "2019-12-30T09:56:16Z")

</div>

With docker hub this command

[https://hub.docker.com/v2/repositories/library/debian/tags/?page\_size=20](https://hub.docker.com/v2/repositories/library/debian/tags/?page_size=20)

Would give me a list of tags in JSON looking like this

> {“count”:535,“next”:"[https://hub.docker.com/v2/repositories/library/debian/tags/?page=2\u0026page\_size=20",“previous”:null,“results”:[{“name”:“unstable-slim”,“full\_size”:27770486,“images”:[{“size”:28737447,“digest”:“sha256:0a69ee0bb8d4bb1fab07d985813fce2f55c9c3911d30b85b1da8c556851ba98f”,“architecture”:“386”,“os”:“linux”,“os\_version”:null,“os\_features”:“”,“variant”:null,“features”:“”},{“size”:26670752,“digest”:“sha256:7c1890a916f5a4572c5941eed2952fe518f0f962ee8b51883a80fa99c3521074”,“architecture”:“arm64”,“os”:“linux”,“os\_version”:null,“os\_features”:“”,“variant”:“v8”,“features”:“”},"](https://hub.docker.com/v2/repositories/library/debian/tags/?page=2%5Cu0026page_size=20%22,%22previous%22:null,%22results%22:%5B%7B%22name%22:%22unstable-slim%22,%22full_size%22:27770486,%22images%22:%5B%7B%22size%22:28737447,%22digest%22:%22sha256:0a69ee0bb8d4bb1fab07d985813fce2f55c9c3911d30b85b1da8c556851ba98f%22,%22architecture%22:%22386%22,%22os%22:%22linux%22,%22os_version%22:null,%22os_features%22:%22%22,%22variant%22:null,%22features%22:%22%22%7D,%7B%22size%22:26670752,%22digest%22:%22sha256:7c1890a916f5a4572c5941eed2952fe518f0f962ee8b51883a80fa99c3521074%22,%22architecture%22:%22arm64%22,%22os%22:%22linux%22,%22os_version%22:null,%22os_features%22:%22%22,%22variant%22:%22v8%22,%22features%22:%22%22%7D,%22)},

When using Nexus repository what are the sequence of API calls (or single api call) to achieve a similar list.  
I have looked in the documentation and browsed the API but cannot find anything of relevance…

Can somebody please help

Thanks in advance

---

<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:** [December 30, 2019, 4:06pm UTC](https://community.sonatype.com/t/how-can-i-get-a-list-of-tags-for-a-docker-image-akin-to-the-docker-hub-list/3210/2 "2019-12-30T16:06:59Z")

</div>

You can use the search API, and search for “docker.imageName”:

[https://help.sonatype.com/repomanager3/rest-and-integration-api/search-api](https://help.sonatype.com/repomanager3/rest-and-integration-api/search-api)

For hosted repositories this will return all tags.

For proxy repositories this will return the tags that are cached locally.
