# How to get the JSON data via HTTP request

**URL:** <https://discuss.elastic.co/t/how-to-get-the-json-data-via-http-request/72820>\
**Category:** Elasticsearch\
**Created:** [January 25, 2017, 9:33pm UTC](https://discuss.elastic.co/t/how-to-get-the-json-data-via-http-request/72820 "2017-01-25T21:33:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Ben\_Hoffman](https://discuss.elastic.co/u/Ben_Hoffman)\
**Post date:** [January 25, 2017, 9:33pm UTC](https://discuss.elastic.co/t/how-to-get-the-json-data-via-http-request/72820/1 "2017-01-25T21:33:50Z")

</div>

Hello, right now I am using the following address to get to my packet beat data:

“http://:9200//\_search?pretty=true”

I am using this in C#, and I can then take the string value of this web page and parse it as JSON data. What I want to do is get the nicer, more condensed data that I see in Kibana for each ID that I see.

This is a screencap of my Kibana, what I want to do is get the data under the JSON tab with an HTTP request.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/8/8d993b0cdd935261f120079c7b85e59ff282ca28.PNG)

I know that you can do it if you have the ID of each packet, like this:

http://:9200//flow/?pretty

but then how do i get the most recent ID? I couldn't find any command that I could use to get that.

I am running packetbeat through Logstash, if that matters.

---

<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:** [February 22, 2017, 9:33pm UTC](https://discuss.elastic.co/t/how-to-get-the-json-data-via-http-request/72820/2 "2017-02-22T21:33:53Z")

</div>

Closed on February 22, 2017, 9:33pm UTC

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