title: Index data in ElasticSearch from a WEB API
body: <p>Im trying to index / insert data from an API of a service called PRTG into elasticsearch. This API when i go to an specific URL returns a JSON file, like an WEB API, without downloading nothing. I thought it was possible with this command: </p>
  
  <pre><code>curl --user elastic:****** -XPOST http://localhost:9200/prtg_test/_mapping/_doc  -d @'https://prtgserver/api/historicdata.json?id=2477&amp;avg=0&amp;sdate=2018-08-01-00-00-00&amp;edate=2018-08-07-00-00-00&amp;usecaption=1&amp;username=myusser&amp;password=****'
  </code></pre>
  
  <p>But im getting an error.</p>
  
  <p>Im newbie in Elastic, so any help would be great, thanks.</p>