# Changed API for directory\_items

**URL:** https://meta.discourse.org/t/changed-api-for-directory-items/150669
**Category:** Development
**Created:** [May 7, 2020, 1:30am UTC](https://meta.discourse.org/t/changed-api-for-directory-items/150669 "2020-05-07T01:30:09Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![DLu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dlu/32/121933_2.png) [@DLu](https://meta.discourse.org/u/DLu)
#### Post date: [May 7, 2020, 1:30am UTC](https://meta.discourse.org/t/changed-api-for-directory-items/150669/1 "2020-05-07T01:30:09Z")

</div>

[This commit](https://github.com/discourse/discourse/commit/2f9879a9a134f3b9bf17489dce977e1655df5d37) moves `total_rows_directory_items` and `load_more_directory_items` under the `meta` object. This is the current behavior on the test server.

However, this is different than what [the documentation says](https://docs.discourse.org/#tag/Users/paths/~1directory_items.json?period=%7Bperiod%7D&order=%7Border%7D/get) and different than the previous behavior, thus breaking my scripts that use the API.

Was this an intentional change to the API, @vinothkannans?

[post originally had more links, but I’m a new user]

---

_[View the full topic](https://meta.discourse.org/t/changed-api-for-directory-items/150669)._
