<?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 Get API response headers in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311153#M106951</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I try to get list of headers, but there are only 5 of them in response. I need to get all. For example, "Link" should be used&amp;nbsp;to r&lt;SPAN&gt;etrieve the next page of results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyone would have a tip to get all headers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Power Query:&lt;BR /&gt;&lt;BR /&gt;&lt;/H3&gt;&lt;P&gt;let&lt;BR /&gt;// Define the headers&lt;BR /&gt;headers = [&lt;BR /&gt;#"Content-Type" = "application/json",&lt;BR /&gt;#"X-Shopify-Access-Token" = "{password}"&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;// Original API request code generated by Power Query&lt;BR /&gt;source = Web.Contents("https://{shop}.myshopify.com/admin/api/2023-04/products.json?limit=250", [Headers=headers]),&lt;/P&gt;&lt;P&gt;// Retrieve response headers&lt;BR /&gt;responseHeaders = Value.Metadata(source),&lt;BR /&gt;&lt;BR /&gt;// Retrieve response headers&lt;BR /&gt;Headers = responseHeaders[Headers]&lt;BR /&gt;in&lt;BR /&gt;Headers&lt;BR /&gt;&lt;BR /&gt;Postman:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Power Query:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 08:37:32 GMT</pubDate>
    <dc:creator>SisterRay</dc:creator>
    <dc:date>2023-07-02T08:37:32Z</dc:date>
    <item>
      <title>Get API response headers</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311153#M106951</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I try to get list of headers, but there are only 5 of them in response. I need to get all. For example, "Link" should be used&amp;nbsp;to r&lt;SPAN&gt;etrieve the next page of results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyone would have a tip to get all headers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Power Query:&lt;BR /&gt;&lt;BR /&gt;&lt;/H3&gt;&lt;P&gt;let&lt;BR /&gt;// Define the headers&lt;BR /&gt;headers = [&lt;BR /&gt;#"Content-Type" = "application/json",&lt;BR /&gt;#"X-Shopify-Access-Token" = "{password}"&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;// Original API request code generated by Power Query&lt;BR /&gt;source = Web.Contents("https://{shop}.myshopify.com/admin/api/2023-04/products.json?limit=250", [Headers=headers]),&lt;/P&gt;&lt;P&gt;// Retrieve response headers&lt;BR /&gt;responseHeaders = Value.Metadata(source),&lt;BR /&gt;&lt;BR /&gt;// Retrieve response headers&lt;BR /&gt;Headers = responseHeaders[Headers]&lt;BR /&gt;in&lt;BR /&gt;Headers&lt;BR /&gt;&lt;BR /&gt;Postman:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Power Query:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 08:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311153#M106951</guid>
      <dc:creator>SisterRay</dc:creator>
      <dc:date>2023-07-02T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get API response headers</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311252#M106960</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327713" data-lia-user-login="SisterRay" class="lia-mention lia-mention-user"&gt;SisterRay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's in the rest of the API response?&amp;nbsp; If you need Link to control paging then the API will return that somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 00:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311252#M106960</guid>
      <dc:creator>PhilipTreacy</dc:creator>
      <dc:date>2023-07-02T00:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get API response headers</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311345#M106965</link>
      <description>&lt;P&gt;I've noticed that the link is only in &lt;SPAN&gt;Response header&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I want to make sure that I can't get all headers in Power Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 08:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/3311345#M106965</guid>
      <dc:creator>SisterRay</dc:creator>
      <dc:date>2023-07-02T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get API response headers</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/4043098#M132517</link>
      <description>&lt;P&gt;The only way to get all headers (as opposed to a subset) is to use a custom connector.&lt;/P&gt;&lt;P&gt;Upvote suggestion to get all headers back here:&amp;nbsp;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=e47d7520-1509-ed11-b5cf-281878de6c19" target="_blank"&gt;https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=e47d7520-1509-ed11-b5cf-281878de6c19&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 20:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Get-API-response-headers/m-p/4043098#M132517</guid>
      <dc:creator>jprdynamicapps</dc:creator>
      <dc:date>2024-07-15T20:23:23Z</dc:date>
    </item>
  </channel>
</rss>

