# Getting a post from its ID

**URL:** https://meta.discourse.org/t/getting-a-post-from-its-id/72362
**Category:** Development
**Created:** [18 Ottobre 2017, 6:20pm UTC](https://meta.discourse.org/t/getting-a-post-from-its-id/72362 "2017-10-18T18:20:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mike4](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mike4](https://meta.discourse.org/u/Mike4)
#### Post date: [18 Ottobre 2017, 6:20pm UTC](https://meta.discourse.org/t/getting-a-post-from-its-id/72362/1 "2017-10-18T18:20:20Z")

</div>

I’m trying to get info about a post using:

```
curl -X GET "https://discourseExampleSite.com/posts/21?api_key=<api key>&api_username=<api username>

```

Although it gives me the entire html tag.

I know the post exists because when I get info about a topic and go under post\_stream-\>posts I can see the post.

Can you help me out?

---

<div class="post-metadata">

### Author: ![Mike4](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mike4](https://meta.discourse.org/u/Mike4)
#### Post date: [18 Ottobre 2017, 6:39pm UTC](https://meta.discourse.org/t/getting-a-post-from-its-id/72362/2 "2017-10-18T18:39:16Z")

</div>

I figured it out

I needed to add .json to the end of the post id

Could you please add .json at the end of the post id in the documentation like for getting a topic

So:

![image](https://global.discourse-cdn.com/meta/original/3X/2/f/2f10267efa18d16ae96dca888d4906d360b56516.png)

Would become more like:

![image](https://global.discourse-cdn.com/meta/original/3X/9/9/99f83c271891f07dcf3b0400403a4670c6e3b902.png)

With a .json on the end
