# HTTP request in Ingest Pipeline

**URL:** <https://discuss.elastic.co/t/http-request-in-ingest-pipeline/284698>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [September 21, 2021, 9:51am UTC](https://discuss.elastic.co/t/http-request-in-ingest-pipeline/284698 "2021-09-21T09:51:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![painless\_elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/painless_elastic/32/94652_2.png) [@painless\_elastic](https://discuss.elastic.co/u/painless_elastic)\
**Post date:** [September 21, 2021, 9:51am UTC](https://discuss.elastic.co/t/http-request-in-ingest-pipeline/284698/1 "2021-09-21T09:51:09Z")

</div>

Hi,

I have a document like the below,

```auto
{
   "result":{
      "id":"1",
      "date":"2020-03-31",
      "title":"Wait for It",
      "artist":"Leslie Odom Jr.",
      "spotify_url":"https://open.spotify.com/track/7EqpEBPOohgk7NnKvBGFWo?si=eceqQWGATkO1HJ7n-gKOEQ"
   },
   "meta":{}
}

```

and I want to make a Rest call to my other server in the ingest pipeline and pass the id there.

```auto
curl --location --request GET 'https://jsonplaceholder.typicode.com/todos/1'

```

after getting the result from the server, will append it to the meta key in the document and then save it.

Can anyone help me, how can i achieve this?

@dadoonet

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 21, 2021, 10:24am UTC](https://discuss.elastic.co/t/http-request-in-ingest-pipeline/284698/2 "2021-09-21T10:24:46Z")

</div>

There is no ingest processor which can do this AFAIK.  
You would need to build it by yourself I believe.

Or you could try with the `enrich` processor. See [Enrich your data | Elasticsearch Guide [7.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-enriching-data.html)

---

<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:** [October 19, 2021, 10:25am UTC](https://discuss.elastic.co/t/http-request-in-ingest-pipeline/284698/3 "2021-10-19T10:25:27Z")

</div>

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