title: Find job tags from Gitlab CI API
body: <p>Is there a way of finding out what tags (Gitlab CI tags, not git tags) a job has from the API? </p>
  
  <p>As background, we are having some issues with contention on our CI pipeline. The runners are selected based on tags, and I want to log what tags are being used/built the most. </p>
  
  <p>For instance if in my <code>.gitlab-ci.yml</code> file I have</p>
  
  <pre><code>build_thing: 
    stage: build
    tags: [some_tag]
    script:
     - bash build.sh
  </code></pre>
  
  <p>Is there a way I can use the gitlab jobs API to determine show the tags (<code>some_tag</code>) of that job? I have not been able to find any API endpoints that show this in the <a href="https://docs.gitlab.com/ee/api/jobs.html" rel="nofollow noreferrer" title="Gitlab Jobs API Documentation">documentation</a>. </p>
  
  <p>I am aware that I can look at what tags the active runners have, but unfortunately that is not enough information, as they can have different combinations of tags that overlap the jobs/pipelines. </p>