# Rest API to get all the component labels

**URL:** <https://community.sonatype.com/t/rest-api-to-get-all-the-component-labels/11348>\
**Category:** Sonatype Lifecycle & Firewall\
**Tags:** help, nexus-iq, api\
**Created:** [September 22, 2023, 11:46am UTC](https://community.sonatype.com/t/rest-api-to-get-all-the-component-labels/11348 "2023-09-22T11:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakhoonmrt92](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@deepakhoonmrt92](https://community.sonatype.com/u/deepakhoonmrt92)\
**Post date:** [September 22, 2023, 11:46am UTC](https://community.sonatype.com/t/rest-api-to-get-all-the-component-labels/11348/1 "2023-09-22T11:46:55Z")

</div>

I have a requirement where I need to fetch all the component label of all applications in one API call. One API is there in documentation but with that one you need to provide application id. I have hundreds of application and I can’t make 100 API call so looking for API which return all application component labels.  
Basically I’m thinking to fetch all application and all reports and component label and then prepare a file which will have application id, application name and report link and associated component labels.

---

<div class="post-metadata">

**Author:** ![mfrost](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mfrost/32/1701_2.png) [@mfrost](https://community.sonatype.com/u/mfrost)\
**Post date:** [September 25, 2023, 5:14pm UTC](https://community.sonatype.com/t/rest-api-to-get-all-the-component-labels/11348/2 "2023-09-25T17:14:43Z")

</div>

Hi @deepakhoonmrt92! Thanks for your question. I don’t believe that the API you are looking for exists - I did speak with our team about this and they agreed. I will let you know if I hear any differently. You can leave us feedback in our [Ideas portal](https://ideas.sonatype.com/)/search or vote for other related ideas as well.

---

<div class="post-metadata">

**Author:** ![michael.fons](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@michael.fons](https://community.sonatype.com/u/michael.fons)\
**Post date:** [October 30, 2023, 10:18pm UTC](https://community.sonatype.com/t/rest-api-to-get-all-the-component-labels/11348/3 "2023-10-30T22:18:29Z")

</div>

have you tried the policy violation component? [Policy Violation REST API - v2](https://help.sonatype.com/iqserver/automating/rest-apis/policy-violation-rest-api---v2)

When I used this I had to pass multiple policy id’s . The documentation says how to get this information 🙂
