# Bulk Indexing API- To return the number of successful updates/creates

**URL:** <https://discuss.elastic.co/t/bulk-indexing-api-to-return-the-number-of-successful-updates-creates/304174>\
**Category:** Elasticsearch\
**Created:** [May 7, 2022, 1:24pm UTC](https://discuss.elastic.co/t/bulk-indexing-api-to-return-the-number-of-successful-updates-creates/304174 "2022-05-07T13:24:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zee\_Grinch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zee_grinch/32/97805_2.png) [@Zee\_Grinch](https://discuss.elastic.co/u/Zee_Grinch)\
**Post date:** [May 7, 2022, 1:24pm UTC](https://discuss.elastic.co/t/bulk-indexing-api-to-return-the-number-of-successful-updates-creates/304174/1 "2022-05-07T13:24:04Z")

</div>

Not sure if this is a feature request, or is something that I missed (like a parameter in the Request that can enable this):

The JSON body returned by a **~/\_bulk** POST will include fairly rich info in the **items[] array**, but parsing that is relatively expensive when one is interested only in the number of failures in a large batch.

```auto
{
    "took": 7,
    "errors": false,
    "items": [
        {
            "create": {
                "_index": "test_integration_idx",
                . . .
         ]
}

```

---

<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:** [June 4, 2022, 1:24pm UTC](https://discuss.elastic.co/t/bulk-indexing-api-to-return-the-number-of-successful-updates-creates/304174/2 "2022-06-04T13:24:46Z")

</div>

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