# Extracting data from 3'rd party API

**URL:** <https://discuss.elastic.co/t/extracting-data-from-3rd-party-api/175880>\
**Category:** Logstash\
**Created:** [April 8, 2019, 3:59pm UTC](https://discuss.elastic.co/t/extracting-data-from-3rd-party-api/175880 "2019-04-08T15:59:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [April 8, 2019, 3:59pm UTC](https://discuss.elastic.co/t/extracting-data-from-3rd-party-api/175880/1 "2019-04-08T15:59:49Z")

</div>

I am tasked with extracting data from a 3'rd party API that return JSON objects.  
While reading through the documentation for logstash, \*beat and elasticsearch, i read that logstash can't connect to 3'rd party API's (with or without authentication tokens) and that \*beats cannot deliver such data either.

So i am wondering what the best way would be to get this kind of data.

I am thinking one approach could be to make a Java "agent" to connect to the API and deliver the JSON objects directly to elasticsearch, but is this approach the best one available?

The datasource is MySQL, but i am not sure i will be able to get a MySQL user to query the DB from logstash.

Thanks in advance.  
Best regards.

---

<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 6, 2019, 3:59pm UTC](https://discuss.elastic.co/t/extracting-data-from-3rd-party-api/175880/2 "2019-05-06T15:59:54Z")

</div>

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