# API call in data grid aggregation

**URL:** <https://discuss.elastic.co/t/api-call-in-data-grid-aggregation/105617>\
**Category:** Elasticsearch\
**Created:** [October 27, 2017, 9:01pm UTC](https://discuss.elastic.co/t/api-call-in-data-grid-aggregation/105617 "2017-10-27T21:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhu\_pandurangan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhu_pandurangan/32/24363_2.png) [@prabhu\_pandurangan](https://discuss.elastic.co/u/prabhu_pandurangan)\
**Post date:** [October 27, 2017, 9:01pm UTC](https://discuss.elastic.co/t/api-call-in-data-grid-aggregation/105617/1 "2017-10-27T21:01:55Z")

</div>

Hi Team,

I want to query elasticsearch & make a async api call to external API and show the grid based on the value from the api.

for eg:  
query from ES returns:  
[  
{id: 1, department: IT, name: xxx, subject: ENG, score: 0},  
{id: 1, department: IT, name: xxx, subject: ENG, score: 0},  
{id: 1, department: IT, name: xxx, subject: ENG, score: 0}  
]  
I have to make a API call to each individual item and get the score and display it in a grid

here there will be 3 grids, which will be colored based on the score and we need to show the department & score in the label.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [October 27, 2017, 9:09pm UTC](https://discuss.elastic.co/t/api-call-in-data-grid-aggregation/105617/2 "2017-10-27T21:09:10Z")

</div>

I think it would be easier for someone to help you, if you rephrased your post in form of a question. At the moment, you are describing an interesting project, but it is not quite clear what exactly you want our help with.

---

<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:** [November 24, 2017, 9:09pm UTC](https://discuss.elastic.co/t/api-call-in-data-grid-aggregation/105617/3 "2017-11-24T21:09:13Z")

</div>

Closed on November 24, 2017, 9:09pm UTC

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