Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SisterRay
Frequent Visitor

Get API response headers

Hi all,

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 to retrieve the next page of results.

Anyone would have a tip to get all headers?

 

Power Query:

let
// Define the headers
headers = [
#"Content-Type" = "application/json",
#"X-Shopify-Access-Token" = "{password}"
],

// Original API request code generated by Power Query
source = Web.Contents("https://{shop}.myshopify.com/admin/api/2023-04/products.json?limit=250", [Headers=headers]),

// Retrieve response headers
responseHeaders = Value.Metadata(source),

// Retrieve response headers
Headers = responseHeaders[Headers]
in
Headers

Postman:

SisterRay_0-1688229039289.png

Power Query:

SisterRay_1-1688229136120.png

 

Many thanks in advance!




3 REPLIES 3
jprdynamicapps
Helper IV
Helper IV

The only way to get all headers (as opposed to a subset) is to use a custom connector.

Upvote suggestion to get all headers back here: https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=e47d7520-1509-ed11-b5cf-281878de6c19

 

PhilipTreacy
Super User
Super User

@SisterRay 

 

What's in the rest of the API response?  If you need Link to control paging then the API will return that somewhere.

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


I've noticed that the link is only in Response header.

SisterRay_1-1688286581736.png

I want to make sure that I can't get all headers in Power Query.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors