# Rest api

**URL:** <https://discuss.elastic.co/t/rest-api/49893>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-graph\
**Created:** [May 12, 2016, 11:45am UTC](https://discuss.elastic.co/t/rest-api/49893 "2016-05-12T11:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_Scevenels](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Serge\_Scevenels](https://discuss.elastic.co/u/Serge_Scevenels)\
**Post date:** [May 12, 2016, 11:45am UTC](https://discuss.elastic.co/t/rest-api/49893/1 "2016-05-12T11:45:43Z")

</div>

Hi,

I am trying to use the REST API in order to generate graphs from python. It works fine :).

However, with the documentation available, I don't see how i can request efficiently for a Big Graph, let's say with 1 million of nodes.  
I'd like to get two iterators, one for the vertices and one for the edges. The same way as when I use the "scan" method from the low-level python client for querying documents.

Any idea ?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [May 12, 2016, 12:52pm UTC](https://discuss.elastic.co/t/rest-api/49893/2 "2016-05-12T12:52:58Z")

</div>

> [@Serge\_Scevenels](#):
>
> I'd like to get two iterators, one for the vertices and one for the edges.

There is no streaming API, sorry.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:43pm UTC](https://discuss.elastic.co/t/rest-api/49893/3 "2017-07-06T13:43:32Z")

</div>


