# /directory\_items.json API returns wrong link for next page

**URL:** https://meta.discourse.org/t/directory-items-json-api-returns-wrong-link-for-next-page/96268
**Category:** Support
**Created:** [September 3, 2018, 1:03pm UTC](https://meta.discourse.org/t/directory-items-json-api-returns-wrong-link-for-next-page/96268 "2018-09-03T13:03:26Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [September 3, 2018, 7:28pm UTC](https://meta.discourse.org/t/directory-items-json-api-returns-wrong-link-for-next-page/96268/2 "2018-09-03T19:28:38Z")

</div>

Not a bug. If you [reverse engineer our Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576) then you can find that we use extensionless endpoints in many places. If you add the `Accept: application/json` header in your requests then we will treat both `/directory_items` and `/directory_items.json` endpoints in same manner.

---

_[View the full topic](https://meta.discourse.org/t/directory-items-json-api-returns-wrong-link-for-next-page/96268)._
