# How can i get messages from all time per stream from API

**URL:** <https://community.graylog.org/t/how-can-i-get-messages-from-all-time-per-stream-from-api/23302>\
**Category:** Graylog Central (peer support)\
**Tags:** documentation, curl\
**Created:** [April 3, 2022, 6:57am UTC](https://community.graylog.org/t/how-can-i-get-messages-from-all-time-per-stream-from-api/23302 "2022-04-03T06:57:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zomereytan](https://avatars.discourse-cdn.com/v4/letter/z/a183cd/32.png) [@zomereytan](https://community.graylog.org/u/zomereytan)\
**Post date:** [April 3, 2022, 6:57am UTC](https://community.graylog.org/t/how-can-i-get-messages-from-all-time-per-stream-from-api/23302/1 "2022-04-03T06:57:49Z")

</div>

how can i get all the messages from the api per stream  
i found there access only per one message http://\*\*\*\*\*\*\*:9000/api/messages/graylog\_0/\*\*\*\*\*\*\*\*\*\*\*  
i tried to find it in the docs with no success and i would like to know how can i get all the messages

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 4, 2022, 10:58pm UTC](https://community.graylog.org/t/how-can-i-get-messages-from-all-time-per-stream-from-api/23302/2 "2022-04-04T22:58:08Z")

</div>

Hello && Welcome

Not exactly sure what you want but Graylog has Metrics you can find out the total of messages from a stream.

gl\_stream\_incoming\_messages\_total{stream=“5a502a80ffe8b103591670c3”}

> [@zomereytan](#):
>
> http://\*\*\*\*\*\*\*:9000/api/messages/graylog\_0/\*\*\*\*\*\*\*\*\*\*\*

Are you trying to get Messages from a Index using API?  
Perhaps try testing this in the API browser on the Graylog node. Navigate to _System/Nodes_. See if that works for you.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/5/579d252528448a5e61828a13d29ed0453cb1a8fb.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 18, 2022, 10:58pm UTC](https://community.graylog.org/t/how-can-i-get-messages-from-all-time-per-stream-from-api/23302/3 "2022-04-18T22:58:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
