# Graylog4 How I can get messages count via API

**URL:** <https://community.graylog.org/t/graylog4-how-i-can-get-messages-count-via-api/18084>\
**Category:** Graylog Central (peer support)\
**Created:** [December 4, 2020, 2:19pm UTC](https://community.graylog.org/t/graylog4-how-i-can-get-messages-count-via-api/18084 "2020-12-04T14:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![insave-hosting](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/insave-hosting/32/7614_2.png) [@insave-hosting](https://community.graylog.org/u/insave-hosting)\
**Post date:** [December 4, 2020, 2:19pm UTC](https://community.graylog.org/t/graylog4-how-i-can-get-messages-count-via-api/18084/1 "2020-12-04T14:19:04Z")

</div>

In graylog 3 i am using `/search/universal/relative`, but now its didnt work.

---

<div class="post-metadata">

**Author:** ![ttsandrew](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@ttsandrew](https://community.graylog.org/u/ttsandrew)\
**Post date:** [December 4, 2020, 3:29pm UTC](https://community.graylog.org/t/graylog4-how-i-can-get-messages-count-via-api/18084/2 "2020-12-04T15:29:21Z")

</div>

Hello @insave-hosting, welcome!

According to the upgrade documentation that endpoint was deprecated in 3.3 and removed in 4.0.

> **[Upgrading to Graylog 3.3.x — Graylog 4.0.0 documentation](https://docs.graylog.org/en/4.0/pages/upgrade/graylog-3.3.html)**

Check out the API browser / documentation to find your new endpoint.

> **[Graylog REST API — Graylog 4.0.0 documentation](https://docs.graylog.org/en/4.0/pages/configuration/rest_api.html)**

---

<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:** [December 18, 2020, 3:29pm UTC](https://community.graylog.org/t/graylog4-how-i-can-get-messages-count-via-api/18084/3 "2020-12-18T15:29:30Z")

</div>

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