<?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 Re: Download Tool to Generate POST Request &amp;amp; Get Results in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262770#M314865</link>
    <description>&lt;P&gt;Let my refine my question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The BASIC question should suffice.&amp;nbsp;&lt;BR /&gt;The Advanced questions appear to be addressed by the Bulk Award Download API, which downloads too much.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 18:55:21 GMT</pubDate>
    <dc:creator>hellyars</dc:creator>
    <dc:date>2024-04-16T18:55:21Z</dc:date>
    <item>
      <title>Download Tool to Generate POST Request &amp; Get Results</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262765#M314862</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download Tool Question....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to test a connection to USASpending to retrieve award data -- link to award search page &lt;A href="https://www.usaspending.gov/search" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I watched the tutorial video on YouTube &lt;A href="https://youtu.be/AEKL2LOkRZY?feature=shared" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a POST request to this API endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.usaspending.gov/api/v2/search/spending_by_award/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation for this endpoint is &lt;A href="https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/search/spending_by_award.md" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SEARCH CRITERIA is pretty straightforward:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;KEYWORD = 'ZHEGXL9HYV43'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a unique entity identifier but as it refers to a parent company I found it produces the desired result when using KEYWORD and NOT recipient.&lt;/LI&gt;&lt;LI&gt;TIME PERIOD = Fiscal Years FY2024 thru 2014&amp;nbsp; but it could be any range in theory.&lt;/LI&gt;&lt;LI&gt;I only care about contracts.&amp;nbsp; The result should be 2,161&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Firefox, I from Network/Request the following request.&amp;nbsp; Note: It should be in line with API documentation (as it was generated by the USASpending search page).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"filters":{"keywords":["ZHEGXL9HYV43"],"time_period":[{"start_date":"2023-10-01","end_date":"2024-09-30"},{"start_date":"2013-10-01","end_date":"2014-09-30"},{"start_date":"2014-10-01","end_date":"2015-09-30"},{"start_date":"2015-10-01","end_date":"2016-09-30"},{"start_date":"2016-10-01","end_date":"2017-09-30"},{"start_date":"2017-10-01","end_date":"2018-09-30"},{"start_date":"2018-10-01","end_date":"2019-09-30"},{"start_date":"2019-10-01","end_date":"2020-09-30"},{"start_date":"2020-10-01","end_date":"2021-09-30"},{"start_date":"2021-10-01","end_date":"2022-09-30"},{"start_date":"2022-10-01","end_date":"2023-09-30"}],"award_type_codes":["A","B","C","D"]},"fields":["Award ID","Recipient Name","Start Date","End Date","Award Amount","Total Outlays","Description","def_codes","COVID-19 Obligations","COVID-19 Outlays","Infrastructure Obligations","Infrastructure Outlays","Awarding Agency","Awarding Sub Agency","Contract Award Type","recipient_id","prime_award_recipient_id"],"page":1,"limit":60,"sort":"Award Amount","order":"desc","subawards":false}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;??? QUESTIONS ????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Basic&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;How do I replicate this using the Download Tool?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Does the API allow you to download only the results table&amp;nbsp; (which I believe the payload requests) OR&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRIKE&gt;Advanced:&lt;/STRIKE&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRIKE&gt;Does the API allow you to download the full results at the AWARD level of detail&amp;nbsp; OR&lt;/STRIKE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRIKE&gt;Does the API allow you to download TRANSACTION level of detail with all 290+ fields OR will it only allow you to download as a .csv or zipped collection of .csv&lt;/STRIKE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried to replicate the results using an Input Tool with the URL to the endpoint connected to a Download Tool.&amp;nbsp; I did not get the desired results.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Download Tool was configured as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BASIC&amp;nbsp; took the URL from the Input Tool's URL field.&amp;nbsp; The URL was the same as above.&lt;/P&gt;&lt;P&gt;HEADERS -&amp;nbsp; nothing -&amp;nbsp; This is probably where I messed up.&lt;/P&gt;&lt;P&gt;PAYLOAD&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HTTP Action set to POST&lt;/LI&gt;&lt;LI&gt;Use Following for Query String/Body checked and request from Firefox Inspector used here.&lt;/LI&gt;&lt;LI&gt;I also tried using the request payload in a field from my Input Tool.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-16 142625.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/350181i34CE54346CECC9C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-16 142625.png" alt="Screenshot 2024-04-16 142625.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-16 144341.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/350184i6F14D5387B703DDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-16 144341.png" alt="Screenshot 2024-04-16 144341.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 18:55:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262765#M314862</guid>
      <dc:creator>hellyars</dc:creator>
      <dc:date>2024-04-16T18:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Download Tool to Generate POST Request &amp; Get Results</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262770#M314865</link>
      <description>&lt;P&gt;Let my refine my question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The BASIC question should suffice.&amp;nbsp;&lt;BR /&gt;The Advanced questions appear to be addressed by the Bulk Award Download API, which downloads too much.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 18:55:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262770#M314865</guid>
      <dc:creator>hellyars</dc:creator>
      <dc:date>2024-04-16T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Download Tool to Generate POST Request &amp; Get Results</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262772#M314866</link>
      <description>&lt;P&gt;This might help with some of the basics. you'll probably need to use a nested api to get what you fully want.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 19:06:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1262772#M314866</guid>
      <dc:creator>apathetichell</dc:creator>
      <dc:date>2024-04-16T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Download Tool to Generate POST Request &amp; Get Results</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1263123#M314950</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/198910"&gt;@apathetichell&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for not responding sooner.&lt;/P&gt;&lt;P&gt;This is exactly what I needed to know.&lt;/P&gt;&lt;P&gt;THANK YOU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Header&amp;nbsp; = Content-Type = application/son&lt;/P&gt;&lt;P&gt;Payload = Take Query String/Body from Field = JSON Payload (or whatever the filed is named)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the sample JSON Payload is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed limit from 10 to 84 just to see if I could get all the results for 2024.&amp;nbsp; It worked.&lt;/P&gt;&lt;P&gt;From there, filters and fields should just comply with API instructions for this or any of the endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  {
      "subawards": false,
      "limit": 84,
      "page": 1,
      "filters": {
          "keywords": ["ZHEGXL9HYV43"],
            "award_type_codes": ["A", "B", "C"],
          "time_period": [{"start_date": "2023-01-01", "end_date": "2024-09-30"}]
      },
      "fields": [
          "Award ID",
          "Recipient Name",
          "Start Date",
          "End Date",
          "Award Amount",
          "Awarding Agency",
          "Awarding Sub Agency",
          "Contract Award Type",
          "Award Type",
          "Funding Agency",
          "Funding Sub Agency"
      ]
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 18:31:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1263123#M314950</guid>
      <dc:creator>hellyars</dc:creator>
      <dc:date>2024-04-17T18:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Download Tool to Generate POST Request &amp; Get Results</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1263141#M314956</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22097"&gt;@hellyars&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;two quick things - 1) I think another endpoint will give you the total count. You can use that with generate rows/offest logic to limit it to 100 per call - and then to create a mapping to create the actual item number 2) I ran for ["a","b","c"] - i think you want to include "d"&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 19:33:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Download-Tool-to-Generate-POST-Request-amp-Get-Results/m-p/1263141#M314956</guid>
      <dc:creator>apathetichell</dc:creator>
      <dc:date>2024-04-17T19:33:16Z</dc:date>
    </item>
  </channel>
</rss>

