# Python \> Get post content if mentioned

**URL:** <https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309>\
**Category:** Development\
**Tags:** mentions\
**Created:** [December 8, 2022, 6:49pm UTC](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309 "2022-12-08T18:49:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)\
**Post date:** [December 8, 2022, 6:49pm UTC](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309/1 "2022-12-08T18:49:25Z")

</div>

I am playing around with python. To be specific:

> **[Client Challenge](https://pypi.org/project/fluent-discourse/)**

I am looking this API docs:

[Discourse API Docs](https://docs.discourse.org/#tag/Posts/operation/postReplies) / [Discourse API Docs](https://docs.discourse.org/#tag/Notifications/operation/getNotifications)

I am new (learning) with Python, and am trying to simply receive the posts if @UserA gets mentioned somewhere. I was thinking I need to get the post\_number from the notifications, and then query that post, to retrieve and store the post content.

From there I want to store that post content, as a data variable and from there experiment with some things.

A part of my code is this:

```plaintext
# lookup mentions
mention = client.notifications.json.get()

# print the posts
for post_number in mention:
    print(post_number)

```

The current output of this code:

```plaintext
notifications
total_rows_notifications
seen_notification_id
load_more_notifications

```

Sorry if this is a stupid question, I am relatively new with API’s and even newer with Python. I have been working with this all day without success, if anyone can point me in the right direction, that would be highly appreciated.

---

_[View the full topic](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309)._
