# Include number of items in the relationships

**URL:** <https://discuss.jsonapi.org/t/include-number-of-items-in-the-relationships/815>\
**Category:** Uncategorized\
**Created:** [October 25, 2016, 11:07pm UTC](https://discuss.jsonapi.org/t/include-number-of-items-in-the-relationships/815 "2016-10-25T23:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phyks](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Phyks](https://discuss.jsonapi.org/u/Phyks)\
**Post date:** [October 25, 2016, 11:07pm UTC](https://discuss.jsonapi.org/t/include-number-of-items-in-the-relationships/815/1 "2016-10-25T23:07:16Z")

</div>

Hi,

I have an API exposing some artists with relationships to tracks and albums. I would like to return the number of items in the relationships (that is the number of albums and tracks for the given artist) at the `/artist` endpoint level, although not including the full results from the relationships.

What would be the best way to do it in the JSON API spec?  
Thanks!

---

<div class="post-metadata">

**Author:** ![daniel.koss](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@daniel.koss](https://discuss.jsonapi.org/u/daniel.koss)\
**Post date:** [November 2, 2016, 1:55pm UTC](https://discuss.jsonapi.org/t/include-number-of-items-in-the-relationships/815/2 "2016-11-02T13:55:25Z")

</div>

These count values should be placed within the `meta` field which is where one should be putting non-standard information. [http://jsonapi.org/format/#document-meta](http://jsonapi.org/format/#document-meta)
