# Getting Post ID with Topic ID - API Help Needed

**URL:** <https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239>\
**Category:** Development\
**Created:** [14 במאי,‏ 2016,‏ 1:20pm UTC](https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239 "2016-05-14T13:20:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [14 במאי,‏ 2016,‏ 2:39pm UTC](https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239/2 "2016-05-14T14:39:15Z")

</div>

Using this topic as an example: You topic ID is `44239`.

A `GET` to `https://meta.discourse.org/t/44239.json` returns an object where `post_stream.posts[0].id = 194190`.

I then liked your post by `POST`ing to `https://meta.discourse.org/post_actions` with `id=194190&post_action_type_id=2&flag_topic=false`. This request needs to be authenticated by an API key or cookies.

---

_[View the full topic](https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239)._
