# More programmable API that has same output as \`ray memory\` command

**URL:** <https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634>\
**Category:** Ray Core\
**Created:** [January 28, 2021, 8:25am UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634 "2021-01-28T08:25:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaroslav\_Igoshev](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yaroslav_igoshev/32/283_2.png) [@Yaroslav\_Igoshev](https://discuss.ray.io/u/Yaroslav_Igoshev)\
**Post date:** [January 28, 2021, 8:25am UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/1 "2021-01-28T08:25:07Z")

</div>

Hi guys,

It would be awesome to add API that has same output as `ray memory` command.  
Also, it would be good to add some additional output info for `ray.objects()`. For example, node IP, IDs of objects which are created in in-process stores, IDs of objects from remote calls (when remote calls are still being executed).

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![franklsf95](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/franklsf95/32/345_2.png) [@franklsf95](https://discuss.ray.io/u/franklsf95)\
**Post date:** [January 28, 2021, 7:17pm UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/2 "2021-01-28T19:17:15Z")

</div>

+1. Would also like APIs to get the information in `ray dashboard`.

---

<div class="post-metadata">

**Author:** ![Alex](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/alex/32/341_2.png) [@Alex](https://discuss.ray.io/u/Alex)\
**Post date:** [January 29, 2021, 3:32am UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/3 "2021-01-29T03:32:47Z")

</div>

Do y’all mind filing a feature request on github for this? (contributions also welcome 😛 ).

---

<div class="post-metadata">

**Author:** ![Yaroslav\_Igoshev](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yaroslav_igoshev/32/283_2.png) [@Yaroslav\_Igoshev](https://discuss.ray.io/u/Yaroslav_Igoshev)\
**Post date:** [January 29, 2021, 12:28pm UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/4 "2021-01-29T12:28:42Z")

</div>

Sure, I have created the issue [#13792](https://github.com/ray-project/ray/issues/13792) on github 🙂

---

<div class="post-metadata">

**Author:** ![eoakes](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/eoakes/32/7825_2.png) [@eoakes](https://discuss.ray.io/u/eoakes)\
**Post date:** [February 4, 2021, 9:00pm UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/5 "2021-02-04T21:00:26Z")

</div>

@sangcho don’t we have an existing API in the dashboard for this? Could you provide some pointers here?

---

<div class="post-metadata">

**Author:** ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)\
**Post date:** [February 5, 2021, 5:36am UTC](https://discuss.ray.io/t/more-programmable-api-that-has-same-output-as-ray-memory-command/634/6 "2021-02-05T05:36:04Z")

</div>

Yeah you can get this information using [ray/memory\_utils.py at master · ray-project/ray · GitHub](https://github.com/ray-project/ray/blob/master/dashboard/memory_utils.py#L281)

For example, this PR uses the same API to implement ray memory;

> <https://github.com/ray-project/ray/pull/13444>
