<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API v2 results returned in JSON format. Are there options for CSV? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253592#M33474</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Is it possible to get API results in the API v2 returned as CSV results?&lt;/P&gt;&lt;P&gt;At the end of the day. I am trying to find a way to take the data returned in a file and import it into&amp;nbsp;&lt;/P&gt;&lt;P&gt;a MSSQL database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could go down the path of figuring out how to import JSON into MSSQL, but if CSV/txt files are an option then&amp;nbsp;&lt;/P&gt;&lt;P&gt;this may expedite the learning time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-runatyr&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 12:27:09 GMT</pubDate>
    <dc:creator>runatyr</dc:creator>
    <dc:date>2024-08-19T12:27:09Z</dc:date>
    <item>
      <title>API v2 results returned in JSON format. Are there options for CSV?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253592#M33474</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Is it possible to get API results in the API v2 returned as CSV results?&lt;/P&gt;&lt;P&gt;At the end of the day. I am trying to find a way to take the data returned in a file and import it into&amp;nbsp;&lt;/P&gt;&lt;P&gt;a MSSQL database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could go down the path of figuring out how to import JSON into MSSQL, but if CSV/txt files are an option then&amp;nbsp;&lt;/P&gt;&lt;P&gt;this may expedite the learning time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-runatyr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 12:27:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253592#M33474</guid>
      <dc:creator>runatyr</dc:creator>
      <dc:date>2024-08-19T12:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 results returned in JSON format. Are there options for CSV?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253598#M33476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends, for example, you can get CSV value if your metric is in Data Explorer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1724073347470.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21842i0AC3B2417907EEA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1724073347470.png" alt="AntonPineiro_0-1724073347470.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_1-1724073360222.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21843i42959675C12761B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_1-1724073360222.png" alt="AntonPineiro_1-1724073360222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think this depends of API as well. Some of them are only available in JSON format.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:16:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253598#M33476</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2024-08-19T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 results returned in JSON format. Are there options for CSV?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253608#M33478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/29954"&gt;@runatyr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You might check each endpoint definition... For instance, it's a yes for the Metrics data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulo_calaxa_0-1724074593450.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21846i1227A86D813A7FC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulo_calaxa_0-1724074593450.png" alt="paulo_calaxa_0-1724074593450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulo_calaxa_1-1724074747148.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21847i7DA90B0992E993DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulo_calaxa_1-1724074747148.png" alt="paulo_calaxa_1-1724074747148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, if in your call you change/add the Accept header parameter to "text/csv..."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulo_calaxa_2-1724074837250.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21848i7B8BFD974382A3BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulo_calaxa_2-1724074837250.png" alt="paulo_calaxa_2-1724074837250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you'll get the requested data in a csv format.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Paulo&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:42:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/API-v2-results-returned-in-JSON-format-Are-there-options-for-CSV/m-p/253608#M33478</guid>
      <dc:creator>paulo_calaxa</dc:creator>
      <dc:date>2024-08-19T13:42:31Z</dc:date>
    </item>
  </channel>
</rss>

