# Why api call: url/directory\_item not working

**URL:** https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150
**Category:** Development
**Created:** [November 16, 2018, 7:50am UTC](https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150 "2018-11-16T07:50:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Edwin\_Mhoy\_Silva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/edwin_mhoy_silva/32/109980_2.png) [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)
#### Post date: [November 16, 2018, 7:50am UTC](https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150/1 "2018-11-16T07:50:58Z")

</div>

I trying to make the same api call as the meta.discourse endpoint: [Discourse Meta](https://meta.discourse.org/u).

 ![15](https://global.discourse-cdn.com/meta/original/3X/5/f/5f03206d1e0d788a3131a5f7d5113509ade7ef1a.jpeg)  
I tried to do the same thing inside postman, but without luck.  
This is my get request inside postman  
{{base\_url}}/directory\_items.json?period=weekly&order=likes\_received&\_=1542354108586&api\_key={{api\_key}}&api\_username={{api\_username}}.

Any suggestions, on what I’m doing wrong?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [November 16, 2018, 10:37pm UTC](https://meta.discourse.org/t/why-api-call-url-directory-item-not-working/102150/2 "2018-11-16T22:37:03Z")

</div>

It could possibly be your api\_key and api\_username since you probably don’t actually have one for meta. You can leave it off on this site since it is a public endpoint. You can also leave off the `&_=1542354108586` part since that is just used by the browser and not needed for regular api calls.

Here is the curl command I used:

`curl -i -sS -X GET "https://meta.discourse.org/directory_items.json?period=weekly&order=likes_received"`

And I received a success response.
