# Can't fetch data using REST / POSTMAN

**URL:** <https://discuss.elastic.co/t/cant-fetch-data-using-rest-postman/228318>\
**Category:** Elasticsearch\
**Created:** [April 16, 2020, 1:00pm UTC](https://discuss.elastic.co/t/cant-fetch-data-using-rest-postman/228318 "2020-04-16T13:00:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadalibaloch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmadalibaloch/32/66437_2.png) [@ahmadalibaloch](https://discuss.elastic.co/u/ahmadalibaloch)\
**Post date:** [April 16, 2020, 1:00pm UTC](https://discuss.elastic.co/t/cant-fetch-data-using-rest-postman/228318/1 "2020-04-16T13:00:33Z")

</div>

I did a simple deployment and using the JS client pushed some records for an index 'hear2learn'. That was successful. I can also fetch records using JS client. but when I do a request using POSTMAN or browser passing my credentials. like this.

`https://db5706372f4b41ea9ee7647ac8fe1647.asia-southeast1.gcp.elastic-cloud.com:9243/hear2learn/_search`

I get no records but only  
{  
"took" : 0,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"skipped" : 0,  
"failed" : 0  
},  
"hits" : {  
"total" : {  
"value" : 0,  
"relation" : "eq"  
},  
"max\_score" : null,  
"hits" :   
}  
}

Can somebody guide me what is the problem, I am new. I also get 0 hits or results when doing the request from my Flutter App using a simple http request with my credentials.

---

<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:** [May 14, 2020, 1:00pm UTC](https://discuss.elastic.co/t/cant-fetch-data-using-rest-postman/228318/2 "2020-05-14T13:00:37Z")

</div>

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